aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/MathBench.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-06 20:18:05 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-12-06 20:18:05 +0000
commit5ae777dcad2c211814f5e9cde803ef6cc96a595f (patch)
tree55c8052b5530fde9ed3c4be8d4da25c40bb5b082 /bench/MathBench.cpp
parent675c5c4303f75581405b510537e2fccd69bd416f (diff)
rename sk_float_isNaN to sk_float_isnan to match related functions
add sk_float_isinf returning non-zero if the argument is +/- infinity git-svn-id: http://skia.googlecode.com/svn/trunk@2813 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/MathBench.cpp')
-rw-r--r--bench/MathBench.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/bench/MathBench.cpp b/bench/MathBench.cpp
index ffee901545..9feb5afb32 100644
--- a/bench/MathBench.cpp
+++ b/bench/MathBench.cpp
@@ -186,7 +186,7 @@ static bool isfinite_plus_int(const float data[4]) {
}
static bool isfinite_plus_float(const float data[4]) {
- return !sk_float_isNaN(mulzeroadd(data));
+ return !sk_float_isnan(mulzeroadd(data));
}
static bool isfinite_plus_mulzero(const float data[4]) {
@@ -212,11 +212,6 @@ static const struct {
#undef MAKEREC
-static bool SkScalarIsNaN_new(SkScalar x) {
- float y = x * 0;
- return y == y;
-}
-
static bool isFinite(const SkRect& r) {
// x * 0 will be NaN iff x is infinity or NaN.
// a + b will be NaN iff either a or b is NaN.