
Module: ppl/ppl Branch: master Commit: 5d988a3b5b9c564a81d91cf3a919cb8bb959bbf8 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=5d988a3b5b9c5...
Author: Roberto Bagnara bagnara@cs.unipr.it Date: Sun Feb 26 14:15:07 2012 +0100
Variable names fixed.
---
src/compiler.hh | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/compiler.hh b/src/compiler.hh index 5ceb298..fe802cd 100644 --- a/src/compiler.hh +++ b/src/compiler.hh @@ -154,9 +154,9 @@ clz(unsigned long ul) { #if defined(__GNUC__) return static_cast<unsigned int>(__builtin_clzl(ul)); #elif PPL_SIZEOF_LONG == 4 - return clz32(u); + return clz32(ul); #elif PPL_SIZEOF_LONG == 8 - return clz64(u); + return clz64(ul); #else #error "Unsupported unsigned long size" #endif @@ -168,9 +168,9 @@ clz(unsigned long long ull) { #if defined(__GNUC__) return static_cast<unsigned int>(__builtin_clzll(ull)); #elif PPL_SIZEOF_LONG_LONG == 4 - return clz32(u); + return clz32(ull); #elif PPL_SIZEOF_LONG_LONG == 8 - return clz64(u); + return clz64(ull); #else #error "Unsupported unsigned long long size" #endif @@ -197,9 +197,9 @@ ctz(unsigned long ul) { #if defined(__GNUC__) return static_cast<unsigned int>(__builtin_ctzl(ul)); #elif PPL_SIZEOF_LONG == 4 - return ctz32(u); + return ctz32(ul); #elif PPL_SIZEOF_LONG == 8 - return ctz64(u); + return ctz64(ul); #else #error "Unsupported unsigned long size" #endif @@ -211,9 +211,9 @@ ctz(unsigned long long ull) { #if defined(__GNUC__) return static_cast<unsigned int>(__builtin_ctzll(ull)); #elif PPL_SIZEOF_LONG_LONG == 4 - return ctz32(u); + return ctz32(ull); #elif PPL_SIZEOF_LONG_LONG == 8 - return ctz64(u); + return ctz64(ull); #else #error "Unsupported unsigned long long size" #endif