I am working with some IPv6 addresses that are 128 bits long. The input
to the program is an ip name or address and the number of high bits that
I need to use for a compare against another ip address.

So, I want to create run time routine to build the a 16 byte 'and' bit
field based on the input number of bits. (I will then 'and' both
addresses and then use a simple CLC.)

Although a table built at compile time might be a reasonable solution, I
thought this would be a good time to learn a new trick if someone has
one they can share.

--

Tony Thigpen

Reply via email to