[GHC] #7902: Add support for byte endianness swapping exposed as a primops
GHC
cvs-ghc at haskell.org
Fri May 10 05:40:45 CEST 2013
#7902: Add support for byte endianness swapping exposed as a primops
-----------------------------+----------------------------------------------
Reporter: tab | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 7.7 | Keywords: bswap endianness
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
-----------------------------+----------------------------------------------
Add support for W32 and W64 endianness swapping as a new primops (bSwap32#
and bSwap64#), supported by code generator change in llvm and ncg to
generate efficient code (i.e. X86's bswap instruction support). For other
NCG architectures (powerpc, sparc) provide support by 2 ghc-prim C
functions.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7902>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list