jak-project/goal_src/test/test-float-pow-function.gc
water111 c7c342ce7e
Add defmethod and some uses of the deref operator (#51)
* add tests for various xmms

* use unaligned stores and loads to back up and restore xmm128s and also fix argument spilling bug

* add deftype

* add deref and fix some method _type_ things
2020-09-18 22:02:27 -04:00

12 lines
229 B
Common Lisp

(defun pow-test ((base float) (exponent integer))
(let ((result base))
(while (> exponent 1)
(*! result base)
(-! exponent 1)
)
result
)
)
(format #t "~,,0f~%" (pow-test 2.0 8))
0