Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
1e65f62e
Commit
1e65f62e
authored
16 years ago
by
Måns Rullgård
Browse files
Options
Downloads
Patches
Plain Diff
ARM: armcc versions of bswap_16/32
Originally committed as revision 17830 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
03e37762
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavutil/arm/bswap.h
+21
-0
21 additions, 0 deletions
libavutil/arm/bswap.h
with
21 additions
and
0 deletions
libavutil/arm/bswap.h
+
21
−
0
View file @
1e65f62e
...
@@ -23,6 +23,25 @@
...
@@ -23,6 +23,25 @@
#include
"config.h"
#include
"config.h"
#include
"libavutil/common.h"
#include
"libavutil/common.h"
#ifdef __ARMCC_VERSION
#if HAVE_ARMV6
#define bswap_16 bswap_16
static
av_always_inline
av_const
uint16_t
bswap_16
(
uint16_t
x
)
{
__asm
{
rev16
x
,
x
}
return
x
;
}
#define bswap_32 bswap_32
static
av_always_inline
av_const
uint32_t
bswap_32
(
uint32_t
x
)
{
return
__rev
(
x
);
}
#endif
/* HAVE_ARMV6 */
#else
/* __ARMCC_VERSION */
#if HAVE_ARMV6
#if HAVE_ARMV6
#define bswap_16 bswap_16
#define bswap_16 bswap_16
static
av_always_inline
av_const
uint16_t
bswap_16
(
uint16_t
x
)
static
av_always_inline
av_const
uint16_t
bswap_16
(
uint16_t
x
)
...
@@ -48,4 +67,6 @@ static av_always_inline av_const uint32_t bswap_32(uint32_t x)
...
@@ -48,4 +67,6 @@ static av_always_inline av_const uint32_t bswap_32(uint32_t x)
return
x
;
return
x
;
}
}
#endif
/* __ARMCC_VERSION */
#endif
/* AVUTIL_ARM_BSWAP_H */
#endif
/* AVUTIL_ARM_BSWAP_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment