diff options
Diffstat (limited to 'tests/src/android/renderscript/cts/fma_f32.rs')
-rw-r--r-- | tests/src/android/renderscript/cts/fma_f32.rs | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/tests/src/android/renderscript/cts/fma_f32.rs b/tests/src/android/renderscript/cts/fma_f32.rs index fba5202f64c..36257a5baee 100644 --- a/tests/src/android/renderscript/cts/fma_f32.rs +++ b/tests/src/android/renderscript/cts/fma_f32.rs @@ -7,6 +7,36 @@ typedef struct Floats { float fc; } Floats; -void root(const Floats *in, float *out) { +void fma_f32_1(const Floats *in, float *out) { *out = fma(in->fa, in->fb, in->fc); -}
\ No newline at end of file +} + +typedef struct Floats2 { + float2 fa; + float2 fb; + float2 fc; +} Floats2; + +void fma_f32_2(const Floats2 *in, float2 *out) { + *out = fma(in->fa, in->fb, in->fc); +} + +typedef struct Floats3 { + float3 fa; + float3 fb; + float3 fc; +} Floats3; + +void fma_f32_3(const Floats3 *in, float3 *out) { + *out = fma(in->fa, in->fb, in->fc); +} + +typedef struct Floats4 { + float4 fa; + float4 fb; + float4 fc; +} Floats4; + +void fma_f32_4(const Floats4 *in, float4 *out) { + *out = fma(in->fa, in->fb, in->fc); +} |