Skip to content

Commit b514ed5

Browse files
osa1Amanieu
authored andcommitted
Rewording in Wasm all_true SIMD instruction docs
- Use "true" and "false" instead of "1" and "0" - "nonzero" -> "non-zero" - "returns true if ... or false if ..." -> "returns true ..., false otherwise"
1 parent c57a8f9 commit b514ed5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/core_arch/src/wasm32/simd128.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,7 @@ pub fn i8x16_popcnt(v: v128) -> v128 {
24262426
#[stable(feature = "wasm_simd", since = "1.54.0")]
24272427
pub use i8x16_popcnt as u8x16_popcnt;
24282428

2429-
/// Returns true if all lanes are nonzero or false if any lane is nonzero.
2429+
/// Returns true if all lanes are non-zero, false otherwise.
24302430
#[inline]
24312431
#[cfg_attr(test, assert_instr(i8x16.all_true))]
24322432
#[target_feature(enable = "simd128")]
@@ -2720,7 +2720,7 @@ pub fn i16x8_q15mulr_sat(a: v128, b: v128) -> v128 {
27202720
unsafe { llvm_q15mulr(a.as_i16x8(), b.as_i16x8()).v128() }
27212721
}
27222722

2723-
/// Returns 1 if all lanes are nonzero or 0 if any lane is nonzero.
2723+
/// Returns true if all lanes are non-zero, false otherwise.
27242724
#[inline]
27252725
#[cfg_attr(test, assert_instr(i16x8.all_true))]
27262726
#[target_feature(enable = "simd128")]
@@ -3150,7 +3150,7 @@ pub fn i32x4_neg(a: v128) -> v128 {
31503150
unsafe { simd_mul(a.as_i32x4(), simd::i32x4::splat(-1)).v128() }
31513151
}
31523152

3153-
/// Returns 1 if all lanes are nonzero or 0 if any lane is nonzero.
3153+
/// Returns true if all lanes are non-zero, false otherwise.
31543154
#[inline]
31553155
#[cfg_attr(test, assert_instr(i32x4.all_true))]
31563156
#[target_feature(enable = "simd128")]
@@ -3484,7 +3484,7 @@ pub fn i64x2_neg(a: v128) -> v128 {
34843484
unsafe { simd_mul(a.as_i64x2(), simd::i64x2::splat(-1)).v128() }
34853485
}
34863486

3487-
/// Returns 1 if all lanes are nonzero or 0 if any lane is nonzero.
3487+
/// Returns true if all lanes are non-zero, false otherwise.
34883488
#[inline]
34893489
#[cfg_attr(test, assert_instr(i64x2.all_true))]
34903490
#[target_feature(enable = "simd128")]

0 commit comments

Comments
 (0)