Commits

certainty  committed e1e240a Draft

removed pointless dependency to mathh

  • Participants
  • Parent commits f069c35

Comments (0)

Files changed (2)

  (license "MIT")
  (hidden)
  (doc-from-wiki)
- (needs mathh)
  (test-depends missbehave)
  (files ".hgignore" "serial.meta" "serial.release-info" "serial.scm" "serial.setup" "spec/serial.scm" "tests/run.scm"))
 (sn+ sn= sn< sn<= sn> sn>=)
 (import chicken scheme)
 
-(require-library mathh)
-(import (only mathh log2))
+(define +default-serial-bits+ 32)
 
-(define +default-serial-bits+ 32)
+(define (log2 x)
+  (/ (log x) (log 2)))
 
 (define (bits-needed-for fixnum)
   (if (zero? fixnum)