Permalink
Browse files

Use ULL for large unsigned constants rather than LL to avoid narrowin…

…g issues.
  • Loading branch information...
daniel-kristjansson committed Dec 4, 2012
1 parent 8210c1d commit f6518345c971ed3b3ecc01b45d44b7fa2d0a8381
Showing with 9 additions and 9 deletions.
  1. +1 −1 mythtv/libs/libmythtv/util-opengl.cpp
  2. +8 −8 mythtv/libs/libmythtv/yuv2rgb.cpp
@@ -10,7 +10,7 @@ extern "C" {
#include "ffmpeg-mmx.h"
}
static mmx_t mmx_1s = {0xffffffffffffffffLL};
static mmx_t mmx_1s = {0xffffffffffffffffULL};
static inline void mmx_pack_alpha1s_high(uint8_t *y1, uint8_t *y2)
{
@@ -87,14 +87,14 @@ do { \
#if HAVE_MMX
static inline void mmx_yuv2rgb (uint8_t * py, uint8_t * pu, uint8_t * pv)
{
static mmx_t mmx_80w = {0x0080008000800080LL};
static mmx_t mmx_U_green = {0xf37df37df37df37dLL};
static mmx_t mmx_U_blue = {0x4093409340934093LL};
static mmx_t mmx_V_red = {0x3312331233123312LL};
static mmx_t mmx_V_green = {0xe5fce5fce5fce5fcLL};
static mmx_t mmx_10w = {0x1010101010101010LL};
static mmx_t mmx_00ffw = {0x00ff00ff00ff00ffLL};
static mmx_t mmx_Y_coeff = {0x253f253f253f253fLL};
static mmx_t mmx_80w = {0x0080008000800080ULL};
static mmx_t mmx_U_green = {0xf37df37df37df37dULL};
static mmx_t mmx_U_blue = {0x4093409340934093ULL};
static mmx_t mmx_V_red = {0x3312331233123312ULL};
static mmx_t mmx_V_green = {0xe5fce5fce5fce5fcULL};
static mmx_t mmx_10w = {0x1010101010101010ULL};
static mmx_t mmx_00ffw = {0x00ff00ff00ff00ffULL};
static mmx_t mmx_Y_coeff = {0x253f253f253f253fULL};
movd_m2r (*pu, mm0); // mm0 = 00 00 00 00 u3 u2 u1 u0
movd_m2r (*pv, mm1); // mm1 = 00 00 00 00 v3 v2 v1 v0

0 comments on commit f651834

Please sign in to comment.