/* bitwise or */
/*----------------------------*/
case '|':
- /* if the rewrite succeeds then don't go any furthur */
+ /* if the rewrite succeeds then don't go any further */
{
ast *wtree = optimizeRRCRLC (tree);
if (wtree != tree)
static int
isBitAndPow2 (ast * tree)
{
- int p2;
-
/* if this is not a bit and */
if (!IS_BITAND (tree))
return -1;
if (!IS_AST_LIT_VALUE (tree->right))
return -1;
- if (AST_LIT_VALUE (tree->right) == 1)
- return 0;
- p2 = powof2 ((TYPE_UDWORD)AST_LIT_VALUE (tree->right));
- if (!p2)
- return -1;
-
- return p2;
+ return powof2 ((TYPE_UDWORD)AST_LIT_VALUE (tree->right));
}
/*-----------------------------------------------------------------*/
return;
/*------------------------------------------------------------------*/
/*----------------------------*/
- /* compliment */
+ /* complement */
/*----------------------------*/
case '~':
fprintf(outfile,"COMPL (%p) type (",tree);