[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 85/85: Remove dead code in scm_integer_inexact_sqrt_z
From: |
Andy Wingo |
Subject: |
[Guile-commits] 85/85: Remove dead code in scm_integer_inexact_sqrt_z |
Date: |
Thu, 13 Jan 2022 03:40:27 -0500 (EST) |
wingo pushed a commit to branch main
in repository guile.
commit 222b3208689cedfcccbada195fe92bde3015a803
Author: Andy Wingo <wingo@pobox.com>
AuthorDate: Wed Jan 12 15:58:27 2022 +0100
Remove dead code in scm_integer_inexact_sqrt_z
* libguile/integers.c (scm_integer_inexact_sqrt_z): Remove some dead
code.
---
libguile/integers.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libguile/integers.c b/libguile/integers.c
index a1231a10d..adf1c401e 100644
--- a/libguile/integers.c
+++ b/libguile/integers.c
@@ -3385,10 +3385,6 @@ scm_integer_inexact_sqrt_i (scm_t_inum k)
double
scm_integer_inexact_sqrt_z (struct scm_bignum *k)
{
- mpz_t zk, zs;
- alias_bignum_to_mpz (k, zk);
- mpz_init (zs);
-
long expon;
double signif = scm_integer_frexp_z (k, &expon);
int negative = signif < 0;
- [Guile-commits] 40/85: Simplify implementation of min, max, (continued)
- [Guile-commits] 40/85: Simplify implementation of min, max, Andy Wingo, 2022/01/13
- [Guile-commits] 42/85: Simplify scm_difference, use integer lib, Andy Wingo, 2022/01/13
- [Guile-commits] 47/85: Fix scm_integer_to_double_z to always round; clean ups, Andy Wingo, 2022/01/13
- [Guile-commits] 50/85: Reimplement scm_{to,from}_{int32,uint32}, Andy Wingo, 2022/01/13
- [Guile-commits] 67/85: scm_to_ipv6 uses scm_to_mpz, Andy Wingo, 2022/01/13
- [Guile-commits] 68/85: Bignums avoid both custom GMP allocator and finalizers, Andy Wingo, 2022/01/13
- [Guile-commits] 69/85: take_mpz optimization, Andy Wingo, 2022/01/13
- [Guile-commits] 71/85: Re-rewrite integer-expt in C, Andy Wingo, 2022/01/13
- [Guile-commits] 73/85: Optimize scm_integer_mul_zz., Andy Wingo, 2022/01/13
- [Guile-commits] 84/85: Have log and log10(real nan) return real nan regardless of sign, Andy Wingo, 2022/01/13
- [Guile-commits] 85/85: Remove dead code in scm_integer_inexact_sqrt_z,
Andy Wingo <=
- [Guile-commits] 24/85: Implement scm_logtest with new integer library, Andy Wingo, 2022/01/13
- [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