racket/collects/racket/fixnum.rkt
Matthew Flatt d4fa2766c2 performance tweaks for `for/{fx,fl,extfl}vector'
Also, provide a better error message when the body produces a
non-{fix,flo,extflo}num.
2013-04-10 17:26:38 -06:00

32 lines
832 B
Racket

#lang racket/base
(require '#%flfxnum
"private/vector-wraps.rkt"
"unsafe/ops.rkt"
(for-syntax racket/base))
(provide fx->fl fl->fx
fxabs
fx+ fx- fx*
fxquotient fxremainder fxmodulo
fxand fxior fxxor
fxnot fxrshift fxlshift
fx>= fx> fx= fx< fx<=
fxmin fxmax
fxvector? fxvector make-fxvector
shared-fxvector make-shared-fxvector
fxvector-length fxvector-ref fxvector-set!
fxvector-copy
in-fxvector for/fxvector for*/fxvector)
(define-vector-wraps "fxvector"
"fixnum?" fixnum?
fxvector? fxvector-length fxvector-ref fxvector-set! make-fxvector
unsafe-fxvector-ref unsafe-fxvector-set! unsafe-fxvector-length
in-fxvector*
in-fxvector
for/fxvector
for*/fxvector
fxvector-copy
0)