Re: BogoMips confusion ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 22 September 2004 10:17, matrix reloaded wrote:

> while ( lps_precision-- && (loopbit >>= 1) ) {...
>  
> the aboce condition will fail always, as the starting value for
> lps_precision is LPS_PREC which has been defined to 8.
> Why is this loop there, if it will never execute ? because loopbit
> value will never be < 4096... 

Why won't it?  By my reading of the above it sounds like you are seeing 
the && as a bit-AND not a logical-AND.



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux