aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/MathTest.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-30 12:43:59 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-30 12:43:59 +0000
commitc3b697298e1185397c192457a4587b6ad0559c93 (patch)
tree6266776b0079ba120d180ececc522171802d2fb8 /tests/MathTest.cpp
parenta7d7461cf0835fc42ba9b49feab947395ed73423 (diff)
win can't eat 1.0p+23 syntax for floats :(
git-svn-id: http://skia.googlecode.com/svn/trunk@4067 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/MathTest.cpp')
-rw-r--r--tests/MathTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp
index fda5abdec4..e4596da8aa 100644
--- a/tests/MathTest.cpp
+++ b/tests/MathTest.cpp
@@ -17,8 +17,12 @@ static float sk_fsel(float pred, float result_ge, float result_lt) {
}
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);
return (x + big) - big;
+#endif
}
static float std_floor(float x) {