score: Avoid clash with <strings.h> provided fls()

This commit is contained in:
Sebastian Huber
2017-07-05 08:08:24 +02:00
parent 3e7827434d
commit 4cd52cc456

View File

@@ -75,10 +75,11 @@ ISR_LOCK_DEFINE(, _Timecounter_Lock, "Timecounter")
#define bcopy(x, y, z) memcpy(y, x, z);
#define log(...)
static inline int
fls(int x)
builtin_fls(int x)
{
return x ? sizeof(x) * 8 - __builtin_clz(x) : 0;
}
#define fls(x) builtin_fls(x)
/* FIXME: https://devel.rtems.org/ticket/2348 */
#define ntp_update_second(a, b) do { (void) a; (void) b; } while (0)
#endif /* __rtems__ */