Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
- 
d2c96f1b
by Raymond Toy at 2025-08-14T07:45:18-07:00
 - 
2db294b1
by Raymond Toy at 2025-08-14T07:45:18-07:00
 
2 changed files:
Changes:
| ... | ... | @@ -1265,7 +1265,7 @@ | 
| 1265 | 1265 | |
| 1266 | 1266 |  ;;;; Float mode hackery:
 | 
| 1267 | 1267 | |
| 1268 | -(deftype float-modes () '(unsigned-byte 24))
 | 
|
| 1268 | +(deftype float-modes () '(unsigned-byte 30))
 | 
|
| 1269 | 1269 | |
| 1270 | 1270 |  ;; For the record, here is the format of the MXCSR register.
 | 
| 1271 | 1271 |  ;;
 | 
| ... | ... | @@ -333,3 +333,13 @@ | 
| 333 | 333 |                                         (declare (ignore c))
 | 
| 334 | 334 |                                         (values (invoke-restart 'lisp::largest-float)))))
 | 
| 335 | 335 |                        (read-from-string string))))))
 | 
| 336 | +  | 
|
| 337 | +#+x86
 | 
|
| 338 | +(define-test x87-set-floating-point-modes
 | 
|
| 339 | +    (:tag :issues)
 | 
|
| 340 | +  (let ((new-mode (setf (x86::x87-floating-point-modes)
 | 
|
| 341 | +			(dpb 2 (byte 2 24)
 | 
|
| 342 | +			     (x86::x87-floating-point-modes)))))
 | 
|
| 343 | +    (assert-true (typep new-mode 'x86::float-modes))
 | 
|
| 344 | +    (assert-equal new-mode (setf (x86::x87-floating-point-modes) new-mode))))
 | 
|
| 345 | +  |