Changeset e662a5f in mainline
- Timestamp:
- 2009-02-17T22:44:56Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 96e0748d
- Parents:
- 6bf612b
- Location:
- boot/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/align.h
r6bf612b re662a5f 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ -
boot/generic/macros.h
r6bf612b re662a5f 36 36 #define BOOT_MACROS_H_ 37 37 38 #define SIZE2KB(size) ((size) >> 10)39 #define SIZE2MB(size) ((size) >> 20)38 #define min(a, b) ((a) < (b) ? (a) : (b)) 39 #define max(a, b) ((a) > (b) ? (a) : (b)) 40 40 41 #define KB2SIZE(kb) ((kb) <<10)42 #define MB2SIZE(mb) ((mb) <<20)41 #define SIZE2KB(size) ((size) >> 10) 42 #define SIZE2MB(size) ((size) >> 20) 43 43 44 #define STRING(arg) STRING_ARG(arg) 45 #define STRING_ARG(arg) #arg 44 #define KB2SIZE(kb) ((kb) << 10) 45 #define MB2SIZE(mb) ((mb) << 20) 46 47 #define STRING(arg) STRING_ARG(arg) 48 #define STRING_ARG(arg) #arg 46 49 47 50 #endif
Note:
See TracChangeset
for help on using the changeset viewer.