This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, alpha]: Use ROUND_UP macro


2015-10-11  Uros Bizjak  <ubizjak@gmail.com>

    * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.

Bootstrapped and regression tested on alphaev68-linux-gnu, committed
to mainline SVN.

Uros

Index: config/alpha/alpha.h
===================================================================
--- config/alpha/alpha.h        (revision 228653)
+++ config/alpha/alpha.h        (working copy)
@@ -615,7 +615,7 @@
  { FRAME_POINTER_REGNUM, HARD_FRAME_POINTER_REGNUM}}

 /* Round up to a multiple of 16 bytes.  */
-#define ALPHA_ROUND(X) (((X) + 15) & ~ 15)
+#define ALPHA_ROUND(X) ROUND_UP ((X), 16)

 /* Define the offset between two registers, one to be eliminated, and the other
    its replacement, at the start of a routine.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]