mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 06:43:07 +00:00
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:
parent
5837147461
commit
b976e89c16
@ -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
|
if (q0 > 0) { // rare case: chance is 1 in 12
|
||||||
|
@branchHint(.unlikely);
|
||||||
switch (q0) {
|
switch (q0) {
|
||||||
1 => iq[@intCast(jz - 1)] &= 0x7fffff,
|
1 => iq[@intCast(jz - 1)] &= 0x7fffff,
|
||||||
2 => iq[@intCast(jz - 1)] &= 0x3fffff,
|
2 => iq[@intCast(jz - 1)] &= 0x3fffff,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user