OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b540a28
)
Add ffs func declaration
author
Eric Andersen
<andersen@codepoet.org>
Fri, 9 Feb 2001 08:55:14 +0000
(08:55 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 9 Feb 2001 08:55:14 +0000
(08:55 -0000)
-Erik
include/string.h
patch
|
blob
|
history
diff --git
a/include/string.h
b/include/string.h
index
dcdd24f
..
7d284e5
100644
(file)
--- a/
include/string.h
+++ b/
include/string.h
@@
-66,6
+66,10
@@
extern __ptr_t memmove __P ((__ptr_t __dest, __const __ptr_t __src,
#define index strchr
#define rindex strrchr
+/* Return the position of the first bit set in I, or 0 if none are set.
+ The least-significant bit is position 1, the most-significant 32. */
+extern int ffs __P ((int __i)) __attribute__ ((const));
+
/* Other common BSD functions */
/* Set N bytes of S to 0. */
extern void bzero __P ((__ptr_t __s, size_t __n));