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