Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 1 | // Float ops, 6.11.2 |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 2 | |
| 3 | extern float __attribute__((overloadable)) acos(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 4 | extern float2 __attribute__((overloadable)) acos(float2); |
| 5 | extern float3 __attribute__((overloadable)) acos(float3); |
| 6 | extern float4 __attribute__((overloadable)) acos(float4); |
| 7 | extern float8 __attribute__((overloadable)) acos(float8); |
| 8 | extern float16 __attribute__((overloadable)) acos(float16); |
| 9 | |
| 10 | extern float __attribute__((overloadable)) acosh(float); |
| 11 | extern float2 __attribute__((overloadable)) acosh(float2); |
| 12 | extern float3 __attribute__((overloadable)) acosh(float3); |
| 13 | extern float4 __attribute__((overloadable)) acosh(float4); |
| 14 | extern float8 __attribute__((overloadable)) acosh(float8); |
| 15 | extern float16 __attribute__((overloadable)) acosh(float16); |
| 16 | |
| 17 | extern float __attribute__((overloadable)) acospi(float); |
| 18 | extern float2 __attribute__((overloadable)) acospi(float2); |
| 19 | extern float3 __attribute__((overloadable)) acospi(float3); |
| 20 | extern float4 __attribute__((overloadable)) acospi(float4); |
| 21 | extern float8 __attribute__((overloadable)) acospi(float8); |
| 22 | extern float16 __attribute__((overloadable)) acospi(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 23 | |
| 24 | extern float __attribute__((overloadable)) asin(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 25 | extern float2 __attribute__((overloadable)) asin(float2); |
| 26 | extern float3 __attribute__((overloadable)) asin(float3); |
| 27 | extern float4 __attribute__((overloadable)) asin(float4); |
| 28 | extern float8 __attribute__((overloadable)) asin(float8); |
| 29 | extern float16 __attribute__((overloadable)) asin(float16); |
| 30 | |
| 31 | extern float __attribute__((overloadable)) asinh(float); |
| 32 | extern float2 __attribute__((overloadable)) asinh(float2); |
| 33 | extern float3 __attribute__((overloadable)) asinh(float3); |
| 34 | extern float4 __attribute__((overloadable)) asinh(float4); |
| 35 | extern float8 __attribute__((overloadable)) asinh(float8); |
| 36 | extern float16 __attribute__((overloadable)) asinh(float16); |
| 37 | |
| 38 | extern float __attribute__((overloadable)) asinpi(float); |
| 39 | extern float2 __attribute__((overloadable)) asinpi(float2); |
| 40 | extern float3 __attribute__((overloadable)) asinpi(float3); |
| 41 | extern float4 __attribute__((overloadable)) asinpi(float4); |
| 42 | extern float8 __attribute__((overloadable)) asinpi(float8); |
| 43 | extern float16 __attribute__((overloadable)) asinpi(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 44 | |
| 45 | extern float __attribute__((overloadable)) atan(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 46 | extern float2 __attribute__((overloadable)) atan(float2); |
| 47 | extern float3 __attribute__((overloadable)) atan(float3); |
| 48 | extern float4 __attribute__((overloadable)) atan(float4); |
| 49 | extern float8 __attribute__((overloadable)) atan(float8); |
| 50 | extern float16 __attribute__((overloadable)) atan(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 51 | |
| 52 | extern float __attribute__((overloadable)) atan2(float, float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 53 | extern float2 __attribute__((overloadable)) atan2(float2, float2); |
| 54 | extern float3 __attribute__((overloadable)) atan2(float3, float3); |
| 55 | extern float4 __attribute__((overloadable)) atan2(float4, float4); |
| 56 | extern float8 __attribute__((overloadable)) atan2(float8, float8); |
| 57 | extern float16 __attribute__((overloadable)) atan2(float16, float16); |
| 58 | |
| 59 | extern float __attribute__((overloadable)) atanh(float); |
| 60 | extern float2 __attribute__((overloadable)) atanh(float2); |
| 61 | extern float3 __attribute__((overloadable)) atanh(float3); |
| 62 | extern float4 __attribute__((overloadable)) atanh(float4); |
| 63 | extern float8 __attribute__((overloadable)) atanh(float8); |
| 64 | extern float16 __attribute__((overloadable)) atanh(float16); |
| 65 | |
| 66 | extern float __attribute__((overloadable)) atanpi(float); |
| 67 | extern float2 __attribute__((overloadable)) atanpi(float2); |
| 68 | extern float3 __attribute__((overloadable)) atanpi(float3); |
| 69 | extern float4 __attribute__((overloadable)) atanpi(float4); |
| 70 | extern float8 __attribute__((overloadable)) atanpi(float8); |
| 71 | extern float16 __attribute__((overloadable)) atanpi(float16); |
| 72 | |
| 73 | extern float __attribute__((overloadable)) atan2pi(float, float); |
| 74 | extern float2 __attribute__((overloadable)) atan2pi(float2, float2); |
| 75 | extern float3 __attribute__((overloadable)) atan2pi(float3, float3); |
| 76 | extern float4 __attribute__((overloadable)) atan2pi(float4, float4); |
| 77 | extern float8 __attribute__((overloadable)) atan2pi(float8, float8); |
| 78 | extern float16 __attribute__((overloadable)) atan2pi(float16, float16); |
| 79 | |
| 80 | extern float __attribute__((overloadable)) cbrt(float); |
| 81 | extern float2 __attribute__((overloadable)) cbrt(float2); |
| 82 | extern float3 __attribute__((overloadable)) cbrt(float3); |
| 83 | extern float4 __attribute__((overloadable)) cbrt(float4); |
| 84 | extern float8 __attribute__((overloadable)) cbrt(float8); |
| 85 | extern float16 __attribute__((overloadable)) cbrt(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 86 | |
| 87 | extern float __attribute__((overloadable)) ceil(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 88 | extern float2 __attribute__((overloadable)) ceil(float2); |
| 89 | extern float3 __attribute__((overloadable)) ceil(float3); |
| 90 | extern float4 __attribute__((overloadable)) ceil(float4); |
| 91 | extern float8 __attribute__((overloadable)) ceil(float8); |
| 92 | extern float16 __attribute__((overloadable)) ceil(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 93 | |
| 94 | extern float __attribute__((overloadable)) copysign(float, float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 95 | extern float2 __attribute__((overloadable)) copysign(float2, float2); |
| 96 | extern float3 __attribute__((overloadable)) copysign(float3, float3); |
| 97 | extern float4 __attribute__((overloadable)) copysign(float4, float4); |
| 98 | extern float8 __attribute__((overloadable)) copysign(float8, float8); |
| 99 | extern float16 __attribute__((overloadable)) copysign(float16, float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 100 | |
| 101 | extern float __attribute__((overloadable)) cos(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 102 | extern float2 __attribute__((overloadable)) cos(float2); |
| 103 | extern float3 __attribute__((overloadable)) cos(float3); |
| 104 | extern float4 __attribute__((overloadable)) cos(float4); |
| 105 | extern float8 __attribute__((overloadable)) cos(float8); |
| 106 | extern float16 __attribute__((overloadable)) cos(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 107 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 108 | extern float __attribute__((overloadable)) cosh(float); |
| 109 | extern float2 __attribute__((overloadable)) cosh(float2); |
| 110 | extern float3 __attribute__((overloadable)) cosh(float3); |
| 111 | extern float4 __attribute__((overloadable)) cosh(float4); |
| 112 | extern float8 __attribute__((overloadable)) cosh(float8); |
| 113 | extern float16 __attribute__((overloadable)) cosh(float16); |
| 114 | |
| 115 | extern float __attribute__((overloadable)) cospi(float); |
| 116 | extern float2 __attribute__((overloadable)) cospi(float2); |
| 117 | extern float3 __attribute__((overloadable)) cospi(float3); |
| 118 | extern float4 __attribute__((overloadable)) cospi(float4); |
| 119 | extern float8 __attribute__((overloadable)) cospi(float8); |
| 120 | extern float16 __attribute__((overloadable)) cospi(float16); |
| 121 | |
| 122 | extern float __attribute__((overloadable)) erfc(float); |
| 123 | extern float2 __attribute__((overloadable)) erfc(float2); |
| 124 | extern float3 __attribute__((overloadable)) erfc(float3); |
| 125 | extern float4 __attribute__((overloadable)) erfc(float4); |
| 126 | extern float8 __attribute__((overloadable)) erfc(float8); |
| 127 | extern float16 __attribute__((overloadable)) erfc(float16); |
| 128 | |
| 129 | extern float __attribute__((overloadable)) erf(float); |
| 130 | extern float2 __attribute__((overloadable)) erf(float2); |
| 131 | extern float3 __attribute__((overloadable)) erf(float3); |
| 132 | extern float4 __attribute__((overloadable)) erf(float4); |
| 133 | extern float8 __attribute__((overloadable)) erf(float8); |
| 134 | extern float16 __attribute__((overloadable)) erf(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 135 | |
| 136 | extern float __attribute__((overloadable)) exp(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 137 | extern float2 __attribute__((overloadable)) exp(float2); |
| 138 | extern float3 __attribute__((overloadable)) exp(float3); |
| 139 | extern float4 __attribute__((overloadable)) exp(float4); |
| 140 | extern float8 __attribute__((overloadable)) exp(float8); |
| 141 | extern float16 __attribute__((overloadable)) exp(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 142 | |
| 143 | extern float __attribute__((overloadable)) exp2(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 144 | extern float2 __attribute__((overloadable)) exp2(float2); |
| 145 | extern float3 __attribute__((overloadable)) exp2(float3); |
| 146 | extern float4 __attribute__((overloadable)) exp2(float4); |
| 147 | extern float8 __attribute__((overloadable)) exp2(float8); |
| 148 | extern float16 __attribute__((overloadable)) exp2(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 149 | |
| 150 | extern float __attribute__((overloadable)) exp10(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 151 | extern float2 __attribute__((overloadable)) exp10(float2); |
| 152 | extern float3 __attribute__((overloadable)) exp10(float3); |
| 153 | extern float4 __attribute__((overloadable)) exp10(float4); |
| 154 | extern float8 __attribute__((overloadable)) exp10(float8); |
| 155 | extern float16 __attribute__((overloadable)) exp10(float16); |
| 156 | |
| 157 | extern float __attribute__((overloadable)) expm1(float); |
| 158 | extern float2 __attribute__((overloadable)) expm1(float2); |
| 159 | extern float3 __attribute__((overloadable)) expm1(float3); |
| 160 | extern float4 __attribute__((overloadable)) expm1(float4); |
| 161 | extern float8 __attribute__((overloadable)) expm1(float8); |
| 162 | extern float16 __attribute__((overloadable)) expm1(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 163 | |
| 164 | extern float __attribute__((overloadable)) fabs(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 165 | extern float2 __attribute__((overloadable)) fabs(float2); |
| 166 | extern float3 __attribute__((overloadable)) fabs(float3); |
| 167 | extern float4 __attribute__((overloadable)) fabs(float4); |
| 168 | extern float8 __attribute__((overloadable)) fabs(float8); |
| 169 | extern float16 __attribute__((overloadable)) fabs(float16); |
| 170 | |
| 171 | extern float __attribute__((overloadable)) fdim(float, float); |
| 172 | extern float2 __attribute__((overloadable)) fdim(float2, float2); |
| 173 | extern float3 __attribute__((overloadable)) fdim(float3, float3); |
| 174 | extern float4 __attribute__((overloadable)) fdim(float4, float4); |
| 175 | extern float8 __attribute__((overloadable)) fdim(float8, float8); |
| 176 | extern float16 __attribute__((overloadable)) fdim(float16, float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 177 | |
| 178 | extern float __attribute__((overloadable)) floor(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 179 | extern float2 __attribute__((overloadable)) floor(float2); |
| 180 | extern float3 __attribute__((overloadable)) floor(float3); |
| 181 | extern float4 __attribute__((overloadable)) floor(float4); |
| 182 | extern float8 __attribute__((overloadable)) floor(float8); |
| 183 | extern float16 __attribute__((overloadable)) floor(float16); |
| 184 | |
| 185 | extern float __attribute__((overloadable)) fma(float, float, float); |
| 186 | extern float2 __attribute__((overloadable)) fma(float2, float2, float2); |
| 187 | extern float3 __attribute__((overloadable)) fma(float3, float3, float3); |
| 188 | extern float4 __attribute__((overloadable)) fma(float4, float4, float4); |
| 189 | extern float8 __attribute__((overloadable)) fma(float8, float8, float8); |
| 190 | extern float16 __attribute__((overloadable)) fma(float16, float16, float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 191 | |
| 192 | extern float __attribute__((overloadable)) fmax(float, float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 193 | extern float2 __attribute__((overloadable)) fmax(float2, float2); |
| 194 | extern float3 __attribute__((overloadable)) fmax(float3, float3); |
| 195 | extern float4 __attribute__((overloadable)) fmax(float4, float4); |
| 196 | extern float8 __attribute__((overloadable)) fmax(float8, float8); |
| 197 | extern float16 __attribute__((overloadable)) fmax(float16, float16); |
| 198 | extern float2 __attribute__((overloadable)) fmax(float2, float); |
| 199 | extern float3 __attribute__((overloadable)) fmax(float3, float); |
| 200 | extern float4 __attribute__((overloadable)) fmax(float4, float); |
| 201 | extern float8 __attribute__((overloadable)) fmax(float8, float); |
| 202 | extern float16 __attribute__((overloadable)) fmax(float16, float); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 203 | |
| 204 | extern float __attribute__((overloadable)) fmin(float, float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 205 | extern float2 __attribute__((overloadable)) fmin(float2, float2); |
| 206 | extern float3 __attribute__((overloadable)) fmin(float3, float3); |
| 207 | extern float4 __attribute__((overloadable)) fmin(float4, float4); |
| 208 | extern float8 __attribute__((overloadable)) fmin(float8, float8); |
| 209 | extern float16 __attribute__((overloadable)) fmin(float16, float16); |
| 210 | extern float2 __attribute__((overloadable)) fmin(float2, float); |
| 211 | extern float3 __attribute__((overloadable)) fmin(float3, float); |
| 212 | extern float4 __attribute__((overloadable)) fmin(float4, float); |
| 213 | extern float8 __attribute__((overloadable)) fmin(float8, float); |
| 214 | extern float16 __attribute__((overloadable)) fmin(float16, float); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 215 | |
| 216 | extern float __attribute__((overloadable)) fmod(float, float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 217 | extern float2 __attribute__((overloadable)) fmod(float2, float2); |
| 218 | extern float3 __attribute__((overloadable)) fmod(float3, float3); |
| 219 | extern float4 __attribute__((overloadable)) fmod(float4, float4); |
| 220 | extern float8 __attribute__((overloadable)) fmod(float8, float8); |
| 221 | extern float16 __attribute__((overloadable)) fmod(float16, float16); |
| 222 | |
| 223 | extern float __attribute__((overloadable)) fract(float, float *); |
| 224 | extern float2 __attribute__((overloadable)) fract(float2, float2 *); |
| 225 | extern float3 __attribute__((overloadable)) fract(float3, float3 *); |
| 226 | extern float4 __attribute__((overloadable)) fract(float4, float4 *); |
| 227 | extern float8 __attribute__((overloadable)) fract(float8, float8 *); |
| 228 | extern float16 __attribute__((overloadable)) fract(float16, float16 *); |
| 229 | |
| 230 | extern float __attribute__((overloadable)) frexp(float, float *); |
| 231 | extern float2 __attribute__((overloadable)) frexp(float2, float2 *); |
| 232 | extern float3 __attribute__((overloadable)) frexp(float3, float3 *); |
| 233 | extern float4 __attribute__((overloadable)) frexp(float4, float4 *); |
| 234 | extern float8 __attribute__((overloadable)) frexp(float8, float8 *); |
| 235 | extern float16 __attribute__((overloadable)) frexp(float16, float16 *); |
| 236 | |
| 237 | extern float __attribute__((overloadable)) hypot(float, float); |
| 238 | extern float2 __attribute__((overloadable)) hypot(float2, float2); |
| 239 | extern float3 __attribute__((overloadable)) hypot(float3, float3); |
| 240 | extern float4 __attribute__((overloadable)) hypot(float4, float4); |
| 241 | extern float8 __attribute__((overloadable)) hypot(float8, float8); |
| 242 | extern float16 __attribute__((overloadable)) hypot(float16, float16); |
| 243 | |
| 244 | extern int __attribute__((overloadable)) ilogb(float); |
| 245 | extern int2 __attribute__((overloadable)) ilogb(float2); |
| 246 | extern int3 __attribute__((overloadable)) ilogb(float3); |
| 247 | extern int4 __attribute__((overloadable)) ilogb(float4); |
| 248 | extern int8 __attribute__((overloadable)) ilogb(float8); |
| 249 | extern int16 __attribute__((overloadable)) ilogb(float16); |
| 250 | |
| 251 | extern float __attribute__((overloadable)) ldexp(float, int); |
| 252 | extern float2 __attribute__((overloadable)) ldexp(float2, int2); |
| 253 | extern float3 __attribute__((overloadable)) ldexp(float3, int3); |
| 254 | extern float4 __attribute__((overloadable)) ldexp(float4, int4); |
| 255 | extern float8 __attribute__((overloadable)) ldexp(float8, int8); |
| 256 | extern float16 __attribute__((overloadable)) ldexp(float16, int16); |
| 257 | extern float2 __attribute__((overloadable)) ldexp(float2, int); |
| 258 | extern float3 __attribute__((overloadable)) ldexp(float3, int); |
| 259 | extern float4 __attribute__((overloadable)) ldexp(float4, int); |
| 260 | extern float8 __attribute__((overloadable)) ldexp(float8, int); |
| 261 | extern float16 __attribute__((overloadable)) ldexp(float16, int); |
| 262 | |
| 263 | extern float __attribute__((overloadable)) lgamma(float); |
| 264 | extern float2 __attribute__((overloadable)) lgamma(float2); |
| 265 | extern float3 __attribute__((overloadable)) lgamma(float3); |
| 266 | extern float4 __attribute__((overloadable)) lgamma(float4); |
| 267 | extern float8 __attribute__((overloadable)) lgamma(float8); |
| 268 | extern float16 __attribute__((overloadable)) lgamma(float16); |
| 269 | extern float __attribute__((overloadable)) lgamma(float, float *); |
| 270 | extern float2 __attribute__((overloadable)) lgamma(float2, float2 *); |
| 271 | extern float3 __attribute__((overloadable)) lgamma(float3, float3 *); |
| 272 | extern float4 __attribute__((overloadable)) lgamma(float4, float4 *); |
| 273 | extern float8 __attribute__((overloadable)) lgamma(float8, float8 *); |
| 274 | extern float16 __attribute__((overloadable)) lgamma(float16, float16 *); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 275 | |
| 276 | extern float __attribute__((overloadable)) log(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 277 | extern float2 __attribute__((overloadable)) log(float2); |
| 278 | extern float3 __attribute__((overloadable)) log(float3); |
| 279 | extern float4 __attribute__((overloadable)) log(float4); |
| 280 | extern float8 __attribute__((overloadable)) log(float8); |
| 281 | extern float16 __attribute__((overloadable)) log(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 282 | |
| 283 | extern float __attribute__((overloadable)) log2(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 284 | extern float2 __attribute__((overloadable)) log2(float2); |
| 285 | extern float3 __attribute__((overloadable)) log2(float3); |
| 286 | extern float4 __attribute__((overloadable)) log2(float4); |
| 287 | extern float8 __attribute__((overloadable)) log2(float8); |
| 288 | extern float16 __attribute__((overloadable)) log2(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 289 | |
| 290 | extern float __attribute__((overloadable)) log10(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 291 | extern float2 __attribute__((overloadable)) log10(float2); |
| 292 | extern float3 __attribute__((overloadable)) log10(float3); |
| 293 | extern float4 __attribute__((overloadable)) log10(float4); |
| 294 | extern float8 __attribute__((overloadable)) log10(float8); |
| 295 | extern float16 __attribute__((overloadable)) log10(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 296 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 297 | extern float __attribute__((overloadable)) log1p(float); |
| 298 | extern float2 __attribute__((overloadable)) log1p(float2); |
| 299 | extern float3 __attribute__((overloadable)) log1p(float3); |
| 300 | extern float4 __attribute__((overloadable)) log1p(float4); |
| 301 | extern float8 __attribute__((overloadable)) log1p(float8); |
| 302 | extern float16 __attribute__((overloadable)) log1p(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 303 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 304 | extern float __attribute__((overloadable)) logb(float); |
| 305 | extern float2 __attribute__((overloadable)) logb(float2); |
| 306 | extern float3 __attribute__((overloadable)) logb(float3); |
| 307 | extern float4 __attribute__((overloadable)) logb(float4); |
| 308 | extern float8 __attribute__((overloadable)) logb(float8); |
| 309 | extern float16 __attribute__((overloadable)) logb(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 310 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 311 | extern float __attribute__((overloadable)) mad(float, float, float); |
| 312 | extern float2 __attribute__((overloadable)) mad(float2, float2, float2); |
| 313 | extern float3 __attribute__((overloadable)) mad(float3, float3, float3); |
| 314 | extern float4 __attribute__((overloadable)) mad(float4, float4, float4); |
| 315 | extern float8 __attribute__((overloadable)) mad(float8, float8, float8); |
| 316 | extern float16 __attribute__((overloadable)) mad(float16, float16, float16); |
| 317 | |
| 318 | extern float __attribute__((overloadable)) modf(float, float *); |
| 319 | extern float2 __attribute__((overloadable)) modf(float2, float2 *); |
| 320 | extern float3 __attribute__((overloadable)) modf(float3, float3 *); |
| 321 | extern float4 __attribute__((overloadable)) modf(float4, float4 *); |
| 322 | extern float8 __attribute__((overloadable)) modf(float8, float8 *); |
| 323 | extern float16 __attribute__((overloadable)) modf(float16, float16 *); |
| 324 | |
| 325 | extern float __attribute__((overloadable)) nan(uint); |
| 326 | extern float2 __attribute__((overloadable)) nan(uint2); |
| 327 | extern float3 __attribute__((overloadable)) nan(uint3); |
| 328 | extern float4 __attribute__((overloadable)) nan(uint4); |
| 329 | extern float8 __attribute__((overloadable)) nan(uint8); |
| 330 | extern float16 __attribute__((overloadable)) nan(uint16); |
| 331 | |
| 332 | extern float __attribute__((overloadable)) nextafter(float, float); |
| 333 | extern float2 __attribute__((overloadable)) nextafter(float2, float2); |
| 334 | extern float3 __attribute__((overloadable)) nextafter(float3, float3); |
| 335 | extern float4 __attribute__((overloadable)) nextafter(float4, float4); |
| 336 | extern float8 __attribute__((overloadable)) nextafter(float8, float8); |
| 337 | extern float16 __attribute__((overloadable)) nextafter(float16, float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 338 | |
| 339 | extern float __attribute__((overloadable)) pow(float, float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 340 | extern float2 __attribute__((overloadable)) pow(float2, float2); |
| 341 | extern float3 __attribute__((overloadable)) pow(float3, float3); |
| 342 | extern float4 __attribute__((overloadable)) pow(float4, float4); |
| 343 | extern float8 __attribute__((overloadable)) pow(float8, float8); |
| 344 | extern float16 __attribute__((overloadable)) pow(float16, float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 345 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 346 | extern float __attribute__((overloadable)) pown(float, int); |
| 347 | extern float2 __attribute__((overloadable)) pown(float2, int2); |
| 348 | extern float3 __attribute__((overloadable)) pown(float3, int3); |
| 349 | extern float4 __attribute__((overloadable)) pown(float4, int4); |
| 350 | extern float8 __attribute__((overloadable)) pown(float8, int8); |
| 351 | extern float16 __attribute__((overloadable)) pown(float16, int16); |
| 352 | |
| 353 | extern float __attribute__((overloadable)) powr(float, float); |
| 354 | extern float2 __attribute__((overloadable)) powr(float2, float2); |
| 355 | extern float3 __attribute__((overloadable)) powr(float3, float3); |
| 356 | extern float4 __attribute__((overloadable)) powr(float4, float4); |
| 357 | extern float8 __attribute__((overloadable)) powr(float8, float8); |
| 358 | extern float16 __attribute__((overloadable)) powr(float16, float16); |
| 359 | |
| 360 | extern float __attribute__((overloadable)) remainder(float, float); |
| 361 | extern float2 __attribute__((overloadable)) remainder(float2, float2); |
| 362 | extern float3 __attribute__((overloadable)) remainder(float3, float3); |
| 363 | extern float4 __attribute__((overloadable)) remainder(float4, float4); |
| 364 | extern float8 __attribute__((overloadable)) remainder(float8, float8); |
| 365 | extern float16 __attribute__((overloadable)) remainder(float16, float16); |
| 366 | |
| 367 | extern float __attribute__((overloadable)) remquo(float, float, float *); |
| 368 | extern float2 __attribute__((overloadable)) remquo(float2, float2, float2 *); |
| 369 | extern float3 __attribute__((overloadable)) remquo(float3, float3, float3 *); |
| 370 | extern float4 __attribute__((overloadable)) remquo(float4, float4, float4 *); |
| 371 | extern float8 __attribute__((overloadable)) remquo(float8, float8, float8 *); |
| 372 | extern float16 __attribute__((overloadable)) remquo(float16, float16, float16 *); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 373 | |
| 374 | extern float __attribute__((overloadable)) rint(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 375 | extern float2 __attribute__((overloadable)) rint(float2); |
| 376 | extern float3 __attribute__((overloadable)) rint(float3); |
| 377 | extern float4 __attribute__((overloadable)) rint(float4); |
| 378 | extern float8 __attribute__((overloadable)) rint(float8); |
| 379 | extern float16 __attribute__((overloadable)) rint(float16); |
| 380 | |
| 381 | extern float __attribute__((overloadable)) rootn(float, int); |
| 382 | extern float2 __attribute__((overloadable)) rootn(float2, int2); |
| 383 | extern float3 __attribute__((overloadable)) rootn(float3, int3); |
| 384 | extern float4 __attribute__((overloadable)) rootn(float4, int4); |
| 385 | extern float8 __attribute__((overloadable)) rootn(float8, int8); |
| 386 | extern float16 __attribute__((overloadable)) rootn(float16, int16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 387 | |
| 388 | extern float __attribute__((overloadable)) round(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 389 | extern float2 __attribute__((overloadable)) round(float2); |
| 390 | extern float3 __attribute__((overloadable)) round(float3); |
| 391 | extern float4 __attribute__((overloadable)) round(float4); |
| 392 | extern float8 __attribute__((overloadable)) round(float8); |
| 393 | extern float16 __attribute__((overloadable)) round(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 394 | |
| 395 | extern float __attribute__((overloadable)) rsqrt(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 396 | extern float2 __attribute__((overloadable)) rsqrt(float2); |
| 397 | extern float3 __attribute__((overloadable)) rsqrt(float3); |
| 398 | extern float4 __attribute__((overloadable)) rsqrt(float4); |
| 399 | extern float8 __attribute__((overloadable)) rsqrt(float8); |
| 400 | extern float16 __attribute__((overloadable)) rsqrt(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 401 | |
| 402 | extern float __attribute__((overloadable)) sin(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 403 | extern float2 __attribute__((overloadable)) sin(float2); |
| 404 | extern float3 __attribute__((overloadable)) sin(float3); |
| 405 | extern float4 __attribute__((overloadable)) sin(float4); |
| 406 | extern float8 __attribute__((overloadable)) sin(float8); |
| 407 | extern float16 __attribute__((overloadable)) sin(float16); |
| 408 | |
| 409 | extern float __attribute__((overloadable)) sincos(float, float *); |
| 410 | extern float2 __attribute__((overloadable)) sincos(float2, float2 *); |
| 411 | extern float3 __attribute__((overloadable)) sincos(float3, float3 *); |
| 412 | extern float4 __attribute__((overloadable)) sincos(float4, float4 *); |
| 413 | extern float8 __attribute__((overloadable)) sincos(float8, float8 *); |
| 414 | extern float16 __attribute__((overloadable)) sincos(float16, float16 *); |
| 415 | |
| 416 | extern float __attribute__((overloadable)) sinh(float); |
| 417 | extern float2 __attribute__((overloadable)) sinh(float2); |
| 418 | extern float3 __attribute__((overloadable)) sinh(float3); |
| 419 | extern float4 __attribute__((overloadable)) sinh(float4); |
| 420 | extern float8 __attribute__((overloadable)) sinh(float8); |
| 421 | extern float16 __attribute__((overloadable)) sinh(float16); |
| 422 | |
| 423 | extern float __attribute__((overloadable)) sinpi(float); |
| 424 | extern float2 __attribute__((overloadable)) sinpi(float2); |
| 425 | extern float3 __attribute__((overloadable)) sinpi(float3); |
| 426 | extern float4 __attribute__((overloadable)) sinpi(float4); |
| 427 | extern float8 __attribute__((overloadable)) sinpi(float8); |
| 428 | extern float16 __attribute__((overloadable)) sinpi(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 429 | |
| 430 | extern float __attribute__((overloadable)) sqrt(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 431 | extern float2 __attribute__((overloadable)) sqrt(float2); |
| 432 | extern float3 __attribute__((overloadable)) sqrt(float3); |
| 433 | extern float4 __attribute__((overloadable)) sqrt(float4); |
| 434 | extern float8 __attribute__((overloadable)) sqrt(float8); |
| 435 | extern float16 __attribute__((overloadable)) sqrt(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 436 | |
| 437 | extern float __attribute__((overloadable)) tan(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 438 | extern float2 __attribute__((overloadable)) tan(float2); |
| 439 | extern float3 __attribute__((overloadable)) tan(float3); |
| 440 | extern float4 __attribute__((overloadable)) tan(float4); |
| 441 | extern float8 __attribute__((overloadable)) tan(float8); |
| 442 | extern float16 __attribute__((overloadable)) tan(float16); |
| 443 | |
| 444 | extern float __attribute__((overloadable)) tanh(float); |
| 445 | extern float2 __attribute__((overloadable)) tanh(float2); |
| 446 | extern float3 __attribute__((overloadable)) tanh(float3); |
| 447 | extern float4 __attribute__((overloadable)) tanh(float4); |
| 448 | extern float8 __attribute__((overloadable)) tanh(float8); |
| 449 | extern float16 __attribute__((overloadable)) tanh(float16); |
| 450 | |
| 451 | extern float __attribute__((overloadable)) tanpi(float); |
| 452 | extern float2 __attribute__((overloadable)) tanpi(float2); |
| 453 | extern float3 __attribute__((overloadable)) tanpi(float3); |
| 454 | extern float4 __attribute__((overloadable)) tanpi(float4); |
| 455 | extern float8 __attribute__((overloadable)) tanpi(float8); |
| 456 | extern float16 __attribute__((overloadable)) tanpi(float16); |
| 457 | |
| 458 | extern float __attribute__((overloadable)) tgamma(float); |
| 459 | extern float2 __attribute__((overloadable)) tgamma(float2); |
| 460 | extern float3 __attribute__((overloadable)) tgamma(float3); |
| 461 | extern float4 __attribute__((overloadable)) tgamma(float4); |
| 462 | extern float8 __attribute__((overloadable)) tgamma(float8); |
| 463 | extern float16 __attribute__((overloadable)) tgamma(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 464 | |
| 465 | extern float __attribute__((overloadable)) trunc(float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 466 | extern float2 __attribute__((overloadable)) trunc(float2); |
| 467 | extern float3 __attribute__((overloadable)) trunc(float3); |
| 468 | extern float4 __attribute__((overloadable)) trunc(float4); |
| 469 | extern float8 __attribute__((overloadable)) trunc(float8); |
| 470 | extern float16 __attribute__((overloadable)) trunc(float16); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 471 | |
| 472 | |
| 473 | |
| 474 | |
| 475 | |
| 476 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 477 | // Int ops (partial), 6.11.3 |
| 478 | extern uint __attribute__((overloadable)) abs(int); |
| 479 | extern ushort __attribute__((overloadable)) abs(short); |
| 480 | extern uchar __attribute__((overloadable)) abs(char); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 481 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 482 | extern uint __attribute__((overloadable)) clz(uint); |
| 483 | extern int __attribute__((overloadable)) clz(int); |
| 484 | extern ushort __attribute__((overloadable)) clz(ushort); |
| 485 | extern short __attribute__((overloadable)) clz(short); |
| 486 | extern uchar __attribute__((overloadable)) clz(uchar); |
| 487 | extern char __attribute__((overloadable)) clz(char); |
| 488 | |
| 489 | extern uint __attribute__((overloadable)) min(uint); |
| 490 | extern int __attribute__((overloadable)) min(int); |
| 491 | extern ushort __attribute__((overloadable)) min(ushort); |
| 492 | extern short __attribute__((overloadable)) min(short); |
| 493 | extern uchar __attribute__((overloadable)) min(uchar); |
| 494 | extern char __attribute__((overloadable)) min(char); |
| 495 | |
| 496 | extern uint __attribute__((overloadable)) max(uint); |
| 497 | extern int __attribute__((overloadable)) max(int); |
| 498 | extern ushort __attribute__((overloadable)) max(ushort); |
| 499 | extern short __attribute__((overloadable)) max(short); |
| 500 | extern uchar __attribute__((overloadable)) max(uchar); |
| 501 | extern char __attribute__((overloadable)) max(char); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 502 | |
| 503 | |
| 504 | |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 505 | |
| 506 | // 6.11.4 |
| 507 | |
| 508 | extern float __attribute__((overloadable)) clamp(float, float, float); |
| 509 | extern float2 __attribute__((overloadable)) clamp(float2, float2, float2); |
| 510 | extern float3 __attribute__((overloadable)) clamp(float3, float3, float3); |
| 511 | extern float4 __attribute__((overloadable)) clamp(float4, float4, float4); |
| 512 | extern float8 __attribute__((overloadable)) clamp(float8, float8, float8); |
| 513 | extern float16 __attribute__((overloadable)) clamp(float16, float16, float16); |
| 514 | extern float2 __attribute__((overloadable)) clamp(float2, float, float); |
| 515 | extern float3 __attribute__((overloadable)) clamp(float3, float, float); |
| 516 | extern float4 __attribute__((overloadable)) clamp(float4, float, float); |
| 517 | extern float8 __attribute__((overloadable)) clamp(float8, float, float); |
| 518 | extern float16 __attribute__((overloadable)) clamp(float16, float, float); |
| 519 | |
| 520 | extern float __attribute__((overloadable)) degrees(float); |
| 521 | extern float2 __attribute__((overloadable)) degrees(float2); |
| 522 | extern float3 __attribute__((overloadable)) degrees(float3); |
| 523 | extern float4 __attribute__((overloadable)) degrees(float4); |
| 524 | extern float8 __attribute__((overloadable)) degrees(float8); |
| 525 | extern float16 __attribute__((overloadable)) degrees(float16); |
| 526 | |
| 527 | extern float __attribute__((overloadable)) max(float, float); |
| 528 | extern float2 __attribute__((overloadable)) max(float2, float2); |
| 529 | extern float3 __attribute__((overloadable)) max(float3, float3); |
| 530 | extern float4 __attribute__((overloadable)) max(float4, float4); |
| 531 | extern float8 __attribute__((overloadable)) max(float8, float8); |
| 532 | extern float16 __attribute__((overloadable)) max(float16, float16); |
| 533 | extern float2 __attribute__((overloadable)) max(float2, float); |
| 534 | extern float3 __attribute__((overloadable)) max(float3, float); |
| 535 | extern float4 __attribute__((overloadable)) max(float4, float); |
| 536 | extern float8 __attribute__((overloadable)) max(float8, float); |
| 537 | extern float16 __attribute__((overloadable)) max(float16, float); |
| 538 | |
| 539 | extern float __attribute__((overloadable)) min(float, float); |
| 540 | extern float2 __attribute__((overloadable)) min(float2, float2); |
| 541 | extern float3 __attribute__((overloadable)) min(float3, float3); |
| 542 | extern float4 __attribute__((overloadable)) min(float4, float4); |
| 543 | extern float8 __attribute__((overloadable)) min(float8, float8); |
| 544 | extern float16 __attribute__((overloadable)) min(float16, float16); |
| 545 | extern float2 __attribute__((overloadable)) min(float2, float); |
| 546 | extern float3 __attribute__((overloadable)) min(float3, float); |
| 547 | extern float4 __attribute__((overloadable)) min(float4, float); |
| 548 | extern float8 __attribute__((overloadable)) min(float8, float); |
| 549 | extern float16 __attribute__((overloadable)) min(float16, float); |
| 550 | |
| 551 | extern float __attribute__((overloadable)) mix(float, float, float); |
| 552 | extern float2 __attribute__((overloadable)) mix(float2, float2, float2); |
| 553 | extern float3 __attribute__((overloadable)) mix(float3, float3, float3); |
| 554 | extern float4 __attribute__((overloadable)) mix(float4, float4, float4); |
| 555 | extern float8 __attribute__((overloadable)) mix(float8, float8, float8); |
| 556 | extern float16 __attribute__((overloadable)) mix(float16, float16, float16); |
| 557 | extern float2 __attribute__((overloadable)) mix(float2, float2, float); |
| 558 | extern float3 __attribute__((overloadable)) mix(float3, float3, float); |
| 559 | extern float4 __attribute__((overloadable)) mix(float4, float4, float); |
| 560 | extern float8 __attribute__((overloadable)) mix(float8, float8, float); |
| 561 | extern float16 __attribute__((overloadable)) mix(float16, float16, float); |
| 562 | |
| 563 | extern float __attribute__((overloadable)) radians(float); |
| 564 | extern float2 __attribute__((overloadable)) radians(float2); |
| 565 | extern float3 __attribute__((overloadable)) radians(float3); |
| 566 | extern float4 __attribute__((overloadable)) radians(float4); |
| 567 | extern float8 __attribute__((overloadable)) radians(float8); |
| 568 | extern float16 __attribute__((overloadable)) radians(float16); |
| 569 | |
| 570 | extern float __attribute__((overloadable)) step(float, float); |
| 571 | extern float2 __attribute__((overloadable)) step(float2, float2); |
| 572 | extern float3 __attribute__((overloadable)) step(float3, float3); |
| 573 | extern float4 __attribute__((overloadable)) step(float4, float4); |
| 574 | extern float8 __attribute__((overloadable)) step(float8, float8); |
| 575 | extern float16 __attribute__((overloadable)) step(float16, float16); |
| 576 | extern float2 __attribute__((overloadable)) step(float, float2); |
| 577 | extern float3 __attribute__((overloadable)) step(float, float3); |
| 578 | extern float4 __attribute__((overloadable)) step(float, float4); |
| 579 | extern float8 __attribute__((overloadable)) step(float, float8); |
| 580 | extern float16 __attribute__((overloadable)) step(float, float16); |
| 581 | |
| 582 | extern float __attribute__((overloadable)) smoothstep(float, float, float); |
| 583 | extern float2 __attribute__((overloadable)) smoothstep(float2, float2, float2); |
| 584 | extern float3 __attribute__((overloadable)) smoothstep(float3, float3, float3); |
| 585 | extern float4 __attribute__((overloadable)) smoothstep(float4, float4, float4); |
| 586 | extern float8 __attribute__((overloadable)) smoothstep(float8, float8, float8); |
| 587 | extern float16 __attribute__((overloadable)) smoothstep(float16, float16, float16); |
| 588 | extern float2 __attribute__((overloadable)) smoothstep(float, float, float2); |
| 589 | extern float3 __attribute__((overloadable)) smoothstep(float, float, float3); |
| 590 | extern float4 __attribute__((overloadable)) smoothstep(float, float, float4); |
| 591 | extern float8 __attribute__((overloadable)) smoothstep(float, float, float8); |
| 592 | extern float16 __attribute__((overloadable)) smoothstep(float, float, float16); |
| 593 | |
| 594 | extern float __attribute__((overloadable)) sign(float); |
| 595 | extern float2 __attribute__((overloadable)) sign(float2); |
| 596 | extern float3 __attribute__((overloadable)) sign(float3); |
| 597 | extern float4 __attribute__((overloadable)) sign(float4); |
| 598 | extern float8 __attribute__((overloadable)) sign(float8); |
| 599 | extern float16 __attribute__((overloadable)) sign(float16); |
| 600 | |
| 601 | // 6.11.5 |
| 602 | extern float3 __attribute__((overloadable)) cross(float2, float2); |
| 603 | extern float3 __attribute__((overloadable)) cross(float3, float3); |
| 604 | extern float4 __attribute__((overloadable)) cross(float4, float4); |
| 605 | |
| 606 | extern float __attribute__((overloadable)) dot(float, float); |
| 607 | extern float __attribute__((overloadable)) dot(float2, float2); |
| 608 | extern float __attribute__((overloadable)) dot(float3, float3); |
| 609 | extern float __attribute__((overloadable)) dot(float4, float4); |
| 610 | |
| 611 | extern float __attribute__((overloadable)) distance(float, float); |
| 612 | extern float __attribute__((overloadable)) distance(float2, float2); |
| 613 | extern float __attribute__((overloadable)) distance(float3, float3); |
| 614 | extern float __attribute__((overloadable)) distance(float4, float4); |
| 615 | |
| 616 | extern float __attribute__((overloadable)) length(float); |
| 617 | extern float __attribute__((overloadable)) length(float2); |
| 618 | extern float __attribute__((overloadable)) length(float3); |
| 619 | extern float __attribute__((overloadable)) length(float4); |
| 620 | |
| 621 | extern float __attribute__((overloadable)) normalize(float); |
| 622 | extern float2 __attribute__((overloadable)) normalize(float2); |
| 623 | extern float3 __attribute__((overloadable)) normalize(float3); |
| 624 | extern float4 __attribute__((overloadable)) normalize(float4); |
| 625 | |
| 626 | |
| 627 | // RS specific functions |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 628 | extern float randf(float); |
| 629 | extern float randf2(float, float); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 630 | extern float mapf(float, float, float, float, float); |
Jason Sams | be36bf3 | 2010-05-11 14:03:58 -0700 | [diff] [blame] | 631 | |
| 632 | extern float __attribute__((overloadable)) frac(float); |
| 633 | |
| 634 | extern void debugP(int, void *); |
| 635 | extern void debugPi(int, int); |
| 636 | extern void debugPf(int, float); |
| 637 | extern void debugF(const char *, float); |
| 638 | extern void debugI32(const char *, int); |
| 639 | extern void debugHexI32(const char *, int); |
| 640 | |
| 641 | extern void matrixLoadIdentity(void *mat); |
| 642 | extern void matrixLoadFloat(void *mat, const float *f); |
| 643 | extern void matrixLoadMat(void *mat, const void *newmat); |
| 644 | extern void matrixLoadRotate(void *mat, float rot, float x, float y, float z); |
| 645 | extern void matrixLoadScale(void *mat, float x, float y, float z); |
| 646 | extern void matrixLoadTranslate(void *mat, float x, float y, float z); |
| 647 | extern void matrixLoadMultiply(void *mat, const void *lhs, const void *rhs); |
| 648 | extern void matrixMultiply(void *mat, const void *rhs); |
| 649 | extern void matrixRotate(void *mat, float rot, float x, float y, float z); |
| 650 | extern void matrixScale(void *mat, float x, float y, float z); |
| 651 | extern void matrixTranslate(void *mat, float x, float y, float z); |
| 652 | |
Jason Sams | ce92d4b | 2010-05-17 14:55:34 -0700 | [diff] [blame^] | 653 | extern rs_allocation rsGetAllocation(const void *); |
Jason Sams | 717e34a | 2010-03-16 15:35:57 -0700 | [diff] [blame] | 654 | |