math-neon icon indicating copy to clipboard operation
math-neon copied to clipboard

gcc error

Open hominlinx opened this issue 10 years ago • 2 comments

hi, thanks your math-neon. when I using gcc to compile math-neon,occurs errors:

math_acosf.c:49:1: error: control reaches end of non-void function [-Werror=return-type] cc1: some warnings being treated as errors

thanks

hominlinx avatar Apr 17 '14 04:04 hominlinx

Hi, you seem to compile with -Wall. Either remove this to get rid of the error or add an extra return in to the function in math_acosf.c.

Hope that helps. Andre

andrepuschmann avatar Apr 17 '14 06:04 andrepuschmann

hi,thanks your reply, and now I have using this lib for my pro, thank you very much.now I have a question like :http://code.google.com/p/math-neon/issues/detail?id=2 I want to know why and I using

float sinf_neon_hfp(float x)
{
#ifdef __MATH_NEON
    asm volatile ("vdup.f32 d0, %[xInput]   \n\t"
        :
        :[xInput] "r" (x)
        :
        );
    asm volatile (

    "vld1.32        d3, [%0]                \n\t"   //d3 = {invrange, range}
    "vdup.f32       d0, d0[0]               \n\t"   //d0 = {x, x}
    "vabs.f32       d1, d0
          ..............

but I also get the wrong result.please help me, thank you In my math_neon.h:

#define __MATH_FPABI 0

hominlinx avatar Apr 28 '14 02:04 hominlinx