This website works better with JavaScript.
首頁
探索
說明
登入
Archivist
/
raylib-src
镜像来自
https://github.com/raysan5/raylib
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
24
Wiki
Activity
瀏覽代碼
update sinfl_bsr
pull/4807/head
Rico P
4 天之前
committed by
GitHub
父節點
539c45ee23
當前提交
e7872a700d
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID:
B5690EEEBB952194
共有
1 個文件被更改
,包括
4 次插入
和
3 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-3
src/external/sinfl.h
+ 4
- 3
src/external/sinfl.h
查看文件
@ -171,9 +171,10 @@ extern int zsinflate(void *out, int cap, const void *in, int size);
static
int
sinfl_bsr
(
unsigned
n
)
{
#
if defined(_MSC_VER) && !defined(__clang__)
_BitScanReverse
(
&
n
,
n
)
;
return
n
;
#
ifdef _MSC_VER
unsigned
long
r
=
0
;
_BitScanReverse
(
&
r
,
n
)
;
return
int
(
r
)
;
#
else
/
/
defined(__GNUC__) || defined(__clang__) || defined(__TINYC__)
return
31
-
__builtin_clz
(
n
)
;
#
endif
Write
Preview
Loading…
取消
儲存