[r6rs-discuss] [Formal] fxlogical-shift-left and fxlogical-shift-right used but not defined.
Ben Harris
bjh21 at bjh21.me.uk
Mon Apr 23 19:23:14 EDT 2007
---
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
More information about the r6rs-discuss
mailing list