comparison alpha/dsputil_alpha.c @ 1465:52254c2f9cae libavcodec

Use asms instead of builtins when compiling for generic Alpha. Less ugly.
author mellum
date Sat, 13 Sep 2003 10:07:46 +0000
parents a1cc1810d58f
children dea5b2946999
comparison
equal deleted inserted replaced
1464:51239e385475 1465:52254c2f9cae
52 int line_size) 52 int line_size)
53 { 53 {
54 int i = 8; 54 int i = 8;
55 uint64_t clampmask = zap(-1, 0xaa); /* 0x00ff00ff00ff00ff */ 55 uint64_t clampmask = zap(-1, 0xaa); /* 0x00ff00ff00ff00ff */
56 56
57 ASM_ACCEPT_MVI;
58
59 do { 57 do {
60 uint64_t shorts0, shorts1; 58 uint64_t shorts0, shorts1;
61 59
62 shorts0 = ldq(block); 60 shorts0 = ldq(block);
63 shorts0 = maxsw4(shorts0, 0); 61 shorts0 = maxsw4(shorts0, 0);
81 /* Keep this function a leaf function by generating the constants 79 /* Keep this function a leaf function by generating the constants
82 manually (mainly for the hack value ;-). */ 80 manually (mainly for the hack value ;-). */
83 uint64_t clampmask = zap(-1, 0xaa); /* 0x00ff00ff00ff00ff */ 81 uint64_t clampmask = zap(-1, 0xaa); /* 0x00ff00ff00ff00ff */
84 uint64_t signmask = zap(-1, 0x33); 82 uint64_t signmask = zap(-1, 0x33);
85 signmask ^= signmask >> 1; /* 0x8000800080008000 */ 83 signmask ^= signmask >> 1; /* 0x8000800080008000 */
86
87 ASM_ACCEPT_MVI;
88 84
89 do { 85 do {
90 uint64_t shorts0, pix0, signs0; 86 uint64_t shorts0, pix0, signs0;
91 uint64_t shorts1, pix1, signs1; 87 uint64_t shorts1, pix1, signs1;
92 88