GMP 5.1.1: Valgrind reports incorrect read in __gmpn_copyd (called from __gmpz_mul_2exp)

Marc Glisse marc.glisse at
Sat Feb 23 12:44:15 CET 2013

On Sat, 23 Feb 2013, bodrato at wrote:

> By the way, is there a way to ask malloc a 16-byte-aligned block?

No, there is aligned_alloc (C 2011), (posix_)memalign, _aligned_malloc, 
etc, with varying availability. malloc was supposed to return memory 
sufficiently aligned for all types, but then they invented over-aligned 

Marc Glisse

More information about the gmp-bugs mailing list