mirror of
https://github.com/open-goal/jak-project
synced 2026-08-31 17:43:06 -04:00
de25f39439
Got OpenGOAL building and running natively on Apple Silicon. This is the rest of the port after the smaller arm64 emitter PRs. I was told pushing one big PR was okay. This covers goalc, the runtime, linker, kernel and the GOAL asm. The new paths have native tests. I also found four more emitter bugs while running it. They're in scalar sqrt, 128-bit stores, scalar max and indexed stores above 4 GB. Spent a while cleaning it up so it's easier to read. 4am gotta sleep lol Closes #3841 --------- Co-authored-by: Tyler Wilding <xtvaser@gmail.com>
8 lines
260 B
Common Lisp
8 lines
260 B
Common Lisp
;; string->float inputs from pc-settings.gc
|
|
(defun sf-scaled ((s string) (scale float))
|
|
(the int (* scale (string->float s))))
|
|
|
|
(+ (sf-scaled "0.3" 1000.0) ;; 300
|
|
(* 10 (sf-scaled "50.0" 1.0)) ;; 500
|
|
(* 10000 (sf-scaled "0.25" 100.0))) ;; 250000
|