From 4c79fce665fbe73ddef1785f590a54a7ea18e946 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 17 Dec 2023 00:51:23 +1000 Subject: [PATCH] docs: fix spelling --- doc/internal/boxing.md | 4 ++-- mrbgems/mruby-bigint/README-fgmp.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/internal/boxing.md b/doc/internal/boxing.md index f3bd086e4..eb03de74b 100644 --- a/doc/internal/boxing.md +++ b/doc/internal/boxing.md @@ -24,12 +24,12 @@ The Word boxing packing bit patterns are like following: | undef | `00000000 00000000 00000000 00010100` | | symbol | `xxxxxxxx xxxxxxxx xxxxxxxx xxxxxx10` | -On 64 bit platform (unless `MRB_WORDBOX_NO_FLOAT_TRUNCATE`), float values are also packed in the `mrb_value`. In that case, we drop least significant 2 bits from mantissa. +On 64-bit platforms (unless `MRB_WORDBOX_NO_FLOAT_TRUNCATE`), float values are also packed in the `mrb_value`. In that case, we drop least significant 2 bits from mantissa. If you need full precision for floating-point numbers, define `MRB_WORDBOX_NO_FLOAT_TRUNCATE`. ## NaN Boxing -NaN boxing packs the Ruby data in a floating-point numbers, which represent NaN (Not a Number) values. Under IEEE753 definitions every value that exponent is all set are considered as NaN. That means NaN can represent `2^51` values. NaN boxing is a teaching to pack the values in those NaN representation. In theory, 64 bits pointers are too big to fit in NaN, but practically most OS uses only 48 bits at most for pointers (except for some OS e.g. Solaris). +NaN boxing packs the Ruby data in a floating-point numbers, which represent NaN (Not a Number) values. Under IEEE753 definitions every value that exponent is all set are considered as NaN. That means NaN can represent `2^51` values. NaN boxing is a teaching to pack the values in those NaN representation. In theory, 64 bit pointers are too big to fit in NaN, but practically most OS use only 48 bits at most for pointers (except for some OS e.g. Solaris). The NaN boxing packing bit patterns are like following: diff --git a/mrbgems/mruby-bigint/README-fgmp.md b/mrbgems/mruby-bigint/README-fgmp.md index 24e131ba9..591188c12 100644 --- a/mrbgems/mruby-bigint/README-fgmp.md +++ b/mrbgems/mruby-bigint/README-fgmp.md @@ -56,7 +56,7 @@ Thanks also to Erick Gallesio for a fix to mpz_init_set_str Define B64 if your "long" type is 64 bits. Otherwise we assume 32 -bit longs. (The 64 bit version hasn't been tested enough) +bit longs. (The 64-bit version hasn't been tested enough) ``` Platforms: