Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
flac
Commits
8967db0c
Commit
8967db0c
authored
Jan 15, 2017
by
Erik de Castro Lopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bitmath.h: More unsigned fixes
parent
71b909b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/libFLAC/include/private/bitmath.h
src/libFLAC/include/private/bitmath.h
+4
-4
No files found.
src/libFLAC/include/private/bitmath.h
View file @
8967db0c
...
...
@@ -82,7 +82,7 @@ static inline uint32_t FLAC__clz_uint32(FLAC__uint32 v)
return
__builtin_clz
(
v
);
#elif defined(_MSC_VER)
{
uint
32_t
long
idx
;
uint
64_t
idx
;
_BitScanReverse
(
&
idx
,
v
);
return
idx
^
31U
;
}
...
...
@@ -106,7 +106,7 @@ static inline uint32_t FLAC__clz_uint64(FLAC__uint64 v)
return
__builtin_clzll
(
v
);
#elif (defined(__INTEL_COMPILER) || defined(_MSC_VER)) && (defined(_M_IA64) || defined(_M_X64))
{
uint
32_t
long
idx
;
uint
64_t
idx
;
_BitScanReverse64
(
&
idx
,
v
);
return
idx
^
63U
;
}
...
...
@@ -160,7 +160,7 @@ static inline uint32_t FLAC__bitmath_ilog2(FLAC__uint32 v)
return
_bit_scan_reverse
(
v
);
#elif defined(_MSC_VER)
{
uint
32_t
long
idx
;
uint
64_t
idx
;
_BitScanReverse
(
&
idx
,
v
);
return
idx
;
}
...
...
@@ -177,7 +177,7 @@ static inline uint32_t FLAC__bitmath_ilog2_wide(FLAC__uint64 v)
/* Sorry, only supported in x64/Itanium.. and both have fast FPU which makes integer-only encoder pointless */
#elif (defined(__INTEL_COMPILER) || defined(_MSC_VER)) && (defined(_M_IA64) || defined(_M_X64))
{
uint
32_t
long
idx
;
uint
64_t
idx
;
_BitScanReverse64
(
&
idx
,
v
);
return
idx
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment