mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +02:00
sqrt and abs are interesting primitives
* module/language/cps/effects-analysis.scm: * module/language/tree-il/primitives.scm (*interesting-primitive-names*): (*effect-free-primitives*): Add sqrt and abs.
This commit is contained in:
parent
dd692618b8
commit
9b3c4cedd4
2 changed files with 5 additions and 2 deletions
|
@ -417,7 +417,9 @@
|
|||
((logand . _) (cause &type-check))
|
||||
((logior . _) (cause &type-check))
|
||||
((logior . _) (cause &type-check))
|
||||
((lognot . _) (cause &type-check)))
|
||||
((lognot . _) (cause &type-check))
|
||||
((sqrt _) (cause &type-check))
|
||||
((abs _) (cause &type-check)))
|
||||
|
||||
;; Characters.
|
||||
(define-primitive-effects
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
= < > <= >= zero? positive? negative?
|
||||
+ * - / 1- 1+ quotient remainder modulo
|
||||
ash logand logior logxor lognot
|
||||
sqrt abs
|
||||
not
|
||||
pair? null? list? symbol? vector? string? struct? number? char? nil?
|
||||
|
||||
|
@ -163,7 +164,7 @@
|
|||
eq? eqv? equal?
|
||||
= < > <= >= zero? positive? negative?
|
||||
ash logand logior logxor lognot
|
||||
+ * - / 1- 1+ quotient remainder modulo
|
||||
+ * - / 1- 1+ sqrt abs quotient remainder modulo
|
||||
not
|
||||
pair? null? nil? list?
|
||||
symbol? variable? vector? struct? string? number? char?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue