This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, alpha]: Use ROUND_UP macro
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 11 Oct 2015 17:43:26 +0200
- Subject: [PATCH, alpha]: Use ROUND_UP macro
- Authentication-results: sourceware.org; auth=none
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. */