mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue