Changeset 8402
- Timestamp:
- 06/21/10 12:17:18 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/pvfs-2-8-branch/src/io/trove/trove-dbpf/dbpf-bstream-direct.c
r8196 r8402 110 110 */ 111 111 #define BLOCK_MULTIPLES_MASK (~((uintptr_t) BLOCK_SIZE - 1)) 112 #define BLOCK_MULTIPLES_MASK_OFFSET (~((off_t) BLOCK_SIZE - 1)) 112 113 113 114 /* calculate the max offset that is a multiple of the block size but still 114 115 * less than or equal to requested offset passed in 115 116 */ 116 #define ALIGNED_OFFSET(__offset) (__offset & BLOCK_MULTIPLES_MASK )117 #define ALIGNED_OFFSET(__offset) (__offset & BLOCK_MULTIPLES_MASK_OFFSET) 117 118 118 119 /* calculate the minimum size that is a multiple of the block size and … … 121 122 #define ALIGNED_SIZE(__offset, __size) \ 122 123 (((__offset + __size + BLOCK_SIZE - 1) \ 123 & BLOCK_MULTIPLES_MASK ) - ALIGNED_OFFSET(__offset))124 & BLOCK_MULTIPLES_MASK_OFFSET) - ALIGNED_OFFSET(__offset)) 124 125 125 126 #define IS_ALIGNED_PTR(__ptr) \
