Home
last modified time | relevance | path

Searched refs:half (Results 1 – 25 of 112) sorted by relevance

12345

/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dfloat16_arithmetic.rscript6 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 …]
Dfloat16_gen.c30 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()
Dreduce.rscript21 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/
DTestDistance.rscript44 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) {
DTestDot.rscript44 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) {
DTestNativeDistance.rscript44 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) {
DTestLength.rscript39 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) {
DTestNativeLength.rscript39 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) {
DTestStep.rscript44 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) {
DTestFmax.rscript44 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);
DTestFmin.rscript44 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);
DTestFract.rscript68 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) {
DTestMix.rscript49 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);
DTestSincos.rscript52 half __attribute__((kernel)) testSincosHalfHalfHalf(half inV, unsigned int x) {
53 half outCos = 0;
54 half out = sincos(inV, &outCos);
DTestFma.rscript49 half __attribute__((kernel)) testFmaHalfHalfHalfHalf(half inMultiplicand1, unsigned int x) {
50 half inMultiplicand2 = rsGetElementAt_half(gAllocInMultiplicand2, x);
51 half inOffset = rsGetElementAt_half(gAllocInOffset, x);
DTestMad.rscript49 half __attribute__((kernel)) testMadHalfHalfHalfHalf(half inMultiplicand1, unsigned int x) {
50 half inMultiplicand2 = rsGetElementAt_half(gAllocInMultiplicand2, x);
51 half inOffset = rsGetElementAt_half(gAllocInOffset, x);
DTestNativeSincos.rscript52 half __attribute__((kernel)) testNativeSincosHalfHalfHalf(half inV, unsigned int x) {
53 half outCos = 0;
54 half out = native_sincos(inV, &outCos);
DTestFdim.rscript44 half __attribute__((kernel)) testFdimHalfHalfHalf(half inA, unsigned int x) {
45 half inB = rsGetElementAt_half(gAllocInB, x);
DTestNativePowr.rscript44 half __attribute__((kernel)) testNativePowrHalfHalfHalf(half inBase, unsigned int x) {
45 half inExponent = rsGetElementAt_half(gAllocInExponent, x);
DTestNativeAtan2pi.rscript44 half __attribute__((kernel)) testNativeAtan2piHalfHalfHalf(half inNumerator, unsigned int x) {
45 half inDenominator = rsGetElementAt_half(gAllocInDenominator, x);
DTestAtan2pi.rscript44 half __attribute__((kernel)) testAtan2piHalfHalfHalf(half inNumerator, unsigned int x) {
45 half inDenominator = rsGetElementAt_half(gAllocInDenominator, x);
DTestAtan2.rscript44 half __attribute__((kernel)) testAtan2HalfHalfHalf(half inNumerator, unsigned int x) {
45 half inDenominator = rsGetElementAt_half(gAllocInDenominator, x);
DTestCopysign.rscript44 half __attribute__((kernel)) testCopysignHalfHalfHalf(half inMagnitudeValue, unsigned int x) {
45 half inSignValue = rsGetElementAt_half(gAllocInSignValue, x);
DTestPow.rscript44 half __attribute__((kernel)) testPowHalfHalfHalf(half inBase, unsigned int x) {
45 half inExponent = rsGetElementAt_half(gAllocInExponent, x);
DTestRemainder.rscript44 half __attribute__((kernel)) testRemainderHalfHalfHalf(half inNumerator, unsigned int x) {
45 half inDenominator = rsGetElementAt_half(gAllocInDenominator, x);

12345