mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-12 15:37:35 +02:00
simpler bitwise-not
This commit is contained in:
parent
ce2bf8ce77
commit
74185fbe11
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
;; Copyright (c) 2009 Alex Shinn. All rights reserved.
|
||||
;; BSD-style license: http://synthcode.com/license.txt
|
||||
|
||||
(define (bitwise-not i) (- (+ i 1)))
|
||||
(define (bitwise-not i) (- -1 i))
|
||||
|
||||
(define (bitwise-complement f) (lambda args (bitwise-not (apply f args))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue