From: Keith Packard <keithp@keithp.com>
To: newlib@sourceware.org
Subject: [PATCH 2/2] libm/common: Remove unused 'dec' function from sqrtl.c
Date: Thu, 20 Aug 2020 17:35:39 -0700 [thread overview]
Message-ID: <20200821003539.942952-3-keithp@keithp.com> (raw)
In-Reply-To: <20200821003539.942952-1-keithp@keithp.com>
This function is not used.
Signed-off-by: Keith Packard <keithp@keithp.com>
---
newlib/libm/common/sqrtl.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/newlib/libm/common/sqrtl.c b/newlib/libm/common/sqrtl.c
index e58255724..234f1b7a3 100644
--- a/newlib/libm/common/sqrtl.c
+++ b/newlib/libm/common/sqrtl.c
@@ -98,25 +98,6 @@ inc (long double x)
return ux.extu_ld;
}
-/* Return (x - ulp) for normal positive x. Assumes no underflow. */
-
-static inline long double
-dec (long double x)
-{
- union ieee_ext_u ux = { .extu_ld = x, };
-
- if (ux.extu_ext.ext_fracl-- == 0)
- {
- if (ux.extu_ext.ext_frach-- == LDBL_NBIT)
- {
- ux.extu_ext.ext_exp--;
- ux.extu_ext.ext_frach |= LDBL_NBIT;
- }
- }
-
- return ux.extu_ld;
-}
-
/* This is slow, but simple and portable. */
long double
--
2.28.0
prev parent reply other threads:[~2020-08-21 0:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-21 0:35 [PATCH 0/2] Floating point conversion warning fixes [v2] Keith Packard
2020-08-21 0:35 ` [PATCH 1/2] Avoid implicit floating point conversions [v2] Keith Packard
2020-08-24 9:58 ` Corinna Vinschen
2020-08-24 15:33 ` Keith Packard
2020-08-25 11:10 ` Corinna Vinschen
2020-08-25 13:37 ` Thomas Wucher
2020-08-21 0:35 ` Keith Packard [this message]
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=20200821003539.942952-3-keithp@keithp.com \
--to=keithp@keithp.com \
--cc=newlib@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).