summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-02-23 08:50:54 -0500
committerDavid Thompson <dthompson2@worcester.edu>2023-06-08 08:14:41 -0400
commit3bc7ff37d7ee5d6d434d290826fecabf9c86a102 (patch)
tree06baf76e31a58be12419b6169a4184f623f12b72
parent81ac928000bc845b91171713e14d80757420bbec (diff)
Rename pow to expt to match Scheme procedure name.
-rw-r--r--chickadee/graphics/seagull.scm9
1 files changed, 5 insertions, 4 deletions
diff --git a/chickadee/graphics/seagull.scm b/chickadee/graphics/seagull.scm
index a1367b7..daf3caf 100644
--- a/chickadee/graphics/seagull.scm
+++ b/chickadee/graphics/seagull.scm
@@ -126,7 +126,7 @@
(memq x '(int->float float->int)))
(define (math-function? x)
- (memq x '(abs sqrt pow min max mod floor ceil sin cos tan
+ (memq x '(abs sqrt expt min max mod floor ceil sin cos tan
clamp mix step smoothstep length)))
(define (vertex-primitive-call? x)
@@ -700,7 +700,7 @@
(>= . ,>=)
(mod . ,mod)
(sqrt . ,sqrt)
- (pow . ,expt)
+ (expt . ,expt)
(min . ,min)
(max . ,max)
(sin . ,sin)
@@ -2529,7 +2529,7 @@
(predicate:or
(predicate:= a type:int)
(predicate:= a type:float)))))))
- (define type:pow
+ (define type:expt
(let ((a (fresh-variable-type)))
(list (type-scheme
(list a)
@@ -2611,7 +2611,7 @@
(length . ,type:length)
(abs . ,type:abs)
(sqrt . ,type:sqrt)
- (pow . ,type:pow)
+ (expt . ,type:expt)
(min . ,type:min/max)
(max . ,type:min/max)
(step . ,type:step)
@@ -2952,6 +2952,7 @@
(define %primcall-map
'((float->int . int)
(int->float . float)
+ (expt . pow)
(texture . texture)))
(define (emit:primcall type operator args stage version port level)