1 /* 2 * Copyright (C) 2016 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // Don't edit this file! It is auto-generated by frameworks/rs/api/generate.sh. 18 19 #pragma version(1) 20 #pragma rs java_package_name(android.renderscript.cts) 21 22 rs_allocation gAllocInDenominator; 23 24 float __attribute__((kernel)) testAtan2piFloatFloatFloat(float inNumerator, unsigned int x) { 25 float inDenominator = rsGetElementAt_float(gAllocInDenominator, x); 26 return atan2pi(inNumerator, inDenominator); 27 } 28 29 float2 __attribute__((kernel)) testAtan2piFloat2Float2Float2(float2 inNumerator, unsigned int x) { 30 float2 inDenominator = rsGetElementAt_float2(gAllocInDenominator, x); 31 return atan2pi(inNumerator, inDenominator); 32 } 33 34 float3 __attribute__((kernel)) testAtan2piFloat3Float3Float3(float3 inNumerator, unsigned int x) { 35 float3 inDenominator = rsGetElementAt_float3(gAllocInDenominator, x); 36 return atan2pi(inNumerator, inDenominator); 37 } 38 39 float4 __attribute__((kernel)) testAtan2piFloat4Float4Float4(float4 inNumerator, unsigned int x) { 40 float4 inDenominator = rsGetElementAt_float4(gAllocInDenominator, x); 41 return atan2pi(inNumerator, inDenominator); 42 } 43 44 half __attribute__((kernel)) testAtan2piHalfHalfHalf(half inNumerator, unsigned int x) { 45 half inDenominator = rsGetElementAt_half(gAllocInDenominator, x); 46 return atan2pi(inNumerator, inDenominator); 47 } 48 49 half2 __attribute__((kernel)) testAtan2piHalf2Half2Half2(half2 inNumerator, unsigned int x) { 50 half2 inDenominator = rsGetElementAt_half2(gAllocInDenominator, x); 51 return atan2pi(inNumerator, inDenominator); 52 } 53 54 half3 __attribute__((kernel)) testAtan2piHalf3Half3Half3(half3 inNumerator, unsigned int x) { 55 half3 inDenominator = rsGetElementAt_half3(gAllocInDenominator, x); 56 return atan2pi(inNumerator, inDenominator); 57 } 58 59 half4 __attribute__((kernel)) testAtan2piHalf4Half4Half4(half4 inNumerator, unsigned int x) { 60 half4 inDenominator = rsGetElementAt_half4(gAllocInDenominator, x); 61 return atan2pi(inNumerator, inDenominator); 62 } 63