Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
83b1f6c8
Commit
83b1f6c8
authored
May 17, 2004
by
gbazin
Browse files
* modules/video_chroma/i420_rgb_mmx.h: gcc-3.4 compilation fix.
parent
d0ed0d4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_chroma/i420_rgb_mmx.h
View file @
83b1f6c8
/*****************************************************************************
* transforms_yuvmmx.h: MMX YUV transformation assembly
*****************************************************************************
* Copyright (C) 1999
,
200
0
VideoLAN
* $Id
: i420_rgb_mmx.h,v 1.4 2003/10/01 03:38:24 sam Exp
$
* Copyright (C) 1999
-
200
4
VideoLAN
* $Id$
*
* Authors: Olie Lho <ollie@sis.com.tw>
* Gal Hendryckx <jimmy@via.ecp.fr>
...
...
@@ -24,21 +24,26 @@
*****************************************************************************/
/* 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))
UNUSED_U64
(
mmx_80w
)
=
0x0080008000800080ULL
;
UNUSED_U64
(
mmx_10w
)
=
0x1010101010101010ULL
;
UNUSED_U64
(
mmx_00ffw
)
=
0x00ff00ff00ff00ffULL
;
UNUSED_U64
(
mmx_Y_coeff
)
=
0x253f253f253f253fULL
;
#endif
USED_U64
(
mmx_80w
)
=
0x0080008000800080ULL
;
USED_U64
(
mmx_10w
)
=
0x1010101010101010ULL
;
USED_U64
(
mmx_00ffw
)
=
0x00ff00ff00ff00ffULL
;
USED_U64
(
mmx_Y_coeff
)
=
0x253f253f253f253fULL
;
UN
USED_U64
(
mmx_U_green
)
=
0xf37df37df37df37dULL
;
UN
USED_U64
(
mmx_U_blue
)
=
0x4093409340934093ULL
;
UN
USED_U64
(
mmx_V_red
)
=
0x3312331233123312ULL
;
UN
USED_U64
(
mmx_V_green
)
=
0xe5fce5fce5fce5fcULL
;
USED_U64
(
mmx_U_green
)
=
0xf37df37df37df37dULL
;
USED_U64
(
mmx_U_blue
)
=
0x4093409340934093ULL
;
USED_U64
(
mmx_V_red
)
=
0x3312331233123312ULL
;
USED_U64
(
mmx_V_green
)
=
0xe5fce5fce5fce5fcULL
;
UN
USED_U64
(
mmx_mask_f8
)
=
0xf8f8f8f8f8f8f8f8ULL
;
UN
USED_U64
(
mmx_mask_fc
)
=
0xfcfcfcfcfcfcfcfcULL
;
#undef
UN
USED_U64
USED_U64
(
mmx_mask_f8
)
=
0xf8f8f8f8f8f8f8f8ULL
;
USED_U64
(
mmx_mask_fc
)
=
0xfcfcfcfcfcfcfcfcULL
;
#undef USED_U64
#define MMX_INIT_16 " \n\
movd (%1), %%mm0 # Load 4 Cb 00 00 00 00 u3 u2 u1 u0 \n\
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment