Tristate - wanna?

crimaniak via Digitalmars-d digitalmars-d at puremagic.com
Sat Mar 26 19:19:56 PDT 2016


On Saturday, 26 March 2016 at 22:39:58 UTC, Alex Parrill wrote:

...
> If we're going down that route, might as well use state tables.
...

For Boolean, Ternary, and N-state logic:

a && b == min(a, b)
a || b == max(a, b)
~a == N-1-a

why to optimize it more?


More information about the Digitalmars-d mailing list