Bit shifting in ABL?

Posted by marekk on 13-Aug-2019 12:55

Hi,

Can I use bit shift left and right in ABL?

Kind regards,

Marek

Posted by marekk on 14-Aug-2019 11:33

Thanks, it is very useful for me.

Marek

All Replies

Posted by Stefan Drissen on 13-Aug-2019 13:07

left = multiply by 2

right = divide by 2

when dividing beware of how ABL rounds.

Posted by bronco on 13-Aug-2019 13:24

Maybe this helps: [View:https://github.com/bfv/bfvlib/blob/master/bfvlib/misc/Binary.cls:550:50]

Posted by marekk on 14-Aug-2019 11:33

Thanks, it is very useful for me.

Marek

This thread is closed