Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc error #1

Open
hominlinx opened this issue Apr 17, 2014 · 2 comments
Open

gcc error #1

hominlinx opened this issue Apr 17, 2014 · 2 comments

Comments

@hominlinx
Copy link

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

@andrepuschmann
Copy link
Owner

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

@hominlinx
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants