File 3374-Fix-typos-in-erts-emulator-beam.patch of Package erlang

From 94ea7e2e10f4fe7979af7fe23f27d4ee07bd156b Mon Sep 17 00:00:00 2001
From: "Kian-Meng, Ang" <kianmeng@cpan.org>
Date: Fri, 26 Nov 2021 05:23:41 +0800
Subject: [PATCH] Fix typos in erts/emulator/beam

---
 erts/emulator/beam/atom.h                     |  2 +-
 erts/emulator/beam/beam_bif_load.c            |  4 ++--
 erts/emulator/beam/beam_debug.c               |  2 +-
 erts/emulator/beam/bif.c                      |  6 ++---
 erts/emulator/beam/big.c                      |  6 ++---
 erts/emulator/beam/binary.c                   |  4 ++--
 erts/emulator/beam/code_ix.h                  |  2 +-
 erts/emulator/beam/dist.c                     |  6 ++---
 erts/emulator/beam/emu/arith_instrs.tab       |  2 +-
 erts/emulator/beam/emu/beam_emu.c             |  2 +-
 erts/emulator/beam/emu/bif_instrs.tab         |  2 +-
 erts/emulator/beam/emu/ops.tab                |  4 ++--
 erts/emulator/beam/erl_alloc.c                |  4 ++--
 erts/emulator/beam/erl_alloc_util.c           |  6 ++---
 erts/emulator/beam/erl_ao_firstfit_alloc.c    |  4 ++--
 erts/emulator/beam/erl_async.c                |  2 +-
 erts/emulator/beam/erl_bestfit_alloc.c        |  6 ++---
 erts/emulator/beam/erl_bif_binary.c           |  2 +-
 erts/emulator/beam/erl_bif_chksum.c           |  4 ++--
 erts/emulator/beam/erl_bif_guard.c            |  2 +-
 erts/emulator/beam/erl_bif_info.c             |  4 ++--
 erts/emulator/beam/erl_bif_port.c             |  4 ++--
 erts/emulator/beam/erl_bits_f16.h             |  4 ++--
 erts/emulator/beam/erl_db.c                   | 10 ++++----
 erts/emulator/beam/erl_db.h                   |  2 +-
 erts/emulator/beam/erl_db_catree.c            |  2 +-
 erts/emulator/beam/erl_db_hash.c              |  4 ++--
 erts/emulator/beam/erl_db_tree.c              |  4 ++--
 erts/emulator/beam/erl_db_util.c              |  2 +-
 erts/emulator/beam/erl_db_util.h              |  2 +-
 erts/emulator/beam/erl_debug.c                |  2 +-
 erts/emulator/beam/erl_driver.h               |  2 +-
 erts/emulator/beam/erl_flxctr.h               |  2 +-
 erts/emulator/beam/erl_gc.c                   |  2 +-
 erts/emulator/beam/erl_hl_timer.c             |  2 +-
 erts/emulator/beam/erl_io_queue.c             |  2 +-
 erts/emulator/beam/erl_lock_check.c           |  6 ++---
 erts/emulator/beam/erl_lock_count.h           |  2 +-
 erts/emulator/beam/erl_map.c                  |  8 +++----
 erts/emulator/beam/erl_map.h                  |  2 +-
 erts/emulator/beam/erl_message.c              |  2 +-
 erts/emulator/beam/erl_message.h              |  4 ++--
 erts/emulator/beam/erl_monitor_link.c         |  2 +-
 erts/emulator/beam/erl_monitor_link.h         |  8 +++----
 erts/emulator/beam/erl_node_container_utils.h |  2 +-
 erts/emulator/beam/erl_node_tables.h          |  2 +-
 erts/emulator/beam/erl_proc_sig_queue.c       | 10 ++++----
 erts/emulator/beam/erl_proc_sig_queue.h       |  4 ++--
 erts/emulator/beam/erl_process.c              | 24 +++++++++----------
 erts/emulator/beam/erl_process.h              | 12 +++++-----
 erts/emulator/beam/erl_process_lock.c         | 12 +++++-----
 erts/emulator/beam/erl_process_lock.h         |  2 +-
 erts/emulator/beam/erl_ptab.c                 |  8 +++----
 erts/emulator/beam/erl_rbtree.h               |  2 +-
 erts/emulator/beam/erl_thr_progress.c         |  4 ++--
 erts/emulator/beam/erl_time_sup.c             |  4 ++--
 erts/emulator/beam/erl_trace.h                |  2 +-
 erts/emulator/beam/erl_unicode.c              |  8 +++----
 erts/emulator/beam/erlang_dtrace.d            |  2 +-
 erts/emulator/beam/hash.c                     |  2 +-
 erts/emulator/beam/io.c                       | 10 ++++----
 erts/emulator/beam/jit/arm/instr_bs.cpp       |  2 +-
 erts/emulator/beam/jit/arm/instr_common.cpp   |  4 ++--
 erts/emulator/beam/jit/arm/instr_fun.cpp      |  2 +-
 erts/emulator/beam/jit/arm/ops.tab            |  4 ++--
 .../emulator/beam/jit/x86/beam_asm_module.cpp |  2 +-
 erts/emulator/beam/jit/x86/instr_common.cpp   |  6 ++---
 erts/emulator/beam/jit/x86/instr_fun.cpp      |  2 +-
 .../beam/jit/x86/instr_guard_bifs.cpp         |  2 +-
 erts/emulator/beam/jit/x86/ops.tab            |  4 ++--
 erts/emulator/beam/sys.h                      |  4 ++--
 erts/emulator/beam/time.c                     |  2 +-
 erts/emulator/beam/utils.c                    |  2 +-
 73 files changed, 151 insertions(+), 151 deletions(-)

diff --git a/erts/emulator/beam/erl_bits_f16.h b/erts/emulator/beam/erl_bits_f16.h
index 653239d64d..cda52ab719 100644
--- a/erts/emulator/beam/erl_bits_f16.h
+++ b/erts/emulator/beam/erl_bits_f16.h
@@ -33,7 +33,7 @@
  * 1. uint16_t and uint32_t have been rewritten to Uint16 and Uint32
  * 2. Mixed declarations were moved to the top to avoid warnings
  * 3. inline was rewritten as ERTS_INLINE
- * 4. UINT16_C(x) and UINT32_C(x) were rewriten to xU as we don't support 16bits platform
+ * 4. UINT16_C(x) and UINT32_C(x) were rewritten to xU as we don't support 16bits platform
  */
 
 static ERTS_INLINE float fp32_from_bits(Uint32 w) {
@@ -180,7 +180,7 @@ static ERTS_INLINE float fp16_ieee_to_fp32_value(Uint16 h) {
      * A normalized single-precision floating-point number is represented as:
      *    FP32 = (1 + mantissa * 2**(-23)) * 2**(exponent - 127)
      * Therefore, when the biased exponent is 126, a unit change in the mantissa of the input denormalized half-precision
-     * number causes a change of the constructud single-precision number by 2**(-24), i.e. the same ammount.
+     * number causes a change of the constructud single-precision number by 2**(-24), i.e. the same amount.
      *
      * The last step is to adjust the bias of the constructed single-precision number. When the input half-precision number
      * is zero, the constructed single-precision number has the value of
-- 
2.31.1

openSUSE Build Service is sponsored by