mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
Do not mask the y1 symbol exported by math.h
Do you ever wonder what would happen if glibc were a serious library and not the joke it actually is?
This commit is contained in:
parent
b8d6f3aaab
commit
fffdeb64c7
@ -626,7 +626,7 @@ clutter_sqrti (gint number)
|
||||
* elsewhere in clutter is not good enough, and 10.22 is used instead.
|
||||
*/
|
||||
ClutterFixed x;
|
||||
unsigned long y1; /* 10.22 fixed point */
|
||||
unsigned long y_1; /* 10.22 fixed point */
|
||||
unsigned long f = 0x600000; /* '1.5' as 10.22 fixed */
|
||||
|
||||
union
|
||||
@ -658,11 +658,11 @@ clutter_sqrti (gint number)
|
||||
flt2.i &= 0x7FFFFF;
|
||||
|
||||
/* Now we correct the estimate, only single iterration is needed */
|
||||
y1 = (flt2.i >> 11) * (flt2.i >> 11);
|
||||
y1 = (y1 >> 8) * (x >> 8);
|
||||
y_1 = (flt2.i >> 11) * (flt2.i >> 11);
|
||||
y_1 = (y_1 >> 8) * (x >> 8);
|
||||
|
||||
y1 = f - y1;
|
||||
flt2.i = (flt2.i >> 11) * (y1 >> 11);
|
||||
y_1 = f - y_1;
|
||||
flt2.i = (flt2.i >> 11) * (y_1 >> 11);
|
||||
|
||||
/* Invert, round and convert from 10.22 to an integer
|
||||
* 0x1e3c68 is a magical rounding constant that produces slightly
|
||||
|
Loading…
Reference in New Issue
Block a user