]> git.ipfire.org Git - thirdparty/rng-tools.git/commit
rngd_rdrand: Support compiling for x32 by adding unative_t
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 4 Mar 2014 22:49:10 +0000 (14:49 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 4 Mar 2014 22:49:10 +0000 (14:49 -0800)
commit0ad21ad0a4d02faf48b5ff94db0ffb7cb43773c2
treead15850633f4cb53d3ee62832a76fdc3e81a0399
parentc851f481cd16b1bd0442c8baa9c4ed12ceb86de3
rngd_rdrand: Support compiling for x32 by adding unative_t

On the x32 ABI for x86-64, sizeof(long) == 4, but we still use the
8-byte randomness instructions and flags.  In order to support
compilation for x32, introduce a new type "unative_t" which is
typedef'd to the appropriate type for the architecture.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
rngd_rdrand.c