Go to the documentation of this file.
56 register int misal = (
unsigned long) blocks & 0x00000010,
i = 0;
59 ((
unsigned long *) blocks)[0] = 0
L;
60 ((
unsigned long *) blocks)[1] = 0
L;
61 ((
unsigned long *) blocks)[2] = 0
L;
62 ((
unsigned long *) blocks)[3] = 0
L;
65 for (;
i <
sizeof(int16_t) * 6 * 64 - 31;
i += 32)
66 __asm__ volatile (
"dcbz %0,%1" ::
"b" (blocks),
"r" (
i) :
"memory");
68 ((
unsigned long *) blocks)[188] = 0
L;
69 ((
unsigned long *) blocks)[189] = 0
L;
70 ((
unsigned long *) blocks)[190] = 0
L;
71 ((
unsigned long *) blocks)[191] = 0
L;
81 register int misal = (
unsigned long) blocks & 0x0000007f,
i = 0;
87 memset(blocks, 0,
sizeof(int16_t) * 6 * 64);
89 for (;
i <
sizeof(int16_t) * 6 * 64;
i += 128)
90 __asm__ volatile (
"dcbzl %0,%1" ::
"b" (blocks),
"r" (
i) :
"memory");
93 memset(blocks, 0,
sizeof(int16_t) * 6 * 64);
105 register char *fakedata =
av_malloc(1024);
106 register char *fakedata_middle;
107 register long zero = 0,
i = 0;
112 fakedata_middle = fakedata + 512;
114 memset(fakedata, 0xFF, 1024);
118 __asm__ volatile (
"dcbzl %0, %1" ::
"b" (fakedata_middle),
"r" (
zero));
120 for (
i = 0;
i < 1024;
i++)
121 if (fakedata[
i] == (
char) 0)
131 static void clear_block_altivec(int16_t *
block)
163 c->clear_block = clear_block_altivec;
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
static void clear_blocks_dcbz128_ppc(int16_t *blocks)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
#define PPC_ALTIVEC(flags)
static int zero(InterplayACMContext *s, unsigned ind, unsigned col)
#define i(width, name, range_min, range_max)
__asm__(".macro parse_r var r\n\t" "\\var = -1\n\t" _IFC_REG(0) _IFC_REG(1) _IFC_REG(2) _IFC_REG(3) _IFC_REG(4) _IFC_REG(5) _IFC_REG(6) _IFC_REG(7) _IFC_REG(8) _IFC_REG(9) _IFC_REG(10) _IFC_REG(11) _IFC_REG(12) _IFC_REG(13) _IFC_REG(14) _IFC_REG(15) _IFC_REG(16) _IFC_REG(17) _IFC_REG(18) _IFC_REG(19) _IFC_REG(20) _IFC_REG(21) _IFC_REG(22) _IFC_REG(23) _IFC_REG(24) _IFC_REG(25) _IFC_REG(26) _IFC_REG(27) _IFC_REG(28) _IFC_REG(29) _IFC_REG(30) _IFC_REG(31) ".iflt \\var\n\t" ".error \"Unable to parse register name \\r\"\n\t" ".endif\n\t" ".endm")
av_cold void ff_blockdsp_init_ppc(BlockDSPContext *c)
static void clear_blocks_dcbz32_ppc(int16_t *blocks)
The exact code depends on how similar the blocks are and how related they are to the block
static long check_dcbzl_effect(void)