Revision d343d598 libavcodec/sparc/dsputil_vis.c

View differences:

libavcodec/sparc/dsputil_vis.c
51 51
 *      fpsub16         f12, f10, f10
52 52
 */
53 53

  
54
#define ATTR_ALIGN(alignd) __attribute__ ((aligned(alignd)))
55

  
56 54
#define DUP4(x) {x, x, x, x}
57 55
#define DUP8(x) {x, x, x, x, x, x, x, x}
58
static const int16_t constants1[] ATTR_ALIGN(8) = DUP4 (1);
59
static const int16_t constants2[] ATTR_ALIGN(8) = DUP4 (2);
60
static const int16_t constants3[] ATTR_ALIGN(8) = DUP4 (3);
61
static const int16_t constants6[] ATTR_ALIGN(8) = DUP4 (6);
62
static const int8_t constants_fe[] ATTR_ALIGN(8) = DUP8 (0xfe);
63
static const int8_t constants_7f[] ATTR_ALIGN(8) = DUP8 (0x7f);
64
static const int8_t constants128[] ATTR_ALIGN(8) = DUP8 (128);
65
static const int16_t constants256_512[] ATTR_ALIGN(8) =
56
DECLARE_ALIGNED(8, static const int16_t, constants1)[] = DUP4 (1);
57
DECLARE_ALIGNED(8, static const int16_t, constants2)[] = DUP4 (2);
58
DECLARE_ALIGNED(8, static const int16_t, constants3)[] = DUP4 (3);
59
DECLARE_ALIGNED(8, static const int16_t, constants6)[] = DUP4 (6);
60
DECLARE_ALIGNED(8, static const int8_t, constants_fe)[] = DUP8 (0xfe);
61
DECLARE_ALIGNED(8, static const int8_t, constants_7f)[] = DUP8 (0x7f);
62
DECLARE_ALIGNED(8, static const int8_t, constants128)[] = DUP8 (128);
63
DECLARE_ALIGNED(8, static const int16_t, constants256_512)[] =
66 64
        {256, 512, 256, 512};
67
static const int16_t constants256_1024[] ATTR_ALIGN(8) =
65
DECLARE_ALIGNED(8, static const int16_t, constants256_1024)[] =
68 66
        {256, 1024, 256, 1024};
69 67

  
70 68
#define REF_0           0

Also available in: Unified diff