- Timestamp:
- 2005-12-10T16:27:16Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e8a9dc3
- Parents:
- adb2ebf8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/align.h
radb2ebf8 rf7f6f25 43 43 * @param a Size of alignment, must be power of 2. 44 44 */ 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 46 50 47 51 #endif
Note:
See TracChangeset
for help on using the changeset viewer.