From: "Gabriel F. T. Gomes" <gftg@linux.vnet.ibm.com>
To: libc-alpha@sourceware.org
Subject: [PATCH v2 2/3] Change return type in the declaration of __ieee754_rem_pio2l
Date: Tue, 28 Mar 2017 20:44:00 -0000 [thread overview]
Message-ID: <1490733875-20087-3-git-send-email-gftg@linux.vnet.ibm.com> (raw)
In-Reply-To: <1490733875-20087-1-git-send-email-gftg@linux.vnet.ibm.com>
The implementation of __ieee754_rem_pio2l in ldbl-128, ldbl-128ibm,
and ldbl-96 return the type int32_t, whereas math_private.h declares
it as returning int. This patch changes the declaration to match the
declaration in thoses directories, as well as it changes the stub
implementation in math/e_rem_pio2l.c, similarly.
2017-03-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
* math/e_rem_pio2l.c (__ieee754_rem_pio2l): Change return type
to int32_t.
* sysdeps/generic/math_private.h: Declare __ieee754_rem_pio2l
as returning int32_t.
---
math/e_rem_pio2l.c | 2 +-
sysdeps/generic/math_private.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/math/e_rem_pio2l.c b/math/e_rem_pio2l.c
index 03ac2ef..2ea873b 100644
--- a/math/e_rem_pio2l.c
+++ b/math/e_rem_pio2l.c
@@ -3,7 +3,7 @@
#include <errno.h>
#include <math_private.h>
-int
+int32_t
__ieee754_rem_pio2l (long double x, long double *y)
{
fputs ("__ieee754_rem_pio2l not implemented\n", stderr);
diff --git a/sysdeps/generic/math_private.h b/sysdeps/generic/math_private.h
index 2d22552..9f6eb56 100644
--- a/sysdeps/generic/math_private.h
+++ b/sysdeps/generic/math_private.h
@@ -307,7 +307,7 @@ extern long double __ieee754_y1l (long double);
extern long double __ieee754_jnl (int,long double);
extern long double __ieee754_ynl (int,long double);
extern long double __ieee754_remainderl (long double,long double);
-extern int __ieee754_rem_pio2l (long double,long double*);
+extern int32_t __ieee754_rem_pio2l (long double,long double*);
extern long double __ieee754_scalbl (long double,long double);
extern int __ieee754_ilogbl (long double);
--
2.4.11
next prev parent reply other threads:[~2017-03-28 20:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-28 20:44 [PATCH v2 0/3] Macroize function declarations in math_private.h Gabriel F. T. Gomes
2017-03-28 20:44 ` Gabriel F. T. Gomes [this message]
2017-03-29 14:26 ` [PATCH v2 2/3] Change return type in the declaration of __ieee754_rem_pio2l Joseph Myers
2017-03-30 19:45 ` Gabriel F. T. Gomes
2017-03-28 20:45 ` [PATCH v2 1/3] Remove unneeded declarations from math_private.h Gabriel F. T. Gomes
2017-03-29 14:25 ` Joseph Myers
2017-03-30 12:03 ` [PATCH v3 " Gabriel F. T. Gomes
2017-04-10 18:02 ` [PATCH v2 " Gabriel F. T. Gomes
2017-03-28 20:45 ` [PATCH v2 3/3] Macroize function declarations in math_private.h Gabriel F. T. Gomes
2017-03-30 12:03 ` [PATCH v3 " Gabriel F. T. Gomes
2017-04-10 18:04 ` Gabriel F. T. Gomes
2017-04-19 21:52 ` Joseph Myers
2017-04-24 18:24 ` Gabriel F. T. Gomes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1490733875-20087-3-git-send-email-gftg@linux.vnet.ibm.com \
--to=gftg@linux.vnet.ibm.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).