aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-12-30 03:27:36 +0000
committerlloyd <[email protected]>2009-12-30 03:27:36 +0000
commitba8123b5c97e85c2bf75016d2bed3cccecf3aeeb (patch)
treeca8588cb89da3851002e43042e85b6246e934c73 /src/entropy
parent890ada5955e0b01330d56900074d477ecd8fa473 (diff)
Oops, it's TARGET_CPU_IS_XXX_FAMILY, not TARGET_IS_XXX_FAMILY.
Also, fix AltiVec detection on Linux and NetBSD for most G4s.
Diffstat (limited to 'src/entropy')
-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 65ca4a8c1..e1b4928df 100644
--- a/src/entropy/hres_timer/hres_timer.cpp
+++ b/src/entropy/hres_timer/hres_timer.cpp
@@ -31,7 +31,7 @@ void High_Resolution_Timestamp::poll(Entropy_Accumulator& accum)
u64bit rtc = 0;
-#if defined(BOTAN_TARGET_IS_X86_FAMILY)
+#if defined(BOTAN_TARGET_CPU_IS_X86_FAMILY)
if(CPUID::has_rdtsc()) // not availble on all x86 CPUs
{
u32bit rtc_low = 0, rtc_high = 0;
@@ -39,7 +39,7 @@ void High_Resolution_Timestamp::poll(Entropy_Accumulator& accum)
rtc = (static_cast<u64bit>(rtc_high) << 32) | rtc_low;
}
-#elif defined(BOTAN_TARGET_IS_PPC_FAMILY)
+#elif defined(BOTAN_TARGET_CPU_IS_PPC_FAMILY)
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;