[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 83/85: Don't use HAVE_COPYSIGN in libguile/numbers.c
From: |
Andy Wingo |
Subject: |
[Guile-commits] 83/85: Don't use HAVE_COPYSIGN in libguile/numbers.c |
Date: |
Thu, 13 Jan 2022 03:40:27 -0500 (EST) |
wingo pushed a commit to branch main
in repository guile.
commit 4feff820bed83b84acb3267edfcfbc1d18a2bce1
Author: Daniel Llorens <lloda@sarc.name>
AuthorDate: Mon Jan 10 12:46:57 2022 +0100
Don't use HAVE_COPYSIGN in libguile/numbers.c
* libguile/numbers.c (icmplx2str): As stated. copysign() is required by C99
and
already used without guards elsewhere in this file.
---
libguile/numbers.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libguile/numbers.c b/libguile/numbers.c
index 1a96d9c8c..83fe027a9 100644
--- a/libguile/numbers.c
+++ b/libguile/numbers.c
@@ -3450,11 +3450,7 @@ icmplx2str (double real, double imag, char *str, int
radix)
double sgn;
i = idbl2str (real, str, radix);
-#ifdef HAVE_COPYSIGN
sgn = copysign (1.0, imag);
-#else
- sgn = imag;
-#endif
/* Don't output a '+' for negative numbers or for Inf and
NaN. They will provide their own sign. */
if (sgn >= 0 && isfinite (imag))
- [Guile-commits] 13/85: Implement centered-quotient with new integer lib, (continued)
- [Guile-commits] 13/85: Implement centered-quotient with new integer lib, Andy Wingo, 2022/01/13
- [Guile-commits] 23/85: Implement scm_logxor with new integer library, Andy Wingo, 2022/01/13
- [Guile-commits] 19/85: Implement gcd with new integer lib, Andy Wingo, 2022/01/13
- [Guile-commits] 57/85: Expose frexp from integers lib, Andy Wingo, 2022/01/13
- [Guile-commits] 59/85: divide2double refactor, Andy Wingo, 2022/01/13
- [Guile-commits] 60/85: Simplify scm_exact_integer_quotient, Andy Wingo, 2022/01/13
- [Guile-commits] 61/85: Remove last non-admin SCM_I_BIG_MPZ uses in numbers.c, Andy Wingo, 2022/01/13
- [Guile-commits] 64/85: Avoid scm_i_mkbig outside numbers.c., Andy Wingo, 2022/01/13
- [Guile-commits] 78/85: Optimize bignum subtraction, Andy Wingo, 2022/01/13
- [Guile-commits] 70/85: Fix bug when making mpz from 0, Andy Wingo, 2022/01/13
- [Guile-commits] 83/85: Don't use HAVE_COPYSIGN in libguile/numbers.c,
Andy Wingo <=
- [Guile-commits] 20/85: Implement lcm with new integer lib, Andy Wingo, 2022/01/13
- [Guile-commits] 22/85: Implement scm_logior with new integer library, Andy Wingo, 2022/01/13
- [Guile-commits] 30/85: Implement scm_bit_extract with new integer library, Andy Wingo, 2022/01/13
- [Guile-commits] 28/85: Reimplement integer-expt in Scheme, Andy Wingo, 2022/01/13
- [Guile-commits] 15/85: Implement centered-divide with new integer lib, Andy Wingo, 2022/01/13
- [Guile-commits] 32/85: Integer library takes bignums via opaque struct pointer, Andy Wingo, 2022/01/13
- [Guile-commits] 38/85: Clean up <, reimplement in terms of integer lib, Andy Wingo, 2022/01/13
- [Guile-commits] 39/85: positive?, negative? use integer lib, Andy Wingo, 2022/01/13
- [Guile-commits] 41/85: Clean up scm_sum, Andy Wingo, 2022/01/13
- [Guile-commits] 43/85: Simplify scm_product, use integer lib, Andy Wingo, 2022/01/13