From f3a8d8e0ff34eae8c300268af17789cb3c275ca5 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 30 May 2012 14:08:57 +0000 Subject: 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 --- bench/MathBench.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bench/MathBench.cpp') 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; } -- cgit v1.2.3