Lines Matching defs:shift

110 inline GGLfixed gglMulx(GGLfixed x, GGLfixed y, int shift) CONST;
111 inline GGLfixed gglMulx(GGLfixed x, GGLfixed y, int shift) {
113 if (__builtin_constant_p(shift)) {
118 : "%[x]"(x), [y]"r"(y), [lshift] "I"(32-shift), [rshift] "I"(shift)
126 : "%[x]"(x), [y]"r"(y), [lshift] "r"(32-shift), [rshift] "r"(shift)
133 inline GGLfixed gglMulAddx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) CONST;
134 inline GGLfixed gglMulAddx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) {
136 if (__builtin_constant_p(shift)) {
141 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "I"(32-shift), [rshift] "I"(shift)
148 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "r"(32-shift), [rshift] "r"(shift)
154 inline GGLfixed gglMulSubx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) CONST;
155 inline GGLfixed gglMulSubx(GGLfixed x, GGLfixed y, GGLfixed a, int shift) {
157 if (__builtin_constant_p(shift)) {
162 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "I"(32-shift), [rshift] "I"(shift)
169 : "%[x]"(x), [y]"r"(y), [a]"r"(a), [lshift] "r"(32-shift), [rshift] "r"(shift)
196 inline GGLfixed gglMulx(GGLfixed a, GGLfixed b, int shift) CONST;
197 inline GGLfixed gglMulx(GGLfixed a, GGLfixed b, int shift) {
200 if (__builtin_constant_p(shift)) {
201 if (shift == 0) {
208 } else if (shift == 32)
221 : [a]"r"(a),[b]"r"(b),[shift]"I"(shift)
224 } else if ((shift >0) && (shift < 32))
239 : [a]"r"(a),[b]"r"(b),[lshift]"I"(32-shift),[rshift]"I"(shift),[shiftm1]"I"(shift-1)
261 : [a]"r"(a),[b]"r"(b),[norbits]"I"(~(shift)),[rshift]"I"(shift),[shiftm1] "I"(shift-1),[bit5]"I"(shift & 0x20)
284 : [a]"r"(a),[b]"r"(b),[norbits]"r"(~(shift)),[rshift] "r"(shift),[shiftm1]"r"(shift-1),[bit5] "r"(shift & 0x20)
292 inline GGLfixed gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) CONST;
293 inline GGLfixed gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) {
296 if (__builtin_constant_p(shift)) {
297 if (shift == 0) {
305 } else if (shift == 32) {
313 } else if ((shift>0) && (shift<32)) {
322 : [a]"r"(a),[b]"r"(b),[c]"r"(c),[lshift]"I"(32-shift),[rshift]"I"(shift)
327 "nor %[tmp1],$zero,%[shift]\t\n"
330 "srl %[res],%[res],%[shift] \t\n"
334 "srav %[res],%[t],%[shift] \t\n"
335 "andi %[tmp2],%[shift],0x20\t\n"
339 : [a]"r"(a),[b]"r"(b),[c]"r"(c),[shift]"I"(shift)
345 "nor %[tmp1],$zero,%[shift]\t\n"
348 "srl %[res],%[res],%[shift] \t\n"
352 "srav %[res],%[t],%[shift] \t\n"
353 "andi %[tmp2],%[shift],0x20\t\n"
357 : [a]"r"(a),[b]"r"(b),[c]"r"(c),[shift]"r"(shift)
364 inline GGLfixed gglMulSubx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) CONST;
365 inline GGLfixed gglMulSubx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) {
368 if (__builtin_constant_p(shift)) {
369 if (shift == 0) {
377 } else if (shift == 32) {
385 } else if ((shift>0) && (shift<32)) {
394 : [a]"r"(a),[b]"r"(b),[c]"r"(c),[lshift]"I"(32-shift),[rshift]"I"(shift)
399 "nor %[tmp1],$zero,%[shift]\t\n"
402 "srl %[res],%[res],%[shift] \t\n"
406 "srav %[res],%[t],%[shift] \t\n"
407 "andi %[tmp2],%[shift],0x20\t\n"
411 : [a]"r"(a),[b]"r"(b),[c]"r"(c),[shift]"I"(shift)
417 "nor %[tmp1],$zero,%[shift]\t\n"
420 "srl %[res],%[res],%[shift] \t\n"
424 "srav %[res],%[t],%[shift] \t\n"
425 "andi %[tmp2],%[shift],0x20\t\n"
429 : [a]"r"(a),[b]"r"(b),[c]"r"(c),[shift]"r"(shift)
462 inline GGLfixed gglMulx(GGLfixed a, GGLfixed b, int shift) CONST;
463 inline GGLfixed gglMulx(GGLfixed a, GGLfixed b, int shift) {
464 return GGLfixed((int64_t(a)*b + (1<<(shift-1)))>>shift);
466 inline GGLfixed gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) CONST;
467 inline GGLfixed gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) {
468 return GGLfixed((int64_t(a)*b)>>shift) + c;
470 inline GGLfixed gglMulSubx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) CONST;
471 inline GGLfixed gglMulSubx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) {
472 return GGLfixed((int64_t(a)*b)>>shift) - c;