Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathis Rosenhauer
libaec
Commits
8cdce0ad
Commit
8cdce0ad
authored
Dec 11, 2012
by
Mathis Rosenhauer
Committed by
Thomas Jahns
Feb 19, 2013
Browse files
Use AC_CHECK_DECLS, suggestion by Thomas J.
parent
ba12a875
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
8cdce0ad
...
...
@@ -30,16 +30,7 @@ AC_TYPE_UINT8_T
# Checks for library functions.
AC_CHECK_FUNCS([memset strstr])
AC_MSG_CHECKING(for __builtin_clzll)
AC_TRY_LINK([],[
__builtin_clzll(1);
],[
AC_DEFINE(AEC_HAVE___BUILTIN_CLZLL, 1, \
[Define to 1 if you have the '__builtin__clzll' function.])
AC_MSG_RESULT(yes)
],[
AC_MSG_RESULT(no)
])
AC_CHECK_DECLS(__builtin_clzll)
AC_CONFIG_FILES([Makefile \
src/Makefile \
...
...
src/decode.c
View file @
8cdce0ad
...
...
@@ -277,7 +277,7 @@ static inline uint32_t direct_get_fs(struct aec_stream *strm)
if
(
state
->
acc
==
0
)
fill_acc
(
strm
);
#ifdef
AEC_
HAVE___BUILTIN_CLZLL
#ifdef HAVE
_DECL
___BUILTIN_CLZLL
fs
=
__builtin_clzll
(
state
->
acc
)
-
(
64
-
state
->
bitp
);
state
->
bitp
-=
fs
+
1
;
#else
...
...
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