mirror of
https://github.com/open-goal/jak-project
synced 2026-07-04 13:30:41 -04:00
16 lines
269 B
Common Lisp
16 lines
269 B
Common Lisp
;-*-Scheme-*-
|
|
|
|
(test-setup 256 #f)
|
|
|
|
(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))
|