* Added $flonum-sbe primop for extracting the signed-biased-exponent

of a flonum.
This commit is contained in:
Abdulaziz Ghuloum 2007-11-14 12:39:23 -05:00
parent 82eda09ea0
commit 79c31416cf
2 changed files with 10 additions and 0 deletions

View File

@ -433,6 +433,7 @@
[$fl>= $flonums]
[$flround $flonums]
[$fixnum->flonum $flonums]
[$flonum-sbe $flonums]
[$make-bignum $bignums]
[$bignum-positive? $bignums]
[$bignum-size $bignums]

View File

@ -980,6 +980,15 @@
(prm 'fl:store x (K (- disp-flonum-data vector-tag)))
x))])
(define-primop $flonum-sbe unsafe
[(V x)
(prm 'sll
(prm 'srl
(prm 'mref (T x)
(K (- (+ disp-flonum-data 4) vector-tag)))
(K 20))
(K fixnum-shift))])
/section)
(section ;;; ratnums