aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-04-04 02:45:40 +0000
committerlloyd <[email protected]>2011-04-04 02:45:40 +0000
commit04db054f1ae8de572ee9c0cfe227e76f84096bd6 (patch)
tree1a67da974ed7998cda1a2fea6bee6d6162d907c2
parent9170b09315035783ddf710ca87575fc33a11946c (diff)
These should be precisely 32 bits
-rw-r--r--src/entropy/hres_timer/hres_timer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entropy/hres_timer/hres_timer.cpp b/src/entropy/hres_timer/hres_timer.cpp
index ffe8eb8a9..7313590e5 100644
--- a/src/entropy/hres_timer/hres_timer.cpp
+++ b/src/entropy/hres_timer/hres_timer.cpp
@@ -34,13 +34,13 @@ void High_Resolution_Timestamp::poll(Entropy_Accumulator& accum)
#if defined(BOTAN_TARGET_CPU_IS_X86_FAMILY)
if(CPUID::has_rdtsc()) // not availble on all x86 CPUs
{
- size_t rtc_low = 0, rtc_high = 0;
+ u32bit rtc_low = 0, rtc_high = 0;
asm volatile("rdtsc" : "=d" (rtc_high), "=a" (rtc_low));
rtc = (static_cast<u64bit>(rtc_high) << 32) | rtc_low;
}
#elif defined(BOTAN_TARGET_CPU_IS_PPC_FAMILY)
- size_t rtc_low = 0, rtc_high = 0;
+ u32bit rtc_low = 0, rtc_high = 0;
asm volatile("mftbu %0; mftb %1" : "=r" (rtc_high), "=r" (rtc_low));
rtc = (static_cast<u64bit>(rtc_high) << 32) | rtc_low;