On Donnerstag, 29. November 2012, 13:40:42, Johan Tibell wrote:
> word2Double :: Word -> Double
> word2Double (W# w) = D# (int2Double# (word2Int# w))
> 
> On my (64-bit) machine the Haskell and C versions are on par.

Yes, but the result is very different.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to