aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/MathBench.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-30 14:08:57 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-30 14:08:57 +0000
commitf3a8d8e0ff34eae8c300268af17789cb3c275ca5 (patch)
tree4e1668b9dc69bef47f9877f86b6cc34820711be1 /bench/MathBench.cpp
parenteec9dbcace17b446d7ac3bf20f24c29cfd29736b (diff)
apply 10.p+32 -> (float)(1 << 23) fix from MathTest here as well
windows can't eat the former syntax git-svn-id: http://skia.googlecode.com/svn/trunk@4070 2bbb7eff-a529-9590-31e7-b0007b416f81
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;
}