Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tpm: Use compiler environment to determine proper RADIX_BITS.
Expecting users to change code in order to build for 64bit environments isn't very user friendly. In the case of the RADIX_BITS we can make this easier on users (and automated builds) by using the compiler environment to do the detection for us. Currently the implementation is limited to the __x86_64__ / __i386__ and _WIN64 / _WIN32 macros from linux / windows compilers respectively. An alternative implementation may have used the OpenSSL bn_ops values to determine 32 vs 64bit. This ends up being awkward since Implementation.h is included by other modules and they then end up depending on the openssl headers. Signed-off-by: Philip Tricca <[email protected]>
- Loading branch information