Define (flo:ulp x) to be distance to next float in direction of x.
authorTaylor R Campbell <campbell@mumble.net>
Wed, 31 Oct 2018 16:37:32 +0000 (16:37 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Wed, 31 Oct 2018 16:37:36 +0000 (16:37 +0000)
commit6ecc2f369458d98f541aa3fa1cf02b9433f63021
tree36f26b18619d738c5881fd1d76c605be1003d7f0
parent3a6e782d457485eebca58bd821d1523d0485f45d
Define (flo:ulp x) to be distance to next float in direction of x.

Thus, (flo:ulp 1.) = (flo:ulp -1.) = flo:ulp-of-one.  Bottoms out at
infinity: (flo:ulp x) = x if x is infinite.  This definition applies
to zero, too, giving the smallest subnormal.
src/runtime/primitive-arithmetic.scm
src/runtime/runtime.pkg
tests/runtime/test-arith.scm