Ben Laurie (ben@algroup.co.uk)
Mon, 10 Aug 1998 10:07:51 +0100
John Kelsey wrote:
> You can simplify your carry-bit processing by doing
> something like
> D++;
> if(D==0){
> C++;
> if(C==0){
> B++;
> if(B==0)
> A++;
> }
> }
Considerably more concise is:
++d || ++c || ++b || ++a;
Almost elegant, too.
Cheers,
Ben.
-- Ben Laurie |Phone: +44 (181) 735 0686| Apache Group member Freelance Consultant |Fax: +44 (181) 735 0689|http://www.apache.org/ and Technical Director|Email: ben@algroup.co.uk | A.L. Digital Ltd, |Apache-SSL author http://www.apache-ssl.org/ London, England. |"Apache: TDG" http://www.ora.com/catalog/apache/WE'RE RECRUITING! http://www.aldigital.co.uk/recruit/
The following archive was created by hippie-mail 7.98617-22 on Sat Apr 10 1999 - 01:10:57