Revision 766324fc

View differences:

libavcodec/h264.c
5303 5303
    return ctx + 4 * cat;
5304 5304
}
5305 5305

  
5306
static const attribute_used uint8_t last_coeff_flag_offset_8x8[63] = {
5306
DECLARE_ASM_CONST(1, const uint8_t, last_coeff_flag_offset_8x8[63]) = {
5307 5307
    0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
5308 5308
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
5309 5309
    3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
libavcodec/i386/motion_est_mmx.c
24 24
#include "dsputil.h"
25 25
#include "x86_cpu.h"
26 26

  
27
static const __attribute__ ((aligned(8))) uint64_t round_tab[3]={
27
DECLARE_ASM_CONST(8, uint64_t, round_tab[3])={
28 28
0x0000000000000000ULL,
29 29
0x0001000100010001ULL,
30 30
0x0002000200020002ULL,
31 31
};
32 32

  
33
static attribute_used __attribute__ ((aligned(8))) uint64_t bone= 0x0101010101010101LL;
33
DECLARE_ASM_CONST(8, uint64_t, bone)= 0x0101010101010101LL;
34 34

  
35 35
static inline void sad8_1_mmx(uint8_t *blk1, uint8_t *blk2, int stride, int h)
36 36
{
libavcodec/i386/simple_idct_mmx.c
48 48
#define ROW_SHIFT 11
49 49
#define COL_SHIFT 20 // 6
50 50

  
51
static const uint64_t attribute_used __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL;
52
static const uint64_t attribute_used __attribute__((aligned(8))) d40000= 0x0000000000040000ULL;
51
DECLARE_ASM_CONST(8, uint64_t, wm1010)= 0xFFFF0000FFFF0000ULL;
52
DECLARE_ASM_CONST(8, uint64_t, d40000)= 0x0000000000040000ULL;
53 53

  
54 54
DECLARE_ALIGNED(8, static const int16_t, coeffs[])= {
55 55
        1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0,
libavutil/mem.h
28 28

  
29 29
#ifdef __GNUC__
30 30
  #define DECLARE_ALIGNED(n,t,v)       t v __attribute__ ((aligned (n)))
31
  #define DECLARE_ASM_CONST(n,t,v)     static const t v attribute_used __attribute__ ((aligned (n)))
31 32
#else
32 33
  #define DECLARE_ALIGNED(n,t,v)      __declspec(align(n)) t v
34
  #define DECLARE_ASM_CONST(n,t,v)    __declspec(align(n)) static const t v
33 35
#endif
34 36

  
35 37
/**

Also available in: Unified diff