Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 81c5b71

Browse files
Fix compilation on MSVC
MSVC does not provide __builtin_clz intrinsic, but hopefully a portable implementation is available in the "#if 0" and it could be used in these circumstances,
1 parent 8c47541 commit 81c5b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fmv/internal/common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ static inline int av_parity_c(uint32_t v)
529529

530530
static inline int av_log2(uint32_t value)
531531
{
532-
#if 0
532+
#ifndef __GNUC__
533533
int ret = 0;
534534
for(; value; value >>= 1, ++ret);
535535
return ret ? ret - 1 : ret;

0 commit comments

Comments
 (0)