diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-23 11:56:44 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-23 11:56:44 +0000 |
commit | 3b97af5add04489d57c7926ba6dc6f0013daf40f (patch) | |
tree | 40db068c2b906575b3afa46cac6a2bbe9a840e39 /include/core/SkFloatingPoint.h | |
parent | c7e08bd6d06a421050ddd7060fbafa5b5e047752 (diff) |
path ops -- use standard max, min, double-is-nan
fix a comment or two as well
Review URL: https://codereview.chromium.org/13934009
git-svn-id: http://skia.googlecode.com/svn/trunk@8822 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkFloatingPoint.h')
-rw-r--r-- | include/core/SkFloatingPoint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkFloatingPoint.h b/include/core/SkFloatingPoint.h index 02880f3d23..44a3eef98d 100644 --- a/include/core/SkFloatingPoint.h +++ b/include/core/SkFloatingPoint.h @@ -77,6 +77,8 @@ static inline float sk_float_copysign(float x, float y) { #define sk_float_isinf(x) isinf(x) #endif +#define sk_double_isnan(a) sk_float_isnan(a) + #ifdef SK_USE_FLOATBITS #define sk_float_floor2int(x) SkFloatToIntFloor(x) #define sk_float_round2int(x) SkFloatToIntRound(x) |