Change return type for Int64# and Word64# comparisons?

Luite Stegeman stegeman at gmail.com
Thu Aug 15 17:36:59 CEST 2013


Hi all,

With the recent change of comparison primops to return Int# instead of
Bool, the 64 bit operations were also changed, to return Int64# or Word64#:

https://github.com/jstolarek/packages-ghc-prim/commit/07920f03d76dbaec64e3829404d332af22d744fe

It seems a bit wasteful to me to return a value bigger than a machine word
for just a boolean. Changing the type to Int# would make the same
optimizations possible as for the native-sized primops (though for me
personally Bool would be even better since they map to JavaScript bools in
GHCJS).

thoughts?

luite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130815/70e5a7c7/attachment.htm>


More information about the ghc-devs mailing list