Changeset f7f6f25 in mainline


Ignore:
Timestamp:
2005-12-10T16:27:16Z (19 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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    radb2ebf8 rf7f6f25  
    4545#
    4646
    47 DEFS = -DARCH=$(ARCH) -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\""
     47DEFS = -D$(ARCH) -DARCH=$(ARCH) -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\""
    4848CFLAGS = -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
    4949LFLAGS = -M
  • 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.