mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
The first function is compiled only in case minios is compiled without newlib, since newlib already provides an implementation for ffs. On the other hand ffsl and ffsll are always compiled because newlib misses those functions. This patch also provides an implementation for __ffsti2 and __ffsdi2 because they are needed by gcc in order to successfully link ffsll. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
13 lines
241 B
C
13 lines
241 B
C
#ifndef _POSIX_STRINGS_H
|
|
#define _POSIX_STRINGS_H
|
|
|
|
#include <string.h>
|
|
|
|
#define bzero(ptr, size) (memset((ptr), '\0', (size)), (void) 0)
|
|
|
|
int ffs (int i);
|
|
int ffsl (long int li);
|
|
int ffsll (long long int lli);
|
|
|
|
#endif /* _POSIX_STRINGS_H */
|