[GHC] #6135: Unboxed Booleans

GHC cvs-ghc at haskell.org
Fri Apr 12 10:47:41 CEST 2013


#6135: Unboxed Booleans
---------------------------------+------------------------------------------
    Reporter:  benl              |       Owner:  jstolarek       
        Type:  feature request   |      Status:  patch           
    Priority:  normal            |   Milestone:  7.8.1           
   Component:  Compiler          |     Version:  7.4.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:  #605              |  
---------------------------------+------------------------------------------

Comment(by simonpj):

 Good idea (giving new names to the new ops).

 I've remembered why `Word#` is probably the right return type, not `Int#`:
 because we want to perform logical operations like `and` and `or` on the
 result of comparisons, and those work on `Word#` not `Int#`.

 So to me that argues for the primops all returning `Int#`.  Simon M what
 do you say?

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6135#comment:42>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list