authorgravatar for 111569638+0Ahmed-0@users.noreply.github.comAhmed <111569638+0Ahmed-0@users.noreply.github.com> 2024-03-13 22:30:48+00:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-03-14 19:43:24+02:00
log5c8eda36d6de6e9858a7527af3a1e9851969189e
treefa7ac5db71c3e2e421489ec02dda995f88faf00c
parent400145ee3bb0740cc274a75b7c612d799811b5fe

chore: Fix some typos


10 files changed, 14 insertions(+), 14 deletions(-)

lib/compiler_rt/addf3.zig+1-1
......@@ -114,7 +114,7 @@ pub inline fn addf3(comptime T: type, a: T, b: T) T {
114114 // If a == -b, return +zero.
115115 if (aSignificand == 0) return @bitCast(@as(Z, 0));
116116
117 // If partial cancellation occured, we need to left-shift the result
117 // If partial cancellation occurred, we need to left-shift the result
118118 // and adjust the exponent:
119119 if (aSignificand < integerBit << 3) {
120120 const shift = @as(i32, @intCast(@clz(aSignificand))) - @as(i32, @intCast(@clz(integerBit << 3)));
lib/compiler_rt/addo.zig+1-1
......@@ -25,7 +25,7 @@ inline fn addoXi4_generic(comptime ST: type, a: ST, b: ST, overflow: *c_int) ST
2525 // and the sign of a+b+carry is the same as a (or equivalently b).
2626 // Slower routine: res = ~(a ^ b) & ((sum ^ a)
2727 // Faster routine: res = (sum ^ a) & (sum ^ b)
28 // Overflow occured, iff (res < 0)
28 // Overflow occurred, iff (res < 0)
2929 if (((sum ^ a) & (sum ^ b)) < 0)
3030 overflow.* = 1;
3131 return sum;
lib/compiler_rt/divtf3.zig+1-1
......@@ -140,7 +140,7 @@ inline fn div(a: f128, b: f128) f128 {
140140 var reciprocal: u128 = undefined;
141141
142142 // NOTE: This operation is equivalent to __multi3, which is not implemented
143 // in some architechure
143 // in some architecture
144144 var r64q63: u128 = undefined;
145145 var r64q127: u128 = undefined;
146146 var r64cH: u128 = undefined;
lib/compiler_rt/emutls.zig+2-2
......@@ -145,7 +145,7 @@ const ObjectArray = struct {
145145 }
146146};
147147
148// Global stucture for Thread Storage.
148// Global structure for Thread Storage.
149149// It provides thread-safety for on-demand storage of Thread Objects.
150150const current_thread_storage = struct {
151151 var key: std.c.pthread_key_t = undefined;
......@@ -358,7 +358,7 @@ test "__emutls_get_address with default_value" {
358358 try expect(y.* == 9012); // the modified storage persists
359359}
360360
361test "test default_value with differents sizes" {
361test "test default_value with different sizes" {
362362 if (!builtin.link_libc or builtin.os.tag != .openbsd) return error.SkipZigTest;
363363
364364 const testType = struct {
lib/compiler_rt/fmod.zig+3-3
......@@ -58,7 +58,7 @@ pub fn __fmodx(a: f80, b: f80) callconv(.C) f80 {
5858 // - fmodx(val, NaN)
5959 // - fmodx(inf, val)
6060 // The sign on checked values does not matter.
61 // Doing (a * b) / (a * b) procudes undefined results
61 // Doing (a * b) / (a * b) produces undefined results
6262 // because the three cases always produce undefined calculations:
6363 // - 0 / 0
6464 // - val * NaN
......@@ -163,7 +163,7 @@ pub fn fmodq(a: f128, b: f128) callconv(.C) f128 {
163163 // - fmodq(val, NaN)
164164 // - fmodq(inf, val)
165165 // The sign on checked values does not matter.
166 // Doing (a * b) / (a * b) procudes undefined results
166 // Doing (a * b) / (a * b) produces undefined results
167167 // because the three cases always produce undefined calculations:
168168 // - 0 / 0
169169 // - val * NaN
......@@ -239,7 +239,7 @@ pub fn fmodq(a: f128, b: f128) callconv(.C) f128 {
239239 aPtr_u64[high_index] = highA;
240240 aPtr_u64[low_index] = lowA;
241241
242 // Combine the exponent with the sign, normalize if happend to be denormalized
242 // Combine the exponent with the sign, normalize if happened to be denormalized
243243 if (expA <= 0) {
244244 aPtr_u16[exp_and_sign_index] = @as(u16, @truncate(@as(u32, @bitCast((expA +% 120))))) | signA;
245245 amod *= 0x1p-120;
lib/compiler_rt/mulf3_test.zig+1-1
......@@ -13,7 +13,7 @@ const __muldf3 = @import("muldf3.zig").__muldf3;
1313const __mulsf3 = @import("mulsf3.zig").__mulsf3;
1414
1515// return true if equal
16// use two 64-bit integers intead of one 128-bit integer
16// use two 64-bit integers instead of one 128-bit integer
1717// because 128-bit integer constant can't be assigned directly
1818fn compareResultLD(result: f128, expectedHi: u64, expectedLo: u64) bool {
1919 const rep: u128 = @bitCast(result);
lib/compiler_rt/rem_pio2_large.zig+2-2
......@@ -174,14 +174,14 @@ const PIo2 = [_]f64{
174174/// z = (z-x[i])*2**24
175175///
176176///
177/// y[] ouput result in an array of double precision numbers.
177/// y[] output result in an array of double precision numbers.
178178/// The dimension of y[] is:
179179/// 24-bit precision 1
180180/// 53-bit precision 2
181181/// 64-bit precision 2
182182/// 113-bit precision 3
183183/// The actual value is the sum of them. Thus for 113-bit
184/// precison, one may have to do something like:
184/// precision, one may have to do something like:
185185///
186186/// long double t,w,r_head, r_tail;
187187/// t = (long double)y[2] + (long double)y[1];
lib/compiler_rt/subo.zig+1-1
......@@ -34,7 +34,7 @@ inline fn suboXi4_generic(comptime ST: type, a: ST, b: ST, overflow: *c_int) ST
3434 // and the sign of a-b-carry is opposite of a (or equivalently same as b).
3535 // Faster routine: res = (a ^ b) & (sum ^ a)
3636 // Slower routine: res = (sum^a) & ~(sum^b)
37 // Overflow occured, iff (res < 0)
37 // Overflow occurred, iff (res < 0)
3838 if (((a ^ b) & (sum ^ a)) < 0)
3939 overflow.* = 1;
4040 return sum;
test/standalone/stack_iterator/unwind.zig+1-1
......@@ -19,7 +19,7 @@ noinline fn frame3(expected: *[4]usize, unwound: *[4]usize) void {
1919}
2020
2121noinline fn frame2(expected: *[4]usize, unwound: *[4]usize) void {
22 // Excercise different __unwind_info / DWARF CFI encodings by forcing some registers to be restored
22 // Exercise different __unwind_info / DWARF CFI encodings by forcing some registers to be restored
2323 if (builtin.target.ofmt != .c) {
2424 switch (builtin.cpu.arch) {
2525 .x86 => {
tools/update_spirv_features.zig+1-1
......@@ -243,7 +243,7 @@ fn gather_extensions(allocator: Allocator, spirv_registry_root: []const u8) ![]c
243243 if (!std.mem.endsWith(u8, ext_entry.name, ".asciidoc"))
244244 continue;
245245
246 // Unfortunately, some extension filenames are incorrect, so we need to look for the string in tne 'Name Strings' section.
246 // Unfortunately, some extension filenames are incorrect, so we need to look for the string in the 'Name Strings' section.
247247 // This has the following format:
248248 // ```
249249 // Name Strings