llvm.org GIT mirror llvm / d63e7bf
PathProfiling.c: Get rid of using "inline". We may expect compiler shall optimize out "static" scope w/o "inline". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144080 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 9 years ago
1 changed file(s) with 2 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
2525 #include
2626 #include
2727
28 /* Must use __inline in Microsoft C */
29 #if defined(_MSC_VER)
30 #define __inline__ __inline
31 #endif
32
3328 /* note that this is used for functions with large path counts,
3429 but it is unlikely those paths will ALL be executed */
3530 #define ARBITRARY_HASH_BIN_COUNT 100
111106 }
112107 }
113108
114 static __inline__ uint32_t hash (uint32_t key) {
109 static uint32_t hash (uint32_t key) {
115110 /* this may benefit from a proper hash function */
116111 return key%ARBITRARY_HASH_BIN_COUNT;
117112 }
154149 }
155150
156151 /* Return a pointer to this path's specific path counter */
157 static __inline__ uint32_t* getPathCounter(uint32_t functionNumber,
152 static uint32_t* getPathCounter(uint32_t functionNumber,
158153 uint32_t pathNumber) {
159154 pathHashTable_t* hashTable;
160155 pathHashEntry_t* hashEntry;