On 2/19/2014 8:20 AM, John McKown wrote:
Going a bit OT on this, but this talk about bits - the testing and setting
thereof, makes me curious about why IBM doesn't simplify it a "bit" (pun
intended).

I think we have way to many instructions already <g>

I have a subroutine to maintain a bit table, and the code is relatively simple (turn bit on or off, flip it, test it, find first off bit, find first on, clear the table). The find functions are implemented with TRT (need to maintain S/360 compatibility), and the rest are trivial.

As Bill Fairchild commented, memory is generally not critical, so things like POPCNT aren't necessary because they can be done with a table.

Gerhard Postpischil
Bradford, Vermont

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to