Mercurial > libpostproc.hg
comparison postprocess.c @ 45:0e28dba3f9e7 libpostproc
Use DECLARE_ALIGNED for alignment in libpostprocess
author | reimar |
---|---|
date | Thu, 17 May 2007 09:30:38 +0000 |
parents | 63d07317cd7a |
children | a25e5fd9d997 |
comparison
equal
deleted
inserted
replaced
44:2ed02a33f02a | 45:0e28dba3f9e7 |
---|---|
104 #define BLOCK_SIZE 8 | 104 #define BLOCK_SIZE 8 |
105 #define TEMP_STRIDE 8 | 105 #define TEMP_STRIDE 8 |
106 //#define NUM_BLOCKS_AT_ONCE 16 //not used yet | 106 //#define NUM_BLOCKS_AT_ONCE 16 //not used yet |
107 | 107 |
108 #if defined(ARCH_X86) | 108 #if defined(ARCH_X86) |
109 static uint64_t __attribute__((aligned(8))) attribute_used w05= 0x0005000500050005LL; | 109 static DECLARE_ALIGNED(8, uint64_t attribute_used, w05)= 0x0005000500050005LL; |
110 static uint64_t __attribute__((aligned(8))) attribute_used w04= 0x0004000400040004LL; | 110 static DECLARE_ALIGNED(8, uint64_t attribute_used, w04)= 0x0004000400040004LL; |
111 static uint64_t __attribute__((aligned(8))) attribute_used w20= 0x0020002000200020LL; | 111 static DECLARE_ALIGNED(8, uint64_t attribute_used, w20)= 0x0020002000200020LL; |
112 static uint64_t __attribute__((aligned(8))) attribute_used b00= 0x0000000000000000LL; | 112 static DECLARE_ALIGNED(8, uint64_t attribute_used, b00)= 0x0000000000000000LL; |
113 static uint64_t __attribute__((aligned(8))) attribute_used b01= 0x0101010101010101LL; | 113 static DECLARE_ALIGNED(8, uint64_t attribute_used, b01)= 0x0101010101010101LL; |
114 static uint64_t __attribute__((aligned(8))) attribute_used b02= 0x0202020202020202LL; | 114 static DECLARE_ALIGNED(8, uint64_t attribute_used, b02)= 0x0202020202020202LL; |
115 static uint64_t __attribute__((aligned(8))) attribute_used b08= 0x0808080808080808LL; | 115 static DECLARE_ALIGNED(8, uint64_t attribute_used, b08)= 0x0808080808080808LL; |
116 static uint64_t __attribute__((aligned(8))) attribute_used b80= 0x8080808080808080LL; | 116 static DECLARE_ALIGNED(8, uint64_t attribute_used, b80)= 0x8080808080808080LL; |
117 #endif | 117 #endif |
118 | 118 |
119 static uint8_t clip_table[3*256]; | 119 static uint8_t clip_table[3*256]; |
120 static uint8_t * const clip_tab= clip_table + 256; | 120 static uint8_t * const clip_tab= clip_table + 256; |
121 | 121 |