Raymond Toy pushed to branch issue-435-add-core-math-lisp-support at cmucl / cmucl
Commits:
-
a03443c7
by Raymond Toy at 2026-03-04T06:59:11-08:00
1 changed file:
Changes:
| ... | ... | @@ -58,7 +58,10 @@ __ieee754_expf(float x) |
| 58 | 58 | return x+x; /* NaN */
|
| 59 | 59 | if(hx==0x7f800000)
|
| 60 | 60 | return (xsb==0)? x:0.0; /* exp(+-inf)={inf,0} */
|
| 61 | - if(x > o_threshold) return huge*huge; /* overflow */
|
|
| 61 | + if(x > o_threshold) {
|
|
| 62 | + volatile float fhuge = huge;
|
|
| 63 | + return fhuge*fhuge; /* overflow */
|
|
| 64 | + }
|
|
| 62 | 65 | if(x < u_threshold) return twom100*twom100; /* underflow */
|
| 63 | 66 | }
|
| 64 | 67 |