]> xenbits.xensource.com Git - mini-os.git/commit
minios: implement ffs, ffsl and ffsll.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 08:41:59 +0000 (09:41 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 28 May 2009 08:41:59 +0000 (09:41 +0100)
commit7a7d0a3db9562c6442a7c5eff8b26a9ca67f2803
tree71503d02c179bd990c2359b8c47f8e87f355c11a
parent06f638918cd2506a10237e83e446f3b2c4b82f33
minios: implement ffs, ffsl and ffsll.

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>
include/posix/strings.h
lib/string.c