[GHC] #7902: Add support for byte endianness swapping exposed as a primops
GHC
cvs-ghc at haskell.org
Fri May 10 22:47:20 CEST 2013
#7902: Add support for byte endianness swapping exposed as a primops
-----------------------------+----------------------------------------------
Reporter: tab | Owner:
Type: feature request | Status: patch
Priority: normal | Component: Compiler
Version: 7.7 | Keywords: bswap endianness
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
-----------------------------+----------------------------------------------
Comment(by tibbe):
Some comments:
* Why is there no 16-bit version? LLVM support it and it can be
implemented using the XCHG instruction, like so: `xchg al, ah`
* Are you also going to make the changes to base (e.g. in Data.Bits) to
expose this to the world?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7902#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list