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
4159f702
Commit
4159f702
authored
Mar 09, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/timer: Fix units for x86 after
c708b540
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c2923100
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
timer.h
libavutil/timer.h
+5
-1
timer.h
libavutil/x86/timer.h
+1
-0
No files found.
libavutil/timer.h
View file @
4159f702
...
...
@@ -56,6 +56,10 @@
# endif
#endif
#ifndef FF_TIMER_UNITS
# define FF_TIMER_UNITS "UNITS"
#endif
#ifdef AV_READ_TIME
#define START_TIMER \
uint64_t tend; \
...
...
@@ -76,7 +80,7 @@
tskip_count++; \
if (((tcount + tskip_count) & (tcount + tskip_count - 1)) == 0) { \
av_log(NULL, AV_LOG_ERROR, \
"%"PRIu64"
UNITS
in %s, %d runs, %d skips\n", \
"%"PRIu64"
" FF_TIMER_UNITS "
in %s, %d runs, %d skips\n", \
tsum * 10 / tcount, id, tcount, tskip_count); \
} \
}
...
...
libavutil/x86/timer.h
View file @
4159f702
...
...
@@ -25,6 +25,7 @@
#if HAVE_INLINE_ASM
#define FF_TIMER_UNITS "decicycles"
#define AV_READ_TIME read_time
static
inline
uint64_t
read_time
(
void
)
...
...
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