remove inline keywords

This commit is contained in:
Dennis Luxen
2014-10-21 18:06:58 +02:00
parent d42772a261
commit 81b0447024
26 changed files with 125 additions and 115 deletions
+5 -5
View File
@@ -111,13 +111,13 @@ struct SharedDataLayout
}
template<typename T>
inline void SetBlockSize(BlockID bid, uint64_t entries)
void SetBlockSize(BlockID bid, uint64_t entries)
{
num_entries[bid] = entries;
entry_size[bid] = sizeof(T);
}
inline uint64_t GetBlockSize(BlockID bid) const
uint64_t GetBlockSize(BlockID bid) const
{
// special encoding
if (bid == GEOMETRIES_INDICATORS)
@@ -128,12 +128,12 @@ struct SharedDataLayout
return num_entries[bid] * entry_size[bid];
}
inline uint64_t GetSizeOfLayout() const
uint64_t GetSizeOfLayout() const
{
return GetBlockOffset(NUM_BLOCKS) + NUM_BLOCKS*2*sizeof(CANARY);
}
inline uint64_t GetBlockOffset(BlockID bid) const
uint64_t GetBlockOffset(BlockID bid) const
{
uint64_t result = sizeof(CANARY);
for (auto i = 0; i < bid; i++)
@@ -144,7 +144,7 @@ struct SharedDataLayout
}
template<typename T, bool WRITE_CANARY=false>
inline T* GetBlockPtr(char* shared_memory, BlockID bid)
T* GetBlockPtr(char* shared_memory, BlockID bid)
{
T* ptr = (T*)(shared_memory + GetBlockOffset(bid));
if (WRITE_CANARY)
+4 -4
View File
@@ -270,14 +270,14 @@ RequestParser::consume(Request &req, char input, http::CompressionType *compress
}
}
inline bool RequestParser::isChar(int character) { return character >= 0 && character <= 127; }
bool RequestParser::isChar(int character) { return character >= 0 && character <= 127; }
inline bool RequestParser::isCTL(int character)
bool RequestParser::isCTL(int character)
{
return (character >= 0 && character <= 31) || (character == 127);
}
inline bool RequestParser::isTSpecial(int character)
bool RequestParser::isTSpecial(int character)
{
switch (character)
{
@@ -306,5 +306,5 @@ inline bool RequestParser::isTSpecial(int character)
}
}
inline bool RequestParser::isDigit(int character) { return character >= '0' && character <= '9'; }
bool RequestParser::isDigit(int character) { return character >= '0' && character <= '9'; }
}
+4 -4
View File
@@ -51,13 +51,13 @@ class RequestParser
private:
boost::tribool consume(Request &req, char input, CompressionType *compressionType);
inline bool isChar(int c);
bool isChar(int c);
inline bool isCTL(int c);
bool isCTL(int c);
inline bool isTSpecial(int c);
bool isTSpecial(int c);
inline bool isDigit(int c);
bool isDigit(int c);
enum state
{ method_start,