소스 검색

update sinfl_bsr

pull/4807/head
Rico P 4 일 전
committed by GitHub
부모
커밋
e7872a700d
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. +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

불러오는 중...
취소
저장