Commit 92984ef0 by alokp@chromium.org

Replaces fmod with modf.

Review URL: http://codereview.appspot.com/1125043 git-svn-id: https://angleproject.googlecode.com/svn/trunk@244 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent b892fc66
......@@ -13,7 +13,8 @@
// Returns the fractional part of the given floating-point number.
inline float fractionalPart(float f) {
return fmodf(f, 1.0f);
float intPart = 0.0f;
return modff(f, &intPart);
}
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment