use (float)(1 << 23) instead of 1.0p+23 since the latter isn't supported in VS
git-svn-id: http://skia.googlecode.com/svn/trunk@4068 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp
index e4596da..11e47d7 100644
--- a/tests/MathTest.cpp
+++ b/tests/MathTest.cpp
@@ -17,12 +17,9 @@
}
static float fast_floor(float x) {
-#ifdef SK_BUILD_FOR_WIN
- return sk_float_floor(x);
-#else
- 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;
-#endif
}
static float std_floor(float x) {