This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Which definition is right for "ne10_addc_float_c"?

Hi,

On a Get Start thread of this web site, it has a short NE10 example having such snippet:

      ne10_addc_float_c( thedst1 , thesrc, thecst, ARRAY_LENGTH );
 
      ne10_addc_float_neon( thedst2 , thesrc, thecst, ARRAY_LENGTH );

I install NE10 library. In the documentation, it has a different definition:

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")

I am curious about the last "asm("ne10_addc_float_neon")". Could you tell me that?

Thanks,

Parents
  • Excuse me for the previous question. I find that it is caused by the generated documentation, which is wrong after I check the on-line documentation.

    Now, I have a new question when I build another simple example from the right NE10 documentation:

    int main()

    {

         ne10_result_t status;

         printf ("Going to initialize NE10...\n");

         status = ne10_init();

         if (status != NE10_OK)

             printf ("NE10 init failed.\n");

         printf ("NE10 has been initialized.\n");

         test_add1();

         test_add2();

         return 0;

    }

    I find that "

    status = ne10_init();"

    will cause build errors, such as:

    robert@M5100:~/workspace_v5_5/NE10_testHardware0$ arm-linux-gnueabihf-gcc -O2 -o sample testHd.c -I$NE10_INC_PATH -l:$NE10_LIB_PATH/libNE10.a

    /home/robert/projectNe10-Ne10-4167142/build/modules/libNE10.a(NE10_len.c.o): In function `ne10_len_vec2f_c':

    NE10_len.c:(.text+0x5e): undefined reference to `sqrtf'

    /home/robert/projectNe10-Ne10-4167142/build/modules/libNE10.a(NE10_len.c.o): In function `ne10_len_vec3f_c':

    NE10_len.c:(.text+0xf4): undefined reference to `sqrtf'

    /home/robert/projectNe10-Ne10-4167142/build/modules/libNE10.a(NE10_len.c.o): In function `ne10_len_vec4f_c':

    NE10_len.c:(.text+0x18c): undefined reference to `sqrtf'

    I have no idea on how to solve this. Please help me!

Reply
  • Excuse me for the previous question. I find that it is caused by the generated documentation, which is wrong after I check the on-line documentation.

    Now, I have a new question when I build another simple example from the right NE10 documentation:

    int main()

    {

         ne10_result_t status;

         printf ("Going to initialize NE10...\n");

         status = ne10_init();

         if (status != NE10_OK)

             printf ("NE10 init failed.\n");

         printf ("NE10 has been initialized.\n");

         test_add1();

         test_add2();

         return 0;

    }

    I find that "

    status = ne10_init();"

    will cause build errors, such as:

    robert@M5100:~/workspace_v5_5/NE10_testHardware0$ arm-linux-gnueabihf-gcc -O2 -o sample testHd.c -I$NE10_INC_PATH -l:$NE10_LIB_PATH/libNE10.a

    /home/robert/projectNe10-Ne10-4167142/build/modules/libNE10.a(NE10_len.c.o): In function `ne10_len_vec2f_c':

    NE10_len.c:(.text+0x5e): undefined reference to `sqrtf'

    /home/robert/projectNe10-Ne10-4167142/build/modules/libNE10.a(NE10_len.c.o): In function `ne10_len_vec3f_c':

    NE10_len.c:(.text+0xf4): undefined reference to `sqrtf'

    /home/robert/projectNe10-Ne10-4167142/build/modules/libNE10.a(NE10_len.c.o): In function `ne10_len_vec4f_c':

    NE10_len.c:(.text+0x18c): undefined reference to `sqrtf'

    I have no idea on how to solve this. Please help me!

Children