public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, alpha]: Use ROUND_UP macro
@ 2015-10-11 15:43 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2015-10-11 15:43 UTC (permalink / raw)
  To: gcc-patches

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.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-11 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-11 15:43 [PATCH, alpha]: Use ROUND_UP macro Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).