[Haskell-cafe] Re: fast integer base-2 log function?

2008-02-27 Thread Chad Scherrer
Jens Blanck jens.blanck at gmail.com writes: {-# LANGUAGE MagicHash #-} import GHC.Exts import Data.Bits -- experiment with using a LUT here (hint: FFI + static arrays in C) ... Sorry I don't have an answer, only more questions. Is {-# LANGUAGE MagicHash #-} documented somewhere? I've seen

Re: [Haskell-cafe] Re: fast integer base-2 log function?

2008-02-27 Thread Taral
On 2/27/08, Chad Scherrer [EMAIL PROTECTED] wrote: Is {-# LANGUAGE MagicHash #-} documented somewhere? I've seen it referenced a few times now, but I can't find any details about it. No. http://hackage.haskell.org/trac/ghc/ticket/1297 -- Taral [EMAIL PROTECTED] Please let me know if there's