Skip to content
Snippets Groups Projects
Commit e58d0e9b authored by Simon Marlow's avatar Simon Marlow
Browse files

[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.
parent 1f9caae5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment