Re: Unknown symbol

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

 



On Mon, Jun 21, 2004 at 19:36:03 +0100, Ian Molton wrote:
> On Mon, 21 Jun 2004 17:22:59 +0200
> Christophe Lucas <c.lucas@ifrance.com> wrote:
> 
> > I think this value is written only for remember how it works.
> > Could you not put it in comments and put the right value as :
> > #define FREQ_LO 1400000 /* 87.5*16000 */
> 
> Was this code compiled with some strange settings? normallyu the
> compiler would have evaluated the expression and not generated code to
> calculate the value...

No. But the result would be float. So another operation later could be
computed in floating point. And if the result is integer, it's at
compilers discretion to compute as float and then cast or cast and
compute as integer. It seems to have chosen the first option.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>

Attachment: signature.asc
Description: Digital signature


[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