
Yes I agree: native Int#! Simon From: ghc-devs [mailto:ghc-devs-bounces@haskell.org] On Behalf Of Carter Schonwald Sent: 15 August 2013 17:43 To: Jan Stolarek Cc: ghc-devs Subject: Re: Change return type for Int64# and Word64# comparisons? Please use native size. Eg Int# and/or Word# Booleans should always always be a size that fits in native registers. (If there's good reasons to the contrary, I'd love to hear them) Thanks Luite for noticing this! On Thursday, August 15, 2013, Jan Stolarek wrote:
for me personally Bool would be even better To get a Bool you can use wrappers defined in the same module, e.g.:
geInt64# :: Int64# -> Int64# -> Bool
geInt64# a b = tagToEnum# (int64ToInt# (geInt64## a b))
Looking at the implementation of this wrapper I think Luite has a point - to get a Bool it has to be caste to a machine supported Int#. So I think that it would make sense to have these primops retunr Int# instead of Int64#, but I'd like to hear what others have to say.
Janek
----- Oryginalna wiadomość -----
Od: "Luite Stegeman"