diff --git a/module/system/il/inline.scm b/module/system/il/inline.scm index 9a15bc7df..365946942 100644 --- a/module/system/il/inline.scm +++ b/module/system/il/inline.scm @@ -110,6 +110,9 @@ (define-inline >= (x y) (ge? x y)) +(define-inline zero? (x) + (ee? x 0)) + (define-inline + () 0 (x) x @@ -127,6 +130,9 @@ (x y) (sub x y) (x y . rest) (sub x (+ y . rest))) +(define-inline 1- + (x) (sub x 1)) + (define-inline / (x) (div 1 x) (x y) (div x y)