?? ffs.c
字號:
/*FUNCTION <<ffs>>---find first bit set in a wordINDEX ffsANSI_SYNOPSIS int ffs(int <[word]>);TRAD_SYNOPSIS int ffs(<[word]>);DESCRIPTION<<ffs>> returns the first bit set in a word.RETURNS<<ffs>> returns 0 if <[c]> is 0, 1 if <[c]> is odd, 2 if <[c]> is a multiple of2, etc.PORTABILITY<<ffs>> is not ANSI C.No supporting OS subroutines are required. */intffs (word) int word;{ int i; if (!word) return 0; i = 0; for (;;) { if (((1 << i++) & word) != 0) return i; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -