Changeset f7f6f25 in mainline for generic


Ignore:
Timestamp:
2005-12-10T16:27:16Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8a9dc3
Parents:
adb2ebf8
Message:

Nasty hack for ppc32.
Main Makefile now passes -D$(ARCH) so that it is possible to have ugly architectural #ifdefs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/align.h

    radb2ebf8 rf7f6f25  
    4343 * @param a Size of alignment, must be power of 2.
    4444 */
    45 #define ALIGN_UP(s, a)          (((s) + ((a) - 1)) & ~((a) - 1))
     45#ifdef ppc32    /* Nasty ppc32 hack. FIX ME. */
     46#       define ALIGN_UP(s, a)           ((s) % (a) ? (((s) / (a)) + 1) * (a) : (s))
     47#else
     48#       define ALIGN_UP(s, a)           (((s) + ((a) - 1)) & ~((a) - 1))
     49#endif
    4650
    4751#endif
Note: See TracChangeset for help on using the changeset viewer.