Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
83b1f6c8
Commit
83b1f6c8
authored
May 17, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_chroma/i420_rgb_mmx.h: gcc-3.4 compilation fix.
parent
d0ed0d4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
modules/video_chroma/i420_rgb_mmx.h
modules/video_chroma/i420_rgb_mmx.h
+19
-14
No files found.
modules/video_chroma/i420_rgb_mmx.h
View file @
83b1f6c8
/*****************************************************************************
/*****************************************************************************
* transforms_yuvmmx.h: MMX YUV transformation assembly
* transforms_yuvmmx.h: MMX YUV transformation assembly
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999
, 2000
VideoLAN
* Copyright (C) 1999
-2004
VideoLAN
* $Id
: i420_rgb_mmx.h,v 1.4 2003/10/01 03:38:24 sam Exp
$
* $Id$
*
*
* Authors: Olie Lho <ollie@sis.com.tw>
* Authors: Olie Lho <ollie@sis.com.tw>
* Gal Hendryckx <jimmy@via.ecp.fr>
* Gal Hendryckx <jimmy@via.ecp.fr>
...
@@ -24,21 +24,26 @@
...
@@ -24,21 +24,26 @@
*****************************************************************************/
*****************************************************************************/
/* hope these constant values are cache line aligned */
/* hope these constant values are cache line aligned */
#define UNUSED_U64(foo) \
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
#define USED_U64(foo) \
static const uint64_t foo __asm__ (#foo) __attribute__((used))
#else
#define USED_U64(foo) \
static const uint64_t foo __asm__ (#foo) __attribute__((unused))
static const uint64_t foo __asm__ (#foo) __attribute__((unused))
UNUSED_U64
(
mmx_80w
)
=
0x0080008000800080ULL
;
#endif
UNUSED_U64
(
mmx_10w
)
=
0x1010101010101010ULL
;
USED_U64
(
mmx_80w
)
=
0x0080008000800080ULL
;
UNUSED_U64
(
mmx_00ffw
)
=
0x00ff00ff00ff00ffULL
;
USED_U64
(
mmx_10w
)
=
0x1010101010101010ULL
;
UNUSED_U64
(
mmx_Y_coeff
)
=
0x253f253f253f253fULL
;
USED_U64
(
mmx_00ffw
)
=
0x00ff00ff00ff00ffULL
;
USED_U64
(
mmx_Y_coeff
)
=
0x253f253f253f253fULL
;
U
NU
SED_U64
(
mmx_U_green
)
=
0xf37df37df37df37dULL
;
USED_U64
(
mmx_U_green
)
=
0xf37df37df37df37dULL
;
U
NU
SED_U64
(
mmx_U_blue
)
=
0x4093409340934093ULL
;
USED_U64
(
mmx_U_blue
)
=
0x4093409340934093ULL
;
U
NU
SED_U64
(
mmx_V_red
)
=
0x3312331233123312ULL
;
USED_U64
(
mmx_V_red
)
=
0x3312331233123312ULL
;
U
NU
SED_U64
(
mmx_V_green
)
=
0xe5fce5fce5fce5fcULL
;
USED_U64
(
mmx_V_green
)
=
0xe5fce5fce5fce5fcULL
;
U
NU
SED_U64
(
mmx_mask_f8
)
=
0xf8f8f8f8f8f8f8f8ULL
;
USED_U64
(
mmx_mask_f8
)
=
0xf8f8f8f8f8f8f8f8ULL
;
U
NU
SED_U64
(
mmx_mask_fc
)
=
0xfcfcfcfcfcfcfcfcULL
;
USED_U64
(
mmx_mask_fc
)
=
0xfcfcfcfcfcfcfcfcULL
;
#undef U
NU
SED_U64
#undef USED_U64
#define MMX_INIT_16 " \n\
#define MMX_INIT_16 " \n\
movd (%1), %%mm0 # Load 4 Cb 00 00 00 00 u3 u2 u1 u0 \n\
movd (%1), %%mm0 # Load 4 Cb 00 00 00 00 u3 u2 u1 u0 \n\
...
...
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