[PATCH] integer-gmp: mpn_gcd_1 allocate one Word on stack instead of 'sizeof (__mpz_struct)'

Ian Lynagh ian at well-typed.com
Mon Mar 18 12:18:47 CET 2013


On Wed, Mar 13, 2013 at 11:41:21PM +0300, Sergei Trofimovich wrote:
> From: Sergei Trofimovich <slyfox at gentoo.org>
> 
> gmp.h defines 'mpn_gcd_1' as following:
>     mp_limb_t mpn_gcd_1 (mp_srcptr /* aka 'mp_limb_t *'  */, mp_size_t, mp_limb_t);

Applied, thanks!


Thanks
Ian




More information about the ghc-devs mailing list