Changeset 0fa6044 in mainline for kernel/generic/include/macros.h
- Timestamp:
- 2006-08-29T15:35:44Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e11ae91
- Parents:
- 32fffef0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/macros.h
r32fffef0 r0fa6044 33 33 */ 34 34 35 #ifndef __MACROS_H__36 #define __MACROS_H__35 #ifndef KERN_MACROS_H_ 36 #define KERN_MACROS_H_ 37 37 38 38 #include <arch/types.h> … … 49 49 #define max(a,b) ((a) > (b) ? (a) : (b)) 50 50 51 /** Return true if the interlvals overlap. */ 51 /** Return true if the interlvals overlap. 52 * 53 * @param s1 Start address of the first interval. 54 * @param sz1 Size of the first interval. 55 * @param s2 Start address of the second interval. 56 * @param sz2 Size of the second interval. 57 */ 52 58 static inline int overlaps(uintptr_t s1, size_t sz1, uintptr_t s2, size_t sz2) 53 59 {
Note:
See TracChangeset
for help on using the changeset viewer.