make deltaU32() as inline fcn
This commit is contained in:
parent
17f7c150a8
commit
dbd5b24dbd
2 changed files with 2 additions and 6 deletions
|
@ -718,7 +718,8 @@ int makedirs ( const char *path, int mode );
|
|||
int rmtree ( const char *path );
|
||||
|
||||
char *regexp_escape ( const char *str );
|
||||
uint32_t deltaU32(uint32_t a, uint32_t b);
|
||||
|
||||
static inline uint32_t deltaU32(uint32_t a, uint32_t b) { return (a > b) ? (a - b) : (b - a); }
|
||||
|
||||
#define SKEL_DECLARE(name, type) type *name;
|
||||
#define SKEL_ALLOC(name) do { if (!name) name = calloc(1, sizeof(*name)); } while (0)
|
||||
|
|
|
@ -585,8 +585,3 @@ regexp_escape(const char* str)
|
|||
*b = 0;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
uint32_t deltaU32(uint32_t a, uint32_t b)
|
||||
{
|
||||
return (a > b) ? (a - b) : (b - a);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue