Richard Yao <[email protected]> wrote: > On second thought, I was right the first time. It is possible to do this > without branching: > > #define MIN(x, y) ((y) ^ (((x) ^ (y)) & -((x) < (y)))) > #define MIN(x, y) ((x) ^ (((x) ^ (y)) & -((x) < (y))))
I am not convinced becase ((x) < (y)) is a comparison followed by a conditional 1 or 0 assignement. Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (uni) [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ developer mailing list [email protected] http://lists.open-zfs.org/mailman/listinfo/developer
