From: cuz Date: Tue, 29 Jun 2004 20:37:18 +0000 (+0000) Subject: Renaming and cleanup X-Git-Tag: V2.12.0~695 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=31f85bc23e2d2f2c47be31837de040ccc8a3dcf6;p=cc65 Renaming and cleanup git-svn-id: svn://svn.cc65.org/cc65/trunk@3137 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codegen.c b/src/cc65/codegen.c index 14297e928..07bbf6a23 100644 --- a/src/cc65/codegen.c +++ b/src/cc65/codegen.c @@ -1410,7 +1410,7 @@ void g_scale (unsigned flags, long val) } else if (val > 0) { /* Scale up */ - if ((p2 = powerof2 (val)) > 0 && p2 <= 4) { + if ((p2 = PowerOf2 (val)) > 0 && p2 <= 4) { /* Factor is 2, 4, 8 and 16, use special function */ switch (flags & CF_TYPE) { @@ -1465,7 +1465,7 @@ void g_scale (unsigned flags, long val) /* Scale down */ val = -val; - if ((p2 = powerof2 (val)) > 0 && p2 <= 4) { + if ((p2 = PowerOf2 (val)) > 0 && p2 <= 4) { /* Factor is 2, 4, 8 and 16 use special function */ switch (flags & CF_TYPE) { @@ -2600,7 +2600,7 @@ void g_mul (unsigned flags, unsigned long val) int p2; /* Do strength reduction if the value is constant and a power of two */ - if (flags & CF_CONST && (p2 = powerof2 (val)) >= 0) { + if (flags & CF_CONST && (p2 = PowerOf2 (val)) >= 0) { /* Generate a shift instead */ g_asl (flags, p2); return; @@ -2709,7 +2709,7 @@ void g_div (unsigned flags, unsigned long val) /* Do strength reduction if the value is constant and a power of two */ int p2; - if ((flags & CF_CONST) && (p2 = powerof2 (val)) >= 0) { + if ((flags & CF_CONST) && (p2 = PowerOf2 (val)) >= 0) { /* Generate a shift instead */ g_asr (flags, p2); } else { @@ -2737,7 +2737,7 @@ void g_mod (unsigned flags, unsigned long val) int p2; /* Check if we can do some cost reduction */ - if ((flags & CF_CONST) && (flags & CF_UNSIGNED) && val != 0xFFFFFFFF && (p2 = powerof2 (val)) >= 0) { + if ((flags & CF_CONST) && (flags & CF_UNSIGNED) && val != 0xFFFFFFFF && (p2 = PowerOf2 (val)) >= 0) { /* We can do that with an AND operation */ g_and (flags, val - 1); } else { diff --git a/src/cc65/datatype.c b/src/cc65/datatype.c index 93746b4df..979e3e138 100644 --- a/src/cc65/datatype.c +++ b/src/cc65/datatype.c @@ -45,7 +45,6 @@ #include "error.h" #include "funcdesc.h" #include "global.h" -#include "util.h" #include "symtab.h" diff --git a/src/cc65/preproc.c b/src/cc65/preproc.c index 282322085..034460598 100644 --- a/src/cc65/preproc.c +++ b/src/cc65/preproc.c @@ -1,9 +1,9 @@ -/* +/* * C pre-processor functions. - * Portions of this code are copyright (C) 1989 John R. Dunning. + * Portions of this code are copyright (C) 1989 John R. Dunning. * See copyleft.jrd for license information. */ - + #include #include #include @@ -29,7 +29,6 @@ #include "preproc.h" #include "scanner.h" #include "standard.h" -#include "util.h" diff --git a/src/cc65/scanner.c b/src/cc65/scanner.c index 52d2930d9..435875800 100644 --- a/src/cc65/scanner.c +++ b/src/cc65/scanner.c @@ -57,7 +57,6 @@ #include "scanner.h" #include "standard.h" #include "symtab.h" -#include "util.h"