Skip to content

Commit f7b0bd9

Browse files
committed
all: rename @maximum to @max and @minimum to @min
1 parent 9d8cdb8 commit f7b0bd9

33 files changed

+299
-299
lines changed

doc/langref.html.in

+6-6
Original file line numberDiff line numberDiff line change
@@ -8845,15 +8845,15 @@ test "integer cast panic" {
88458845
</p>
88468846
{#header_close#}
88478847

8848-
{#header_open|@maximum#}
8849-
<pre>{#syntax#}@maximum(a: T, b: T) T{#endsyntax#}</pre>
8848+
{#header_open|@max#}
8849+
<pre>{#syntax#}@max(a: T, b: T) T{#endsyntax#}</pre>
88508850
<p>
88518851
Returns the maximum value of {#syntax#}a{#endsyntax#} and {#syntax#}b{#endsyntax#}. This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
88528852
</p>
88538853
<p>
88548854
NaNs are handled as follows: if one of the operands of a (pairwise) operation is NaN, the other operand is returned. If both operands are NaN, NaN is returned.
88558855
</p>
8856-
{#see_also|@minimum|Vectors#}
8856+
{#see_also|@min|Vectors#}
88578857
{#header_close#}
88588858

88598859
{#header_open|@memcpy#}
@@ -8893,15 +8893,15 @@ mem.copy(u8, dest[0..byte_count], source[0..byte_count]);{#endsyntax#}</pre>
88938893
mem.set(u8, dest, c);{#endsyntax#}</pre>
88948894
{#header_close#}
88958895

8896-
{#header_open|@minimum#}
8897-
<pre>{#syntax#}@minimum(a: T, b: T) T{#endsyntax#}</pre>
8896+
{#header_open|@min#}
8897+
<pre>{#syntax#}@min(a: T, b: T) T{#endsyntax#}</pre>
88988898
<p>
88998899
Returns the minimum value of {#syntax#}a{#endsyntax#} and {#syntax#}b{#endsyntax#}. This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
89008900
</p>
89018901
<p>
89028902
NaNs are handled as follows: if one of the operands of a (pairwise) operation is NaN, the other operand is returned. If both operands are NaN, NaN is returned.
89038903
</p>
8904-
{#see_also|@maximum|Vectors#}
8904+
{#see_also|@max|Vectors#}
89058905
{#header_close#}
89068906

89078907
{#header_open|@wasmMemorySize#}

lib/compiler_rt/float_to_int.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ pub inline fn floatToInt(comptime I: type, a: anytype) I {
2929
switch (@typeInfo(I).Int.signedness) {
3030
.unsigned => {
3131
if (negative) return 0;
32-
if (@intCast(c_uint, exponent) >= @minimum(int_bits, max_exp)) return math.maxInt(I);
32+
if (@intCast(c_uint, exponent) >= @min(int_bits, max_exp)) return math.maxInt(I);
3333
},
34-
.signed => if (@intCast(c_uint, exponent) >= @minimum(int_bits - 1, max_exp)) {
34+
.signed => if (@intCast(c_uint, exponent) >= @min(int_bits - 1, max_exp)) {
3535
return if (negative) math.minInt(I) else math.maxInt(I);
3636
},
3737
}

0 commit comments

Comments
 (0)