[GIT] ppl/ppl(master): Code layout made conformat to the coding standard.

Module: ppl/ppl Branch: master Commit: 206682b08f624911ad29cfdc1d64bef59d6e8278 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=206682b08f624...
Author: Roberto Bagnara bagnara@cs.unipr.it Date: Sat Feb 25 08:43:06 2012 +0100
Code layout made conformat to the coding standard.
---
src/compiler.hh | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/compiler.hh b/src/compiler.hh index 0aa3e85..a0a162d 100644 --- a/src/compiler.hh +++ b/src/compiler.hh @@ -82,7 +82,8 @@ struct Suppress_Uninitialized_Warnings_Type {
#if !defined(__GNUC__)
-inline unsigned int clz32(u_int32_t w) { +inline unsigned int +clz32(u_int32_t w) { unsigned int r = 31; if ((w & 0xffffffff00000000ULL) != 0) { w = (w >> 31) >> 1; @@ -109,14 +110,16 @@ inline unsigned int clz32(u_int32_t w) { return r; }
-inline unsigned int clz64(u_int64_t w) { +inline unsigned int +clz64(u_int64_t w) { if ((w & 0xffffffff00000000ULL) == 0) return clz32(static_cast<u_int32_t>(w)) + 32; else return clz32(static_cast<u_int32_t>(w >> 32)); }
-inline unsigned int ctz32(u_int32_t w) { +inline unsigned int +ctz32(u_int32_t w) { static const unsigned int mod37_table[] = { 32, 0, 1, 26, 2, 23, 27, 0, 3, 16, 24, 30, 28, 11, 0, 13, 4, 7, 17, 0, 25, 22, 31, 15, 29, 10, 12, 6, 0, 21, 14, 9, @@ -125,7 +128,8 @@ inline unsigned int ctz32(u_int32_t w) { return mod37_table[(w & -w) % 37]; }
-inline unsigned int ctz64(u_int64_t w) { +inline unsigned int +ctz64(u_int64_t w) { if ((w & 0x00000000ffffffffULL) == 0) return ctz32(static_cast<u_int32_t>(w >> 32)) + 32; else
participants (1)
-
Roberto Bagnara