[GHC] #7902: Add support for byte endianness swapping exposed as a primops

GHC cvs-ghc at haskell.org
Tue May 14 06:51:13 CEST 2013


#7902: Add support for byte endianness swapping exposed as a primops
---------------------------------+------------------------------------------
    Reporter:  tab               |       Owner:                  
        Type:  feature request   |      Status:  patch           
    Priority:  normal            |   Milestone:                  
   Component:  Compiler          |     Version:  7.7             
    Keywords:  bswap endianness  |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by tab):

 I've refreshed the patches once again (refactor the llvm code gen to
 remove the duplication, and record it with git commit to have a commitlog)

 BTW, is this feature request depends on the library submission or are they
 2 "independent" proposals ?

 I haven't considered words not being multiple of 8. I don't think it would
 make sense to do endian swap on those types and it's harder to make a
 byteSwap : a -> a. I'm not sure Bits is going to be the best fit to expose
 any of this.

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



More information about the ghc-tickets mailing list