]> git.sur5r.net Git - cc65/commitdiff
Some renaming
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 29 Jun 2004 20:35:39 +0000 (20:35 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 29 Jun 2004 20:35:39 +0000 (20:35 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3136 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/util.c
src/cc65/util.h

index 48a166b57a1e1a53defadfab9ea3204e2d72439b..07586ccf15c5f1f7631ff8ca6c19a6327f6dccce 100644 (file)
@@ -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       */
 
 
 /*****************************************************************************/
-/*                                  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;
 }
index ade1e11e1ff6bdf7ed4f9eb5792c3b0b7ffafa92..8cb516a8f4c73670347f715e9085f580559791f5 100644 (file)
@@ -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.
  */