| author | |
| committer | |
| log | f857bf72e2239718bbbe4cba08d6961ad77fc69a |
| tree | 678973b9f4f58a09600525bba94b504d913c5ae8 |
| parent | 4ae101ca851bb8a5437153137cfa70c4bf0c8d15 |
NaN is an unlikely case, and a branchHint `.unlikely` could be appropriate.1 files changed, 1 insertions(+), 0 deletions(-)
lib/std/math/pow.zig+1| ... | ... | @@ -48,6 +48,7 @@ pub fn pow(comptime T: type, x: T, y: T) T { |
| 48 | 48 | // pow(nan, y) = nan for all y |
| 49 | 49 | // pow(x, nan) = nan for all x |
| 50 | 50 | if (math.isNan(x) or math.isNan(y)) { |
| 51 | @branchHint(.unlikely); | |
| 51 | 52 | return math.nan(T); |
| 52 | 53 | } |
| 53 | 54 |