Add branch hint to unlikely branch of rem_pio2_large

Adds a `@branchHint` to a 1 in 12 branch of the pi/2 remainder calculation.
This commit is contained in:
Liam Swayne 2024-12-19 01:20:25 -05:00 committed by Andrew Kelley
parent 5837147461
commit b976e89c16

View File

@ -356,6 +356,7 @@ pub fn rem_pio2_large(x: []f64, y: []f64, e0: i32, nx: i32, prec: usize) i32 {
}
}
if (q0 > 0) { // rare case: chance is 1 in 12
@branchHint(.unlikely);
switch (q0) {
1 => iq[@intCast(jz - 1)] &= 0x7fffff,
2 => iq[@intCast(jz - 1)] &= 0x3fffff,