Fixed linking errors
This commit is contained in:
parent
4491c80568
commit
583e8a983a
6 changed files with 21 additions and 12 deletions
|
|
@ -47,8 +47,4 @@
|
|||
#endif
|
||||
|
||||
// also courtesy of linux kernel
|
||||
inline int32_t div_round_closest(int32_t x, int32_t divisor) {
|
||||
const int32_t __x = x;
|
||||
const int32_t __d = divisor;
|
||||
return ((__x) > 0) == ((__d) > 0) ? (((__x) + ((__d) / 2)) / (__d)) : (((__x) - ((__d) / 2)) / (__d));
|
||||
}
|
||||
int32_t div_round_closest(int32_t x, int32_t divisor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue