Skip to content

Commit

Permalink
Export ##use-fast-bignum-algorithms fromn _num.scm.
Browse files Browse the repository at this point in the history
And use it in tests/unit-tests to avoid tests with unnecessarily
large arguments.
  • Loading branch information
gambiteer committed Aug 22, 2017
1 parent 7d2ee5d commit 7a23bb9
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 37 deletions.
7 changes: 5 additions & 2 deletions lib/_num.scm
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
(macro-case-target
((C)
(c-declare "#include \"mem.h\"")
(##define-macro (use-fast-bignum-algorithms) #t))
(##define-macro (use-fast-bignum-algorithms) #f))

((js)
(##define-macro (use-fast-bignum-algorithms) #t))
(##define-macro (use-fast-bignum-algorithms) #f))

(else
(##define-macro (use-fast-bignum-algorithms) #f)))

(define-prim (##use-fast-bignum-algorithms?)
(use-fast-bignum-algorithms))

;;;============================================================================

;;; Implementation of exceptions.
Expand Down
Loading

0 comments on commit 7a23bb9

Please sign in to comment.