mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 07:02:41 +00:00
code cleanup of named constants
zero, one, two, half are replaced by const literals The policy was to use the f suffix for float consts (1.0f), but don't use suffix for long double consts (these consts can be exactly represented as double).
This commit is contained in:
@ -79,7 +79,7 @@ long double rintl(long double x)
|
||||
* If the result is +-0, then it must have the same sign as x, but
|
||||
* the above calculation doesn't always give this. Fix up the sign.
|
||||
*/
|
||||
if (ex < BIAS && x == 0.0L)
|
||||
if (ex < BIAS && x == 0.0)
|
||||
return zero[sign];
|
||||
|
||||
return x;
|
||||
|
Reference in New Issue
Block a user