libpayload: strings.h: Use builtin __ffs instead of included one
Change-Id: Ie4d0b1b19ce6524341449df8bfabc66bff7bd97e Signed-off-by: Thomas Heijligen <src@posteo.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70118 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
c0c62ebbae
commit
5dbd3df03c
|
@ -29,8 +29,6 @@
|
||||||
#ifndef _STRINGS_H
|
#ifndef _STRINGS_H
|
||||||
#define _STRINGS_H
|
#define _STRINGS_H
|
||||||
|
|
||||||
#include <libpayload.h>
|
#define ffs(x) __builtin_ffs(x)
|
||||||
|
|
||||||
static inline int ffs(int i) { return __ffs(i) + 1; }
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue