search for: somethreshold

Displaying 1 result from an estimated 1 matches for "somethreshold".

Did you mean: sem_threshold
2020 Jan 18
2
Combining fast math flags with constrained intrinsics
...ons should be permitted by front ends and how constructs like pragmas should affect the various states. For example, I might have source code like this: -=-=-=-=-=-=-=-= double doSomethingVague(double X, double Y, double Z) { // Some operation that doesn't need to be precise. if (X/Y > SomeThreshold) return doSomethingPrecise(X, Y); else return Z; } #pragma STDC FENV_ACCESS ON double doSomethingPrecise(double X, double Y) { int SaveRM = fegetround(); fesetround(FE_DOWNWARD); feclearexcept(FE_ALL_EXCEPT); double Temp = X * Y + Z; if (fetestexcept(FE_ALL_EXCEPT)) std::ce...