[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT/NEWLIB PATCH 1/1] sincosl.c: Import from musl


  • To: Felipe Huici <Felipe.Huici@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Wed, 8 Jan 2020 14:29:10 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WXJPfFtcQS9MapU5G/DMIcU8HZ+9P5d/waGjK4vu/EE=; b=lpf/XnZiphcY37cwqcNoeZpjuk7xf7hlL2O70t6qZTkprK92NJVoMDccPcjicQ0TPwgwaNoCc3WKMcNY+e/wABhBrXih77WnTNJKTx8wT6xXNwJ+MsbBSxkje+7jafbTasaUDuTDHSN2enGc5XCv4NZNKS/K958XnjIwKrkKIL4bsZZIiJ6WgCmZKbVL6TaR6z6F/iw8wSRBTEai4we/9qk/SFKdDLeGmvP9O9dCRTZZwB9cZL7e8GjfTX8HSccibRmtJ2yOGWEc7b01GDZP7LLsxYN43GOb1w7AfmY59gDCCQ47X5lkDayYxi7Ii2K9NfIlpki7e/fPCPN+ZWizYQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K68OAdpo4YuBMxXpzELhNCMwUlPAv+4ts+x4O0LhNUjthgNi0bmm9fuSinrUVGR8p5nrbPr/bA5jfSs5r6YSFiK1mL1758J9kZXmR7rN6LoUjTKSm2vnuEzesr9+TpNSvl8wlEwATTvYexWkH7jPWvUXuC6CNIfEYHzF8uQsOAeg18FACeFuPgYXQFbJw8LwKodnb13hrjupvcwq0BxU7ipRfJmwnuGDcdO7wzmVB+vzkmJpQkUU/EfSv7pLRpaUd5Ojo60Nd/Fasf9QNL+Yr+d3CE6NvhvGNnxcXXjuWmXT00cE7/6ZQ93OPnFqiRYorQlBSS7ksvmHGL5tqL+iiA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Delivery-date: Wed, 08 Jan 2020 14:29:24 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVxi5dBoxiBer0fkCxjchssmHpG6fg01+AgAAAPQA=
  • Thread-topic: [UNIKRAFT/NEWLIB PATCH 1/1] sincosl.c: Import from musl

Hi Felipe,

That's right.

Thanks,

Vlad

On 08.01.2020 16:28, Felipe Huici wrote:
> Hi Vlad,
>
> You're missing a #include <math.h> in sincosl.c, but I can add that on 
> upstream.
>
> -- Felipe
>
> Reviewed-by: Felipe Huici <felipe.huici@xxxxxxxxx>
>
> On 08.01.20, 15:17, "Vlad-Andrei BĂDOIU (78692)" 
> <vlad_andrei.badoiu@xxxxxxxxxxxxxxx> wrote:
>
>      Copied as is from the official musl git mirror
>      git://git.musl-libc.org/musl, commit 6fcb440d.
>      
>      We only keep the non optimized definition since
>      all the long double math functions from newlib
>      are wrappers over double.
>      
>      Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
>      ---
>       Makefile.uk                      |  1 +
>       musl-imported/src/math/sincosl.c | 10 ++++++++++
>       2 files changed, 11 insertions(+)
>       create mode 100644 musl-imported/src/math/sincosl.c
>      
>      diff --git a/Makefile.uk b/Makefile.uk
>      index 17d8d7a..a963e82 100644
>      --- a/Makefile.uk
>      +++ b/Makefile.uk
>      @@ -132,6 +132,7 @@ LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/mntent.c
>       LIBNEWLIBGLUE_SRCS-y += 
> $(LIBNEWLIBC_BASE)/musl-imported/src/misc/syslog.c
>       LIBNEWLIBGLUE_SRCS-y += 
> $(LIBNEWLIBC_BASE)/musl-imported/src/termios/tcsetattr.c
>       LIBNEWLIBGLUE_SRCS-y += 
> $(LIBNEWLIBC_BASE)/musl-imported/src/termios/tcgetattr.c
>      +LIBNEWLIBGLUE_SRCS-y += 
> $(LIBNEWLIBC_BASE)/musl-imported/src/math/sincosl.c
>       
>       ifeq ($(CONFIG_LIBNEWLIBC_CRYPT),y)
>       LIBNEWLIBGLUE_CFLAGS-y   += -Wno-missing-braces -Wno-sign-compare 
> -Wno-char-subscripts
>      diff --git a/musl-imported/src/math/sincosl.c 
> b/musl-imported/src/math/sincosl.c
>      new file mode 100644
>      index 0000000..003f6e4
>      --- /dev/null
>      +++ b/musl-imported/src/math/sincosl.c
>      @@ -0,0 +1,10 @@
>      +#define _GNU_SOURCE
>      +
>      +void sincosl(long double x, long double *sin, long double *cos)
>      +{
>      +        double sind, cosd;
>      +
>      +        sincos(x, &sind, &cosd);
>      +        *sin = sind;
>      +        *cos = cosd;
>      +}
>      --
>      2.20.1
>      
>      
>
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.