! See http://factorcode.org/license.txt for BSD license.
USING: math kernel math.constants math.private math.bits
math.libm combinators fry math.order sequences
-combinators.short-circuit macros literals math.bitwise ;
+combinators.short-circuit macros literals ;
IN: math.functions
: >fraction ( a/b -- a b )
: >=1? ( x -- ? )
dup complex? [ drop f ] [ 1 >= ] if ; inline
+<PRIVATE
+! to avoid circular dependency on math.bitwise
+: on-bits ( m -- n ) 2^ 1 - ; inline
+PRIVATE>
+
GENERIC: frexp ( x -- y exp )
M: float frexp