Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!adm!xadmx!WILCOX@nosc-tecr.arpa From: WILCOX@nosc-tecr.arpa Newsgroups: comp.unix.wizards Subject: C code optimization for a = (b < c); (correction) Message-ID: <19788@adm.BRL.MIL> Date: 27 May 89 22:26:19 GMT Sender: news@adm.BRL.MIL Lines: 12 Wooops! I was thinking of the signed form and got put "c - b" instead of "b - c". Unsigned form should be: a = (b < c); ==> a = (unsigned)((b - c) >> (WIDTH_OF_INT_IN_BITS - 1)); --Dwight Wilcox Code 412 Naval Ocean Systems Center San Diego, CA 92152-5000