From: Taylor R Campbell Date: Wed, 28 Nov 2018 03:39:49 +0000 (+0000) Subject: Teach sf about some flonum primitives worth open-coding. X-Git-Tag: mit-scheme-pucked-10.1.7~3^2~163 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=49d896cf25a2cef62d58d04c043800dbe4967d80;p=mit-scheme.git Teach sf about some flonum primitives worth open-coding. --- diff --git a/src/sf/gconst.scm b/src/sf/gconst.scm index afdd7bdf6..bf1e870b1 100644 --- a/src/sf/gconst.scm +++ b/src/sf/gconst.scm @@ -116,6 +116,7 @@ USA. (flo:- flonum-subtract) (flo:/ flonum-divide) (flo:< flonum-less?) + (flo:<> flonum-is-less-or-greater?) (flo:= flonum-equal?) (flo:> flonum-greater?) (flo:abs flonum-abs) @@ -129,21 +130,32 @@ USA. (flo:exp flonum-exp) (flo:expm1 flonum-expm1) (flo:expt flonum-expt) + (flo:finite? flonum-is-finite?) (flo:flonum? flonum?) (flo:floor flonum-floor) (flo:floor->exact flonum-floor->exact) + (flo:infinite? flonum-is-infinite?) (flo:log flonum-log) (flo:log1p flonum-log1p) + (flo:nan? flonum-is-nan?) (flo:negate flonum-negate) (flo:negative? flonum-negative?) + (flo:normal? flonum-is-normal?) (flo:positive? flonum-positive?) (flo:round flonum-round) (flo:round->exact flonum-round->exact) + (flo:safe-negative? flonum-is-negative?) + (flo:safe< flonum-is-less?) + (flo:safe<= flonum-is-less-or-equal?) + (flo:safe<> flonum-is-less-or-greater?) + (flo:safe> flonum-is-greater?) + (flo:safe>= flonum-is-greater-or-equal?) (flo:sin flonum-sin) (flo:sqrt flonum-sqrt) (flo:tan flonum-tan) (flo:truncate flonum-truncate) (flo:truncate->exact flonum-truncate->exact) + (flo:unordered? flonum-is-unordered?) (flo:vector-cons floating-vector-cons) (flo:vector-length floating-vector-length) (flo:vector-ref floating-vector-ref)