NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/45098: Cross build on Mac OS X 10.7.0 fails

I guess you could always do:

#undef ALIGN
#define ALIGN(x) (((x) + sizeof(ldbl_t) - 1) & ~(sizeof(ldbl_t) - 1))

but there's probably some crazy architecture with 6 byte long doubles.
Yes, you could round up to a power of two... but really, why bother?
So, just go with the following?

#undef ALIGN
#define ALIGN(x) (((x) + 15) & ~15)

Paul Ripke
Ubi dubium ibi libertas

Home | Main Index | Thread Index | Old Index