Module intrinsics Copy item path Source atomic ๐ simd ๐ EvalContextExt apply_random_float_error_to_imm ๐ Applies a random ULP floating point error to val
and returns the new value.
So if you want an X ULP error, ulp_exponent
should be log2(X). check_intrinsic_arg_count ๐ Check that the number of args is what we expect. clamp_float_value ๐ Given an floating-point operation and a floating-point value, clamps the result to the output
range of the given operation. fixed_float_value ๐ For the intrinsics: fixed_powi_float_value ๐ Returns Some(output)
if powi
(called pown
in C) results in a fixed value specified in the
C standard (specifically, C23 annex F.10.4.6) when doing base^exp
. Otherwise, returns None
.