Changeset 4738d84 in mainline
- Timestamp:
- 2010-07-20T13:58:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46757a6
- Parents:
- e2650d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/macros.h
re2650d3 r4738d84 49 49 * 50 50 */ 51 NO_TRACE static inline int overlaps(uint ptr_t s1, size_t sz1, uintptr_t s2,52 size_t sz2)51 NO_TRACE static inline int overlaps(uint64_t s1, uint64_t sz1, uint64_t s2, 52 uint64_t sz2) 53 53 { 54 uint ptr_t e1 = s1 + sz1;55 uint ptr_t e2 = s2 + sz2;54 uint64_t e1 = s1 + sz1; 55 uint64_t e2 = s2 + sz2; 56 56 57 57 return ((s1 < e2) && (s2 < e1)); … … 66 66 * 67 67 */ 68 NO_TRACE static inline int iswithin(uint ptr_t s1, size_t sz1, uintptr_t s2,69 size_t sz2)68 NO_TRACE static inline int iswithin(uint64_t s1, uint64_t sz1, uint64_t s2, 69 uint64_t sz2) 70 70 { 71 uint ptr_t e1 = s1 + sz1;72 uint ptr_t e2 = s2 + sz2;71 uint64_t e1 = s1 + sz1; 72 uint64_t e2 = s2 + sz2; 73 73 74 74 return ((s1 <= s2) && (e1 >= e2));
Note:
See TracChangeset
for help on using the changeset viewer.