aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScaleToSides.h
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2016-01-22 10:11:03 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-22 10:11:03 -0800
commit0d2bc849f9ceea1cf4fded7999e7cddb2c3b7fc4 (patch)
treee73a65a1a6d5cefeb12638aa5918497a509cf5d3 /src/core/SkScaleToSides.h
parentf1b8b6ae34e5a1f4b29e423401da39f88f0c117a (diff)
Use nextafter instead of nexttoward to avoid using long double calculation.
Diffstat (limited to 'src/core/SkScaleToSides.h')
-rw-r--r--src/core/SkScaleToSides.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkScaleToSides.h b/src/core/SkScaleToSides.h
index c3fa172f67..81ce4c4a13 100644
--- a/src/core/SkScaleToSides.h
+++ b/src/core/SkScaleToSides.h
@@ -45,10 +45,10 @@ public:
// If newMaxRadius forces the total over the limit, then it needs to be
// reduced by one ULP to be less than limit - newMinRadius.
- // Note: nexttowardf is a c99 call and should be std::nexttoward, but this is not
- // implemented in the ARM compiler.
+ // Note: nextafterf is a c99 call and should be std::nextafter, but this is not
+ // implemented in the GCC ARM compiler.
if (newMaxRadius + newMinRadius > limit) {
- newMaxRadius = nexttowardf(newMaxRadius, 0.0);
+ newMaxRadius = nextafterf(newMaxRadius, 0.0f);
}
*maxRadius = newMaxRadius;
}