?? ceillog2.h
字號:
#ifndef __CEILLOG2_H
#define __CEILLOG2_H
#include <assert.h>
static int ceil_log_2(int val) /* sufit z log2 z val */
{
int result;
assert(val>0);
if (val==1)
return 0;
result=1;
val-=1;
while (val>>=1)
result++;
return result;
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -