[r6rs-discuss] [Formal] fxlogical-shift-left and fxlogical-shift-right used but not defined.
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>
summary: fxlogical-shift-left and fxlogical-shift-right used but not
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
fxlogical-shift-right appears to only be called with positive
arguments, so it can safely be replaced with fxarithmetic-shift-right.
More information about the r6rs-discuss