[Haskell-cafe] Re: Optimization fun

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Feb 12 07:30:33 EST 2007

Hello Lennart,

Monday, February 12, 2007, 11:53:32 AM, you wrote:

> Many architectures gives both the quotient and remainder when you use
> the division instruction, so divMod (quotRem) shouldn't cost more  
> than a div or mod.  But if the code generator takes advantage of that
> is another matter.

qoutRem# is primitive operation in GHC

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list