lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sat, 31 Jul 2010 19:08:56 +0930
From:	David Newall <davidn@...idnewall.com>
To:	"Luis R. Rodriguez" <mcgrof@...il.com>
CC:	linux-kernel@...r.kernel.org,
	"doug.dahlby" <Doug.Dahlby@...eros.com>,
	Jiri Slaby <jirislaby@...il.com>
Subject: Re: Using unsigned int for loop counters - better performance for
 	Architectures - urban hacker legend?

I don't know about unsigned int; but looping down to zero should be 
faster on many architectures, as they automatically test for zero (or 
negative) on decrement.  Counting up requires an additional test.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ