apply 10.p+32 -> (float)(1 << 23) fix from MathTest here as well
windows can't eat the former syntax git-svn-id: http://skia.googlecode.com/svn/trunk@4070 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
eec9dbcace
commit
f3a8d8e0ff
@ -10,7 +10,8 @@ static float sk_fsel(float pred, float result_ge, float result_lt) {
|
||||
}
|
||||
|
||||
static float fast_floor(float x) {
|
||||
float big = sk_fsel(x, 0x1.0p+23, -0x1.0p+23);
|
||||
// float big = sk_fsel(x, 0x1.0p+23, -0x1.0p+23);
|
||||
float big = sk_fsel(x, (float)(1 << 23), -(float)(1 << 23));
|
||||
return (x + big) - big;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user