This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (len % 1) != 0


Dave Korn wrote:
On 19 February 2008 16:30, Sheng-Liang Song wrote:

or

(len & 1) != 0 <=> (len % 2) != 0


That would have the advantage of not requiring a divide operation :)



But GCC will fold it to the bitwise and form, so it doesn't really matter.


David Daney


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]