aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/MathBench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/MathBench.cpp')
-rw-r--r--bench/MathBench.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/MathBench.cpp b/bench/MathBench.cpp
index 41176b47d6..0e35940bfa 100644
--- a/bench/MathBench.cpp
+++ b/bench/MathBench.cpp
@@ -10,7 +10,8 @@ static float sk_fsel(float pred, float result_ge, float result_lt) {
}
static float fast_floor(float x) {
- float big = sk_fsel(x, 0x1.0p+23, -0x1.0p+23);
+// float big = sk_fsel(x, 0x1.0p+23, -0x1.0p+23);
+ float big = sk_fsel(x, (float)(1 << 23), -(float)(1 << 23));
return (x + big) - big;
}