mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Added fxif
This commit is contained in:
parent
1a3f60711f
commit
0cb8f0f591
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,8 @@
|
|||
fxnot fxand fxior fxxor
|
||||
fxarithmetic-shift
|
||||
fxarithmetic-shift-left fxarithmetic-shift-right
|
||||
; fxbit-count fxlength fxif fxbit-set? fxcopy-bit
|
||||
; fxbit-count fxlength
|
||||
fxif ;fxbit-set? fxcopy-bit
|
||||
; fxfirst-set-bit fxbit-field
|
||||
; fxbit-field-rotate fxbit-field-reverse
|
||||
)
|
||||
|
@ -45,6 +46,7 @@
|
|||
fxnot fxand fxior fxxor
|
||||
fxarithmetic-shift
|
||||
fxarithmetic-shift-left fxarithmetic-shift-right
|
||||
fxif
|
||||
)
|
||||
(begin
|
||||
(define (fx-width) 31)
|
||||
|
@ -127,5 +129,7 @@
|
|||
(fxarithmetic-shift-right i (fxneg count))))
|
||||
(bin-num-op fxarithmetic-shift-left "<<")
|
||||
(bin-num-op fxarithmetic-shift-right ">>")
|
||||
(define (fxif mask i j)
|
||||
(fxior (fxand (fxnot mask) i) (fxand mask j)))
|
||||
))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue