Commit 9f0ecb41 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo Committed by Ben Gamari

ghc-prim: Fix hs_ctz64 for powerpc

Test Plan: Test on powerpc/linux

Reviewers: austin, hvr, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision:
parent 184dfced
......@@ -31,7 +31,7 @@ hs_ctz32(StgWord x)
hs_ctz64(StgWord64 x)
#if defined(__GNUC__) && defined(i386_HOST_ARCH)
#if defined(__GNUC__) && (defined(i386_HOST_ARCH) || defined(powerpc_HOST_ARCH))
/* On Linux/i386, the 64bit `__builtin_ctzll()` instrinsic doesn't
get inlined by GCC but rather a short `__ctzdi2` runtime function
is inserted when needed into compiled object files.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment