Fix link problem by removing all inline functions defined in .h files.

This commit is contained in:
Vreixo Formoso
2008-01-12 03:54:53 +01:00
parent c00d84f0f2
commit 8115ba6c24
6 changed files with 292 additions and 99 deletions

View File

@ -25,6 +25,16 @@
#define __USE_GNU
#include <unistd.h>
inline int div_up(unsigned int n, unsigned int div)
{
return (n + div - 1) / div;
}
inline int round_up(unsigned int n, unsigned int mul)
{
return div_up(n, mul) * mul;
}
int int_pow(int base, int power)
{
int result = 1;