Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!hplabs!sri-unix!gwyn@BRL-VLD.ARPA From: gwyn@BRL-VLD.ARPA Newsgroups: net.lang.c Subject: Re: advice statement Message-ID: <12865@sri-arpa.UUCP> Date: Mon, 27-Aug-84 03:18:05 EDT Article-I.D.: sri-arpa.12865 Posted: Mon Aug 27 03:18:05 1984 Date-Received: Thu, 30-Aug-84 20:02:59 EDT Lines: 12 From: Doug Gwyn (VLD/VMB) C really doesn't need bells and whistles. In the case of the "percentage true", do you contemplate extending this to loop breaks, etc. too? Why not just comment your code if you care about reader understanding: while ( root != next_root /* 90% */ ) ... The amount of speed improvement possible by letting the optimizer know which outcome of a test is more likely is miniscule indeed. The latest PCC will generate extra loop condition tests at both the "top" and the "bottom" of do & while loops when appropriate, which saves a very small amount of loop overhead comparable to worrying about percentage trues.