⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ffs.c

📁 cygwin, 著名的在win32下模拟unix操作系统的东东
💻 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 + -