[project @ 1999-02-18 12:26:11 by simonm]
Add two new operations to StgPrimFloat.c: __int_encodeFloat __int_encodeDouble for encoding floats/doubles from small integers. This avoids having to convert small integers to large ones before an encodeFloat operation, and fixes the two cases of slowdown in nofib after the small integer changes. Also: - remove encodeFloat and decodeFloat as primops - use foreign import for encode{Float,Double} and the various isNaN etc. ccalls in PrelNumExtra.
Showing
- ghc/compiler/absCSyn/Costs.lhs 2 additions, 2 deletionsghc/compiler/absCSyn/Costs.lhs
- ghc/compiler/prelude/PrimOp.lhs 6 additions, 20 deletionsghc/compiler/prelude/PrimOp.lhs
- ghc/includes/PrimOps.h 7 additions, 30 deletionsghc/includes/PrimOps.h
- ghc/lib/std/PrelGHC.hi-boot 0 additions, 2 deletionsghc/lib/std/PrelGHC.hi-boot
- ghc/lib/std/PrelNumExtra.lhs 38 additions, 27 deletionsghc/lib/std/PrelNumExtra.lhs
- ghc/rts/StgPrimFloat.c 51 additions, 10 deletionsghc/rts/StgPrimFloat.c
Loading
Please register or sign in to comment