Kitz Forum

Computers & Hardware => Apple Related => Topic started by: Weaver on February 02, 2018, 08:25:34 AM

Title: More workflow fun
Post by: Weaver on February 02, 2018, 08:25:34 AM
The Workflow programming environment doesn't have bitwise AND OR XOR operators, so I'm having to make my own AND XOR and CMP functions from scratch. I'm doing it bit by bit, by using + or * on the pair of values and the extracting the resulting bit 0 and so on in turn.

This is so I can do an IPv6 netmask calculator. I've already written a string comparison thing to find out how many initial 16-but words two ipv6 address strings have in common, then I just need to bolt on something involving bitwise logic to do the final test in order to find out whether or not a given address is inside a particular netmasked range.