From e8afc897cf819bc23fb6737b70055f27cb515427 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 29 Jun 2004 20:35:39 +0000 Subject: [PATCH] Some renaming git-svn-id: svn://svn.cc65.org/cc65/trunk@3136 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/util.c | 34 ++++++++++++---------------------- src/cc65/util.h | 10 +++++----- 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/src/cc65/util.c b/src/cc65/util.c index 48a166b57..07586ccf1 100644 --- a/src/cc65/util.c +++ b/src/cc65/util.c @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 1998-2004 Ullrich von Bassewitz */ +/* Römerstraße 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -38,34 +38,24 @@ /*****************************************************************************/ -/* data */ +/* Code */ /*****************************************************************************/ - - - -/*****************************************************************************/ -/* code */ -/*****************************************************************************/ - - - -int powerof2 (unsigned long val) +int PowerOf2 (unsigned long Val) /* Return the exponent if val is a power of two. Return -1 if val is not a * power of two. */ { - int i; - unsigned long mask; - mask = 0x0001; + int I; + unsigned long Mask = 0x0001; - for (i = 0; i < 32; ++i) { - if (val == mask) { - return i; + for (I = 0; I < 32; ++I) { + if (Val == Mask) { + return I; } - mask <<= 1; + Mask <<= 1; } return -1; } diff --git a/src/cc65/util.h b/src/cc65/util.h index ade1e11e1..8cb516a8f 100644 --- a/src/cc65/util.h +++ b/src/cc65/util.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 1998-2004 Ullrich von Bassewitz */ +/* Römerstraße 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -44,7 +44,7 @@ -int powerof2 (unsigned long val); +int PowerOf2 (unsigned long Val); /* Return the exponent if val is a power of two. Return -1 if val is not a * power of two. */