mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
PathProfiling.c: Get rid of using "inline". We may expect compiler shall optimize out "static" scope w/o "inline".
llvm-svn: 144080
This commit is contained in:
parent
0accc78829
commit
a40fc9b826
@ -26,11 +26,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* Must use __inline in Microsoft C */
|
||||
#if defined(_MSC_VER)
|
||||
#define __inline__ __inline
|
||||
#endif
|
||||
|
||||
/* note that this is used for functions with large path counts,
|
||||
but it is unlikely those paths will ALL be executed */
|
||||
#define ARBITRARY_HASH_BIN_COUNT 100
|
||||
@ -112,7 +107,7 @@ void writeArrayTable(uint32_t fNumber, ftEntry_t* ft, uint32_t* funcCount) {
|
||||
}
|
||||
}
|
||||
|
||||
static __inline__ uint32_t hash (uint32_t key) {
|
||||
static uint32_t hash (uint32_t key) {
|
||||
/* this may benefit from a proper hash function */
|
||||
return key%ARBITRARY_HASH_BIN_COUNT;
|
||||
}
|
||||
@ -155,7 +150,7 @@ void writeHashTable(uint32_t functionNumber, pathHashTable_t* hashTable) {
|
||||
}
|
||||
|
||||
/* Return a pointer to this path's specific path counter */
|
||||
static __inline__ uint32_t* getPathCounter(uint32_t functionNumber,
|
||||
static uint32_t* getPathCounter(uint32_t functionNumber,
|
||||
uint32_t pathNumber) {
|
||||
pathHashTable_t* hashTable;
|
||||
pathHashEntry_t* hashEntry;
|
||||
|
Loading…
Reference in New Issue
Block a user