Files
jak-project/goal_src/test/test-bfloat.gc
T
water111 cee6c21603 Add basic features for types and objects (#52)
* started adding simple functions in gcommon

* more tests and features

* more tests, debug windows

* debug prints for windows

* back up some regs for windows

* remove debugging prints
2020-09-19 13:22:14 -04:00

10 lines
312 B
Common Lisp

;; awful hack to create a bfloat
(define-extern hack-bfloat integer)
(define hack-bfloat (+ #x6000000 4))
(define-extern hack-bfloat bfloat)
(set! (-> hack-bfloat type) bfloat)
(set! (-> hack-bfloat data) 1.233)
(format #t "data ~f print ~A type ~A~%" (-> hack-bfloat data) hack-bfloat (-> hack-bfloat type))
0