You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
New method for preventing compile-time calculation of degree constants.
Commit65abaab tried to prevent the scaling constants used inthe degree-based trig functions from being precomputed at compile time,because some compilers do that with functions that don't yield resultsidentical-to-the-last-bit to what you get at runtime. A report fromPeter Eisentraut suggests that some recent compilers are smart enoughto see through that trick, though. Instead, let's put the inputs tothese calculations into non-const global variables, which should be amore reliable way of convincing the compiler that it can't assume thatthey are compile-time constants. (If we really get desperate, we couldmark these variables "volatile", but I do not believe we should have to.)