[prev in list] [next in list] [prev in thread] [next in thread] 

List:       musl
Subject:    Re: [musl] [PATCH] math: move more x86-family fabs functions to C
From:       Rich Felker <dalias () libc ! org>
Date:       2020-03-21 17:06:43
Message-ID: 20200321170643.GI11469 () brightrain ! aerifal ! cx
[Download RAW message or body]

On Mon, Jan 06, 2020 at 11:40:30AM +0300, Alexander Monakov wrote:
> diff --git a/src/math/i386/fabsf.c b/src/math/i386/fabsf.c
> new file mode 100644
> index 00000000..d07be321
> --- /dev/null
> +++ b/src/math/i386/fabsf.c
> @@ -0,0 +1,7 @@
> +#include <math.h>
> +
> +float fabs(float x)
         ^^^^
> +{
> +	__asm__ ("fabs" : "+t"(x));
> +	return x;
> +}

Should be fabsf -- found while smoketesting. Otherwise things built
ok for i386. Will followup with more results soon.

Rich
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic