Lines Matching refs:x
38 s4 iadd32(s4 x, s4 y) { return x + y; }
39 s8 iadd64(s8 x, s8 y) { return x + y; }
40 float fadd32(float x, float y) { return x + y; }
41 double fadd64(double x, double y) { return x + y; }
43 s4 isub32(s4 x, s4 y) { return x - y; }
44 s8 isub64(s8 x, s8 y) { return x - y; }
45 float fsub32(float x, float y) { return x - y; }
46 double fsub64(double x, double y) { return x - y; }
48 s4 irsub32lit8(s4 x) { return 25 - x; }
50 s4 imul32(s4 x, s4 y) { return x * y; }
51 s8 imul64(s8 x, s8 y) { return x * y; }
52 float fmul32(float x, float y) { return x * y; }
53 double fmul64(double x, double y) { return x * y; }
55 s4 idiv32(s4 x, s4 y) { return x / y; }
56 s8 idiv64(s8 x, s8 y) { return x / y; }
57 float fdiv32(float x, float y) { return x / y; }
58 double fdiv64(double x, double y) { return x / y; }
60 s4 irem32(s4 x, s4 y) { return x % y; }
61 s8 irem64(s8 x, s8 y) { return x % y; }
63 s4 iand32(s4 x, s4 y) { return x & y; }
64 s8 iand64(s8 x, s8 y) { return x & y; }
66 s4 ior32(s4 x, s4 y) { return x | y; }
67 s8 ior64(s8 x, s8 y) { return x | y; }
69 s4 ixor32(s4 x, s4 y) { return x ^ y; }
70 s8 ixor64(s8 x, s8 y) { return x ^ y; }
72 s4 iasl32(s4 x, s4 count) { return x << (count & 0x1f); }
73 s8 iasl64(s8 x, s4 count) { return x << (count & 0x3f); }
75 s4 iasr32(s4 x, s4 count) { return x >> (count & 0x1f); }
76 s8 iasr64(s8 x, s4 count) { return x >> (count & 0x3f); }
78 s4 ilsr32(s4 x, s4 count) { return ((u4)x) >> (count & 0x1f); } // unsigned
79 s8 ilsr64(s8 x, s4 count) { return ((u8)x) >> (count & 0x3f); } // unsigned
81 s4 ineg32(s4 x) { return -x; }
82 s8 ineg64(s8 x) { return -x; }
83 float fneg32(float x) { return -x; }
84 double fneg64(double x) { return -x; }
86 s4 inot32(s4 x) { return x ^ -1; }
87 s8 inot64(s8 x) { return x ^ -1LL; }
89 s4 float2int(float x) { return (s4) x; }
90 double float2double(float x) { return (double) x; }
91 s4 double2int(double x) { return (s4) x; }
92 float double2float(double x) { return (float) x; }
99 s8 float2long(float x) { return (s8) x; }
100 s8 float2long_clamp(float x)
105 if (x >= kMaxLong) {
107 } else if (x <= kMinLong) {
109 } else if (x != x) {
112 return (s8) x;
115 s8 double2long(double x) { return (s8) x; }
116 s8 double2long_clamp(double x)
121 if (x >= kMaxLong) {
123 } else if (x <= kMinLong) {
125 } else if (x != x) {
128 return (s8) x;
132 s1 int2byte(s4 x) { return (s1) x; }
133 s2 int2short(s4 x) { return (s2) x; }
134 u2 int2char(s4 x) { return (u2) x; }
135 s8 int2long(s4 x) { return (s8) x; }
136 float int2float(s4 x) { return (float) x; }
137 double int2double(s4 x) { return (double) x; }
139 s4 long2int(s8 x) { return (s4) x; }
140 float long2float(s8 x) { return (float) x; }
141 double long2double(s8 x) { return (double) x; }
143 int cmpl_float(float x, float y)
147 if (x == y)
149 else if (x > y)
151 else /* (x < y) or NaN */
156 int cmpg_float(float x, float y)
160 if (x == y)
162 else if (x < y)
164 else /* (x > y) or NaN */
169 int cmpl_double(double x, double y)
173 if (x == y)
175 else if (x > y)
177 else /* (x < y) or NaN */
182 int cmpg_double(double x, double y)
186 if (x == y)
188 else if (x < y)
190 else /* (x > y) or NaN */
195 int cmp_long(s8 x, s8 y)
199 if (x == y)
201 else if (x < y)
203 else /* (x > y) */
209 u1 unsignedAA(u2 x) { return x >> 8; }
210 s1 signedAA(u2 x) { return (s4)(x << 16) >> 24; }
211 s2 signedBB(u2 x) { return (s2) x; }
212 u1 unsignedA(u2 x) { return (x >> 8) & 0x0f; }
213 u1 unsignedB(u2 x) { return x >> 12; }