[PATCH v2 2/2] break fenv.c file to function files

Eshan Dhawan eshandhawan51 at gmail.com
Fri Jul 24 05:35:34 UTC 2020


> On 24-Jul-2020, at 10:17 AM, Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
> 
> On 23/07/2020 21:41, Eshan dhawan wrote:
> 
>> -#include "../../fenv/fenv_stub.c"
>> +#include <fenv.h>
>> +
>> +int feclearexcept(int excepts)
>> +{
>> +#ifndef __SOFTFP__
>> +    fexcept_t __fpsr;
>> +
>> +    vmrs_fpscr(__fpsr);
>> +    __fpsr &= ~excepts;
>> +    vmsr_fpscr(__fpsr);
>> +#endif
>> +    return (0);
>> +}
> 
> Where is vmrs_fpscr() defined? Please add a header file for this, for example
> 
I defined it in machine/arm/sys/fenv.h
Apologies I forgot to add the file in the patch 
I will resend V2 with the correct message and file
> newlib/libm/machine/arm/_fenv.h
> 
> and include it via
> 
> #include "_fenv.h"
> 


More information about the devel mailing list