User Tools

Site Tools


howtos:toolcoding:bitwise_operations

Table of Contents

Bitwise operators can be achieved in TOOL.

If a[dims] and b[dims] are integer objects with value 0 or 1 (i.e. boolean representations):

NOT

1 - a[dims]

AND

a[dims] * b[dims]

OR

boolgt (a[dims] + b[dims], 0)

XOR

booleq (a[dims] + b[dims], 1)
howtos/toolcoding/bitwise_operations.txt · Last modified: 2018/01/22 15:38 by marcus.williams