Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
17710550
Commit
17710550
authored
Sep 30, 2015
by
Henrik Gramner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86inc: Make cpuflag() and notcpuflag() return 0 or 1
Makes it possible to use them in arithmetic expressions.
parent
5d4a3563
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
x86inc.asm
libavutil/x86/x86inc.asm
+3
-2
No files found.
libavutil/x86/x86inc.asm
View file @
17710550
...
@@ -773,8 +773,9 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae,
...
@@ -773,8 +773,9 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae,
%assign
cpuflags_bmi1
(
1
<<
22
)
|
cpuflags_lzcnt
%assign
cpuflags_bmi1
(
1
<<
22
)
|
cpuflags_lzcnt
%assign
cpuflags_bmi2
(
1
<<
23
)
|
cpuflags_bmi1
%assign
cpuflags_bmi2
(
1
<<
23
)
|
cpuflags_bmi1
%define
cpuflag
(
x
)
((
cpuflags
&
(
cpuflags_
%
+
x
))
==
(
cpuflags_
%
+
x
))
; Returns a boolean value expressing whether or not the specified cpuflag is enabled.
%define
notcpuflag
(
x
)
((
cpuflags
&
(
cpuflags_
%
+
x
))
!
=
(
cpuflags_
%
+
x
))
%define
cpuflag
(
x
)
(((((
cpuflags
&
(
cpuflags_
%
+
x
))
^
(
cpuflags_
%
+
x
))
-
1
)
>>
31
)
&
1
)
%define
notcpuflag
(
x
)
(
cpuflag
(
x
)
^
1
)
; Takes an arbitrary number of cpuflags from the above list.
; Takes an arbitrary number of cpuflags from the above list.
; All subsequent functions (up to the next INIT_CPUFLAGS) is built for the specified cpu.
; All subsequent functions (up to the next INIT_CPUFLAGS) is built for the specified cpu.
...
...
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