Skip to content

Commit ea3398a

Browse files
Add more SIMD math.h intrinsics
LLVM supports many functions from math.h in its IR. Many of these have single-instruction variants on various platforms. So, let's add them so std::arch can use them. Yes, exact comparison is intentional: rounding must always return a valid integer-equal value, except for inf/NAN.
1 parent a7c4c3e commit ea3398a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/intrinsics/simd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,5 +277,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
277277
// simd_select
278278
// simd_rem
279279
// simd_neg
280+
// simd_trunc
281+
// simd_floor
280282
}
281283
}

0 commit comments

Comments
 (0)