44 void test_add_dynamic(
void)
51 for (
int i = 0; i <
ARR_LEN; i++)
62 printf(
"test_intro[test_add_dynamic]:\n");
63 for (
int i = 0; i <
ARR_LEN; i++)
65 printf(
"\tne10_addc_float:\t%f + %f = %f\n", src[i], cst, dst[i]);
73 void test_add_static(
void)
80 for (
int i = 0; i <
ARR_LEN; i++)
89 printf(
"test_intro[test_add_static]:\n");
90 for (
int i = 0; i <
ARR_LEN; i++)
92 printf(
"\tne10_addc_float_c:\t%f + %f = %f\n", src[i], cst, dst_c[i]);
93 printf(
"\tne10_addc_float_neon:\t%f + %f = %f\n", src[i], cst, dst_neon[i]);
108 fprintf(stderr,
"Failed to initialise Ne10.\n");
ne10_result_t ne10_addc_float_neon(ne10_float32_t *dst, ne10_float32_t *src, const ne10_float32_t cst, ne10_uint32_t count) asm("ne10_addc_float_neon")
Specific implementation of ne10_addc_float using NEON intrinsics.
ne10_result_t ne10_init(void)
int intro_sample_main(void)
ne10_result_t ne10_addc_float_c(ne10_float32_t *dst, ne10_float32_t *src, const ne10_float32_t cst, ne10_uint32_t count)
Specific implementation of ne10_addc_float using plain C code.
ne10_result_t(* ne10_addc_float)(ne10_float32_t *dst, ne10_float32_t *src, const ne10_float32_t cst, ne10_uint32_t count)
Adds a constant scalar value to all elements of an input array, storing the results in an output arra...