|
42 | 42 | #endif |
43 | 43 |
|
44 | 44 | #if DEPLOYMENT_TARGET_WINDOWS |
45 | | -// No C99 support |
46 | | -#define restrict |
47 | | - |
48 | 45 | // Replace bzero |
49 | 46 | #define bzero(dst, size) ZeroMemory(dst, size) |
50 | | - |
51 | 47 | #endif |
52 | 48 |
|
53 | 49 | #if !defined(PAGE_SIZE) |
@@ -250,7 +246,7 @@ static inline void __CFStorageSetChild(CFStorageNode *parentNode, CFIndex childI |
250 | 246 | __CFAssignWithWriteBarrier((void **)&parentNode->info.notLeaf.child[childIndex], newChild); |
251 | 247 | } |
252 | 248 |
|
253 | | -static inline void __CFStorageGetChildren(const CFStorageNode *parent, CFStorageNode ** restrict resultArray, bool shouldRetain, bool shouldFreeze) { |
| 249 | +static inline void __CFStorageGetChildren(const CFStorageNode *parent, CFStorageNode ** __restrict resultArray, bool shouldRetain, bool shouldFreeze) { |
254 | 250 | ASSERT(! parent->isLeaf); |
255 | 251 | CFIndex i; |
256 | 252 | for (i=0; i < 3; i++) { |
@@ -278,7 +274,7 @@ CF_INLINE void __CFStorageSetCache(CFStorageRef storage, CFStorageNode *node, CF |
278 | 274 | /* Gets the location for the specified absolute loc from the cached info. |
279 | 275 | Returns NULL if the location is not in the cache. |
280 | 276 | */ |
281 | | -CF_INLINE uint8_t *__CFStorageGetFromCache(CFStorageRef storage, CFIndex loc, CFRange * restrict validConsecutiveValueRange, bool requireUnfrozenNode) { |
| 277 | +CF_INLINE uint8_t *__CFStorageGetFromCache(CFStorageRef storage, CFIndex loc, CFRange * __restrict validConsecutiveValueRange, bool requireUnfrozenNode) { |
282 | 278 | CFStorageNode * const cachedNode = storage->cacheNode; /* It's important we read from this field no more than once, for thread safety with other concurrent reads; that is why the field is marked volatile. */ |
283 | 279 | if (! cachedNode) return NULL; /* No cache */ |
284 | 280 |
|
@@ -313,7 +309,7 @@ CF_INLINE uint8_t *__CFStorageGetFromCache(CFStorageRef storage, CFIndex loc, CF |
313 | 309 | relativeByteNum (not optional, for performance reasons) returns the relative byte number of the specified byte in the child. |
314 | 310 | Don't call with leaf nodes! |
315 | 311 | */ |
316 | | -CF_INLINE CFStorageNode *__CFStorageFindChild(const CFStorageNode * restrict node, CFIndex byteNum, bool forInsertionOrDeletion, CFIndex * restrict childNum, CFIndex * restrict relativeByteNum) { |
| 312 | +CF_INLINE CFStorageNode *__CFStorageFindChild(const CFStorageNode * __restrict node, CFIndex byteNum, bool forInsertionOrDeletion, CFIndex * __restrict childNum, CFIndex * __restrict relativeByteNum) { |
317 | 313 | if (forInsertionOrDeletion) byteNum--; /* If for insertion, we do <= checks, not <, so this accomplishes the same thing */ |
318 | 314 | CFStorageNode *result; |
319 | 315 | result = node->info.notLeaf.child[0]; |
|
0 commit comments