Skip to content

Commit 6143d0b

Browse files
committed
cleanup
1 parent a25242c commit 6143d0b

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

private/ffi.rkt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,6 @@
146146
(mpfr-subnormalize r t (mpfr-rounding-mode)))
147147
r)
148148

149-
(define mpfr-sum-fun
150-
(get-mpfr-fun 'mpfr_sum (_fun _mpfr-pointer (_list i _mpfr-pointer) _ulong _rnd_t -> _int)))
151-
152-
(define (mpfr-sum xs)
153-
(define r (bf 0))
154-
(define t (mpfr-sum-fun r xs (length xs) (mpfr-rounding-mode)))
155-
(mpfr-check-range r 0 (mpfr-rounding-mode))
156-
(when (mpfr-subnormalize?)
157-
(mpfr-subnormalize r t (mpfr-rounding-mode)))
158-
r)
159-
160149
(define (mpfr-set x)
161150
(define v (if (bigfloat? x) (bfcopy x) (bf x)))
162151
(mpfr-check-range v 0 (mpfr-rounding-mode))

private/gfl.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@
299299
[(list) 1.bf]
300300
[(list x) (bfcopy x)]
301301
[(list x y rest ...)
302-
(for/fold ([sum (mpfr-mul x y)]) ([z (in-list rest)])
303-
(mpfr-mul sum z))]))
302+
(for/fold ([prod (mpfr-mul x y)]) ([z (in-list rest)])
303+
(mpfr-mul prod z))]))
304304

305305
(define (mpfrv/ x . xs)
306306
(match xs

private/mpfr.rkt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
mpfr-lgamma
1212
mpfr-jn
1313
mpfr-yn
14-
mpfr-sum
1514
mpfr-set
1615
mpfr-set-ebounds!)
1716

0 commit comments

Comments
 (0)