Fixed linking errors

This commit is contained in:
Denis 2023-12-10 01:08:57 +01:00
parent 4491c80568
commit 583e8a983a
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
6 changed files with 21 additions and 12 deletions

View file

@ -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);