Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e12da35

Browse filesBrowse files
committed
Fix spelling
1 parent 919a689 commit e12da35
Copy full SHA for e12da35

10 files changed

+27-27Lines changed: 27 additions & 27 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎appveyor.yml‎

Copy file name to clipboardExpand all lines: appveyor.yml
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,39 @@ shallow_clone: true
44

55
environment:
66
matrix:
7-
- job_name: Visual Studio 2022 64bit
7+
- job_name: Visual Studio 2022 64-bit
88
visualcpp: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
99
appveyor_build_worker_image: Visual Studio 2022
1010

11-
- job_name: Visual Studio 2019 64bit
11+
- job_name: Visual Studio 2019 64-bit
1212
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
1313
appveyor_build_worker_image: Visual Studio 2019
1414

15-
- job_name: Visual Studio 2019 32bit
15+
- job_name: Visual Studio 2019 32-bit
1616
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat
1717
appveyor_build_worker_image: Visual Studio 2019
1818

19-
- job_name: Visual Studio 2017 64bit
19+
- job_name: Visual Studio 2017 64-bit
2020
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat
2121
appveyor_build_worker_image: Visual Studio 2017
2222

23-
- job_name: Visual Studio 2017 32bit
23+
- job_name: Visual Studio 2017 32-bit
2424
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat
2525
appveyor_build_worker_image: Visual Studio 2017
2626

27-
- job_name: Visual Studio 2015 64bit
27+
- job_name: Visual Studio 2015 64-bit
2828
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
2929
appveyor_build_worker_image: Visual Studio 2015
3030
machine: x86_amd64
3131

32-
- job_name: Visual Studio 2015 32bit
32+
- job_name: Visual Studio 2015 32-bit
3333
visualcpp: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
3434
appveyor_build_worker_image: Visual Studio 2015
3535
machine: x86
3636

3737
init:
3838
- call "%visualcpp%" %machine%
39-
# For using RubyInstaller's Ruby 2.6 64bit
39+
# For using RubyInstaller's Ruby 2.6 64-bit
4040
# 2.6 is the highest supported Ruby version across all historical
4141
# Visual Studio AppVeyor images. Ruby 2.7 is only on the 2019 image.
4242
- set PATH=C:\Ruby26-x64\bin;%PATH%
Collapse file

‎doc/internal/boxing.md‎

Copy file name to clipboardExpand all lines: doc/internal/boxing.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you need full precision for floating-point numbers, define `MRB_WORDBOX_NO_FL
2929

3030
## NaN Boxing
3131

32-
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).
32+
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).
3333

3434
The NaN boxing packing bit patterns are like following:
3535

Collapse file

‎doc/mruby3.0.md‎

Copy file name to clipboardExpand all lines: doc/mruby3.0.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ directory. For examples:
99

1010
- `default`: the default configuration
1111
- `host-gprof`: compiles with `gprof` for performance tuning
12-
- `host-m32`: compiles in gcc 32bit mode on 64bit platforms
12+
- `host-m32`: compiles in gcc 32-bit mode on 64-bit platforms
1313
- `boxing`: compiles all three boxing options
1414
- `clang-asan`: compiles with `clang`'s Address Sanitizer
1515

@@ -62,7 +62,7 @@ or `MRB_NO_XXX`).
6262
- `MRB_USE_FLOAT32` is changed from `MRB_USE_FLOAT` to make sure `float` here
6363
means using single-precision float, and not the opposite of `MRB_NO_FLOAT`.
6464
- `MRB_USE_METHOD_T_STRUCT` uses `struct` version of `mrb_method_t`. More
65-
portable but consumes more memory. Turned on by default on 32bit platforms.
65+
portable but consumes more memory. Turned on by default on 32-bit platforms.
6666
- `MRB_` prefix is added to those without.
6767

6868
## `MRB_NO_BOXING`
Collapse file

‎doc/mruby3.1.md‎

Copy file name to clipboardExpand all lines: doc/mruby3.1.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ We have added several new build configurations in the `build_config` directory.
3737
- `nintendo_switch.rb`
3838
- `serenity.rb`
3939
- `minimal`: minimal configuration
40-
- `host-f32`: compiles with `mrb_float` as 32 bit `float`
40+
- `host-f32`: compiles with `mrb_float` as 32-bit `float`
4141
- `host-nofloat`: compiles with no float configuration
4242
- `android_arm64_v8a.rb`: renamed from `android_arm64-v8a.rb`
4343

Collapse file

‎include/mrbconf.h‎

Copy file name to clipboardExpand all lines: include/mrbconf.h
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#endif
1919

2020
#if defined(MRB_32BIT) && defined(MRB_64BIT)
21-
#error Cannot build for 32 and 64 bit architecture at the same time
21+
#error Cannot build for 32 and 64-bit architecture at the same time
2222
#endif
2323

2424
/* configuration options: */
@@ -73,21 +73,21 @@
7373
/* if defined mruby allocates Float objects in the heap to keep full precision if needed */
7474
//#define MRB_WORDBOX_NO_FLOAT_TRUNCATE
7575

76-
/* add -DMRB_INT32 to use 32bit integer for mrb_int; conflict with MRB_INT64;
76+
/* add -DMRB_INT32 to use 32-bit integer for mrb_int; conflict with MRB_INT64;
7777
Default for 32-bit CPU mode. */
7878
//#define MRB_INT32
7979

80-
/* add -DMRB_INT64 to use 64bit integer for mrb_int; conflict with MRB_INT32;
80+
/* add -DMRB_INT64 to use 64-bit integer for mrb_int; conflict with MRB_INT32;
8181
Default for 64-bit CPU mode (unless using MRB_NAN_BOXING). */
8282
//#define MRB_INT64
8383

8484
/* if no specific integer type is chosen */
8585
#if !defined(MRB_INT32) && !defined(MRB_INT64)
8686
# if defined(MRB_64BIT) && !defined(MRB_NAN_BOXING)
87-
/* Use 64bit integers on 64bit architecture (without MRB_NAN_BOXING) */
87+
/* Use 64-bit integers on 64-bit architecture (without MRB_NAN_BOXING) */
8888
# define MRB_INT64
8989
# else
90-
/* Otherwise use 32bit integers */
90+
/* Otherwise use 32-bit integers */
9191
# define MRB_INT32
9292
# endif
9393
#endif
Collapse file

‎include/mruby/boxing_word.h‎

Copy file name to clipboardExpand all lines: include/mruby/boxing_word.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ enum mrb_special_consts {
8080
/*
8181
* mrb_value representation:
8282
*
83-
* 64bit word with inline float:
83+
* 64-bit word with inline float:
8484
* nil : ...0000 0000 (all bits are 0)
8585
* false : ...0000 0100 (mrb_fixnum(v) != 0)
8686
* true : ...0000 1100
@@ -90,7 +90,7 @@ enum mrb_special_consts {
9090
* float : ...FFFF FF10 (51 bit significands; require MRB_64BIT)
9191
* object: ...PPPP P000
9292
*
93-
* 32bit word with inline float:
93+
* 32-bit word with inline float:
9494
* nil : ...0000 0000 (all bits are 0)
9595
* false : ...0000 0100 (mrb_fixnum(v) != 0)
9696
* true : ...0000 1100
Collapse file

‎include/mruby/irep.h‎

Copy file name to clipboardExpand all lines: include/mruby/irep.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ MRB_BEGIN_DECL
1818
enum irep_pool_type {
1919
IREP_TT_STR = 0, /* string (need free) */
2020
IREP_TT_SSTR = 2, /* string (static) */
21-
IREP_TT_INT32 = 1, /* 32bit integer */
22-
IREP_TT_INT64 = 3, /* 64bit integer */
21+
IREP_TT_INT32 = 1, /* 32-bit integer */
22+
IREP_TT_INT64 = 3, /* 64-bit integer */
2323
IREP_TT_BIGINT = 7, /* big integer (not yet supported) */
2424
IREP_TT_FLOAT = 5, /* float (double/float) */
2525
};
Collapse file

‎mrbgems/mruby-test-inline-struct/test/inline.rb‎

Copy file name to clipboardExpand all lines: mrbgems/mruby-test-inline-struct/test/inline.rb
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,21 +98,21 @@ def test_ivar_get
9898

9999
# 64-bit mode
100100
if InlineStructTest.length == 24
101-
assert('InlineStructTest length [64 bit]') do
101+
assert('InlineStructTest length [64-bit]') do
102102
assert_equal InlineStructTest.length, 3 * 8
103103
end
104104
end
105105

106106
# 32-bit mode
107107
if InlineStructTest.length == 12
108-
assert('InlineStructTest length [32 bit]') do
108+
assert('InlineStructTest length [32-bit]') do
109109
assert_equal InlineStructTest.length, 3 * 4
110110
end
111111
end
112112

113113
# 16-bit mode
114114
if InlineStructTest.length == 6
115-
assert('InlineStructTest length [16 bit]') do
115+
assert('InlineStructTest length [16-bit]') do
116116
assert_equal InlineStructTest.length, 3 * 2
117117
end
118118
end
Collapse file

‎src/dump.c‎

Copy file name to clipboardExpand all lines: src/dump.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ get_pool_block_size(mrb_state *mrb, const mrb_irep *irep)
119119
/* fall through */
120120
#endif
121121
case IREP_TT_INT32:
122-
size += 4; /* 32bits = 4bytes */
122+
size += 4; /* 32 bits = 4 bytes */
123123
break;
124124

125125
case IREP_TT_BIGINT:
Collapse file

‎src/string.c‎

Copy file name to clipboardExpand all lines: src/string.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ mrb_str_substr(mrb_state *mrb, mrb_value str, mrb_int beg, mrb_int len)
17951795
}
17961796

17971797
/*
1798-
* 32 bit magic FNV-0 and FNV-1 prime
1798+
* 32-bit magic FNV-0 and FNV-1 prime
17991799
b */
18001800
#define FNV_32_PRIME ((uint32_t)0x01000193)
18011801
#define FNV1_32_INIT ((uint32_t)0x811c9dc5)
@@ -1809,7 +1809,7 @@ mrb_byte_hash_step(const uint8_t *s, mrb_int len, uint32_t hval)
18091809
* FNV-1 hash each octet in the buffer
18101810
*/
18111811
while (s < send) {
1812-
/* multiply by the 32 bit FNV magic prime mod 2^32 */
1812+
/* multiply by the 32-bit FNV magic prime mod 2^32 */
18131813
#if defined(NO_FNV_GCC_OPTIMIZATION)
18141814
hval *= FNV_32_PRIME;
18151815
#else

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.