Home GnuPG

Fix rndhw for 64-bit Windows build
d5a7e00b6b22Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix rndhw for 64-bit Windows build

* configure.ac: Add sizeof check for 'void *'.
* random/rndhw.c (poll_padlock): Check for SIZEOF_VOID_P == 8
instead of defined(__LP64__).
(RDRAND_LONG): Check for SIZEOF_UNSIGNED_LONG == 8 instead of
defined(__LP64__).

LP64 is not predefined for 64-bit mingw64-gcc, which caused wrong
assembly code selections. Do selection based on type sizes instead,
to support x86_64, x32 and win64 properly.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Apr 29 2015, 5:18 PM
Parents
rC0cdd24456b33: Prepare random/win32.c fast poll for 64-bit Windows
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rCd5a7e00b6b22: Fix rndhw for 64-bit Windows build (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).May 1 2015, 6:12 PM