value range propagation for logical OR

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Apr 10 10:01:45 PDT 2010


Consider:

byte c = a | b;

Say you already know min_a, max_a, min_b, and max_b. How do you compute 
min_c and max_c? I thought of it for a bit and it seems quite tricky.


Thanks,

Andrei



More information about the Digitalmars-d mailing list