Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
libaec
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
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
Options
Browse Files
Download
Email Patches
Plain Diff
Use AC_CHECK_DECLS, suggestion by Thomas J.
parent
ba12a875
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
configure.ac
configure.ac
+1
-10
decode.c
src/decode.c
+1
-1
No files found.
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