/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | float16_arithmetic.rscript | 6 half RS_KERNEL add(int x, int y) { 7 half a = rsGetElementAt_half(gInput, x); 8 half b = rsGetElementAt_half(gInput, y); 12 half RS_KERNEL sub(int x, int y) { 13 half a = rsGetElementAt_half(gInput, x); 14 half b = rsGetElementAt_half(gInput, y); 18 half RS_KERNEL mul(int x, int y) { 19 half a = rsGetElementAt_half(gInput, x); 20 half b = rsGetElementAt_half(gInput, y); 24 half RS_KERNEL div(int x, int y) { [all …]
|
D | float16_gen.c | 30 typedef __fp16 half; typedef 111 half h = *(half *) &s; in half2float() 117 half h = (half) f; in float2half() 130 half hValue = *(half *) &value; in getErrorBar() 131 half ulp; in getErrorBar() 144 ulp = *(half *) &ulpInShort; in getErrorBar() 154 half hA = *(half *) &a; in getErrorBar() 155 half hB = *(half *) &b; in getErrorBar() 160 half lb = hValue - tolerance * ulp; in getErrorBar() 161 half ub = hValue + tolerance * ulp; in getErrorBar()
|
D | reduce.rscript | 21 static half negInfHalf, posInfHalf; 23 // At present, no support for global of type half, or for invokable 24 // taking an argument of type half. 25 static void translate(half *tgt, const short src) { 26 for (int i = 0; i < sizeof(half); ++i) 92 // finds min and max half values (not their locations) 94 // tests half input and half2 result 103 half min, max; 111 static void fMMHalfAccumulator(MinAndMaxHalf *accum, half in) { 128 // .. invokable (non reduction) form (no support for half computations in Java) [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
D | TestStep.rscript | 44 half __attribute__((kernel)) testStepHalfHalfHalf(half inEdge, unsigned int x) { 45 half inV = rsGetElementAt_half(gAllocInV, x); 80 half inV = rsGetElementAt_half(gAllocInV, x); 85 half inV = rsGetElementAt_half(gAllocInV, x); 90 half inV = rsGetElementAt_half(gAllocInV, x); 109 half2 __attribute__((kernel)) testStepHalfHalf2Half2(half inEdge, unsigned int x) { 114 half3 __attribute__((kernel)) testStepHalfHalf3Half3(half inEdge, unsigned int x) { 119 half4 __attribute__((kernel)) testStepHalfHalf4Half4(half inEdge, unsigned int x) {
|
D | TestNativeDistance.rscript | 44 half __attribute__((kernel)) testNativeDistanceHalfHalfHalf(half inLeftVector, unsigned int x) { 45 half inRightVector = rsGetElementAt_half(gAllocInRightVector, x); 49 half __attribute__((kernel)) testNativeDistanceHalf2Half2Half(half2 inLeftVector, unsigned int x) { 54 half __attribute__((kernel)) testNativeDistanceHalf3Half3Half(half3 inLeftVector, unsigned int x) { 59 half __attribute__((kernel)) testNativeDistanceHalf4Half4Half(half4 inLeftVector, unsigned int x) {
|
D | TestDot.rscript | 44 half __attribute__((kernel)) testDotHalfHalfHalf(half inLeftVector, unsigned int x) { 45 half inRightVector = rsGetElementAt_half(gAllocInRightVector, x); 49 half __attribute__((kernel)) testDotHalf2Half2Half(half2 inLeftVector, unsigned int x) { 54 half __attribute__((kernel)) testDotHalf3Half3Half(half3 inLeftVector, unsigned int x) { 59 half __attribute__((kernel)) testDotHalf4Half4Half(half4 inLeftVector, unsigned int x) {
|
D | TestDistance.rscript | 44 half __attribute__((kernel)) testDistanceHalfHalfHalf(half inLeftVector, unsigned int x) { 45 half inRightVector = rsGetElementAt_half(gAllocInRightVector, x); 49 half __attribute__((kernel)) testDistanceHalf2Half2Half(half2 inLeftVector, unsigned int x) { 54 half __attribute__((kernel)) testDistanceHalf3Half3Half(half3 inLeftVector, unsigned int x) { 59 half __attribute__((kernel)) testDistanceHalf4Half4Half(half4 inLeftVector, unsigned int x) {
|
D | TestNativeLength.rscript | 39 half __attribute__((kernel)) testNativeLengthHalfHalf(half inV) { 43 half __attribute__((kernel)) testNativeLengthHalf2Half(half2 inV) { 47 half __attribute__((kernel)) testNativeLengthHalf3Half(half3 inV) { 51 half __attribute__((kernel)) testNativeLengthHalf4Half(half4 inV) {
|
D | TestLength.rscript | 39 half __attribute__((kernel)) testLengthHalfHalf(half inV) { 43 half __attribute__((kernel)) testLengthHalf2Half(half2 inV) { 47 half __attribute__((kernel)) testLengthHalf3Half(half3 inV) { 51 half __attribute__((kernel)) testLengthHalf4Half(half4 inV) {
|
D | TestMix.rscript | 49 half __attribute__((kernel)) testMixHalfHalfHalfHalf(half inStart, unsigned int x) { 50 half inStop = rsGetElementAt_half(gAllocInStop, x); 51 half inFraction = rsGetElementAt_half(gAllocInFraction, x); 93 half inFraction = rsGetElementAt_half(gAllocInFraction, x); 99 half inFraction = rsGetElementAt_half(gAllocInFraction, x); 105 half inFraction = rsGetElementAt_half(gAllocInFraction, x);
|
D | TestFmax.rscript | 44 half __attribute__((kernel)) testFmaxHalfHalfHalf(half inA, unsigned int x) { 45 half inB = rsGetElementAt_half(gAllocInB, x); 80 half inB = rsGetElementAt_half(gAllocInB, x); 85 half inB = rsGetElementAt_half(gAllocInB, x); 90 half inB = rsGetElementAt_half(gAllocInB, x);
|
D | TestFract.rscript | 68 half __attribute__((kernel)) testFractHalfHalfHalf(half inV, unsigned int x) { 69 half outFloor = 0; 70 half out = fract(inV, &outFloor); 96 half __attribute__((kernel)) testFractHalfHalf(half inV) {
|
D | TestFmin.rscript | 44 half __attribute__((kernel)) testFminHalfHalfHalf(half inA, unsigned int x) { 45 half inB = rsGetElementAt_half(gAllocInB, x); 80 half inB = rsGetElementAt_half(gAllocInB, x); 85 half inB = rsGetElementAt_half(gAllocInB, x); 90 half inB = rsGetElementAt_half(gAllocInB, x);
|
D | TestNativeSincos.rscript | 52 half __attribute__((kernel)) testNativeSincosHalfHalfHalf(half inV, unsigned int x) { 53 half outCos = 0; 54 half out = native_sincos(inV, &outCos);
|
D | TestMad.rscript | 49 half __attribute__((kernel)) testMadHalfHalfHalfHalf(half inMultiplicand1, unsigned int x) { 50 half inMultiplicand2 = rsGetElementAt_half(gAllocInMultiplicand2, x); 51 half inOffset = rsGetElementAt_half(gAllocInOffset, x);
|
D | TestFma.rscript | 49 half __attribute__((kernel)) testFmaHalfHalfHalfHalf(half inMultiplicand1, unsigned int x) { 50 half inMultiplicand2 = rsGetElementAt_half(gAllocInMultiplicand2, x); 51 half inOffset = rsGetElementAt_half(gAllocInOffset, x);
|
D | TestSincos.rscript | 52 half __attribute__((kernel)) testSincosHalfHalfHalf(half inV, unsigned int x) { 53 half outCos = 0; 54 half out = sincos(inV, &outCos);
|
D | TestNativeDivide.rscript | 44 half __attribute__((kernel)) testNativeDivideHalfHalfHalf(half inLeftVector, unsigned int x) { 45 half inRightVector = rsGetElementAt_half(gAllocInRightVector, x);
|
D | TestNativeAtan2pi.rscript | 44 half __attribute__((kernel)) testNativeAtan2piHalfHalfHalf(half inNumerator, unsigned int x) { 45 half inDenominator = rsGetElementAt_half(gAllocInDenominator, x);
|
D | TestAtan2pi.rscript | 44 half __attribute__((kernel)) testAtan2piHalfHalfHalf(half inNumerator, unsigned int x) { 45 half inDenominator = rsGetElementAt_half(gAllocInDenominator, x);
|
D | TestNativePowr.rscript | 44 half __attribute__((kernel)) testNativePowrHalfHalfHalf(half inBase, unsigned int x) { 45 half inExponent = rsGetElementAt_half(gAllocInExponent, x);
|
D | TestPow.rscript | 44 half __attribute__((kernel)) testPowHalfHalfHalf(half inBase, unsigned int x) { 45 half inExponent = rsGetElementAt_half(gAllocInExponent, x);
|
D | TestNativeHypot.rscript | 44 half __attribute__((kernel)) testNativeHypotHalfHalfHalf(half inA, unsigned int x) { 45 half inB = rsGetElementAt_half(gAllocInB, x);
|
D | TestFdim.rscript | 44 half __attribute__((kernel)) testFdimHalfHalfHalf(half inA, unsigned int x) { 45 half inB = rsGetElementAt_half(gAllocInB, x);
|
D | TestHypot.rscript | 44 half __attribute__((kernel)) testHypotHalfHalfHalf(half inA, unsigned int x) { 45 half inB = rsGetElementAt_half(gAllocInB, x);
|