[r6rs-discuss] [Formal] fxlogical-shift-left and fxlogical-shift-right used but not defined.

From: Ben Harris <bjh21>
Date: Tue, 24 Apr 2007 00:23:14 +0100 (BST)

---
This message is a formal comment which was submitted to formal-comment at r6rs.org, following the requirements described at: http://www.r6rs.org/process.html
---
submitter: Ben Harris <bjh21 at bjh21.me.uk>
type: Defect
priority: Minor
component: Arithmetic
version: 5.92
summary: fxlogical-shift-left and fxlogical-shift-right used but not 
defined.
The definitions on page 38 of fxbit-field, fxcopy-bit-field, and
fxrotate-bit-field all use fxlogical-shift-left, and two of them use
fxlogical-shift-right.  Neither of these procedures is defined.
fxlogical-shift-left can obviously safely be replaced with
bitwise-arithmetic-shift-left.  I suspect that overflow considerations
prevent the use of fxarithmetic-shift-left in fxcopy-bit-field and 
fxrotate-bit-field.
fxlogical-shift-right appears to only be called with positive
arguments, so it can safely be replaced with fxarithmetic-shift-right.
-- 
Ben Harris
Received on Mon Apr 23 2007 - 19:23:14 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC