David Butcher | ba4ccf5 | 2013-04-22 12:19:32 +0100 | [diff] [blame] | 1 | #pragma version(1) |
| 2 | #pragma rs java_package_name(android.renderscript.cts) |
| 3 | |
| 4 | typedef struct atan2_f32_in { |
| 5 | float first; |
| 6 | float second; |
| 7 | } input; |
| 8 | |
Stephen Hines | b3d8d4f | 2013-05-02 02:14:50 -0700 | [diff] [blame] | 9 | void atan2_f32_1(const input* in, float* out){ |
| 10 | *out = atan2(in->first, in->second); |
| 11 | } |
| 12 | |
| 13 | typedef struct atan2_f32_2_in { |
| 14 | float2 first; |
| 15 | float2 second; |
| 16 | } input2; |
| 17 | |
| 18 | void atan2_f32_2(const input2* in, float2* out){ |
| 19 | *out = atan2(in->first, in->second); |
| 20 | } |
| 21 | |
| 22 | typedef struct atan2_f32_3_in { |
| 23 | float3 first; |
| 24 | float3 second; |
| 25 | } input3; |
| 26 | |
| 27 | void atan2_f32_3(const input3* in, float3* out){ |
| 28 | *out = atan2(in->first, in->second); |
| 29 | } |
| 30 | |
| 31 | typedef struct atan2_f32_4_in { |
| 32 | float4 first; |
| 33 | float4 second; |
| 34 | } input4; |
| 35 | |
| 36 | void atan2_f32_4(const input4* in, float4* out){ |
David Butcher | ba4ccf5 | 2013-04-22 12:19:32 +0100 | [diff] [blame] | 37 | *out = atan2(in->first, in->second); |
| 38 | } |