Fix building for x32 target
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 1 Sep 2013 13:46:32 +0000 (16:46 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 1 Sep 2013 13:46:32 +0000 (16:46 +0300)
commitfd6721c235a5bdcb332c8eb708fbd4f96e52e824
treece8d1d2ebb61cbc6ad962ebcda40793777298477
parent99d15543b8d94a8f1ef66c6ccb862b0ce82c514d
Fix building for x32 target

* mpi/amd64/mpi-asm-defs.h: New file.
* random/rndhw.c (poll_padlock) [__x86_64__]: Also check if __LP64__ is
defined.
[USE_DRNG, __x86_64__]: Also check if __LP64__ is defined.
--

In short, x32 is new x86-64 ABI with 32-bit pointers. Adding support is
straightforward, small fix for mpi and fixes for random/rndhw.c. AMD64 assembly
functions appear to work fine with x32 and 'make check' passes.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
mpi/amd64/mpi-asm-defs.h [new file with mode: 0644]
random/rndhw.c