On Mon, Sep 18, 2000 at 08:17:46PM +0200, Robert Hegemann wrote:
> > 
> > a) char, signed char, short       =>  int
> > b) unsigned char, unsigned short  =>  unsigned int
> > c) float                          =>  double
> 
> So your Compiler/target CPU has only an affinity for some 
> elementary types. This is very special and different on
> other Compilers/CPUs.
>
It's taken from:

  Kerningham & Richie: Programming in C

It's not a compiler, but a book. The German translation is *different* from
the original. Some additional remarks are taken from the ANSI Standard
(1990).

> >    Second
> > 
> > d) still different types?
> > 
> >             ldouble double  ulong   long    uint    int
> > 
> > ldouble     ldouble ldouble ldouble ldouble ldouble ldouble
> > double      ldouble double  double  double  double  double
> > ulong       ldouble double  ulong   ulong   ulong   ulong
> > long        ldouble double  ulong   long    ulong   long
> > uint        ldouble double  ulong   ulong   uint    uint
> > int         ldouble double  ulong   long    uint    int
> > 
> > float <op> float gives a double.
> 
> 
> Silly, you are saying above that it is fully wrong and then 
> telling the same at the bottom.
> 
When it is the same it should be gave the same result. But it gave different
results.
Also tables are much nicer. Table lookup is faster and more error proof than
text parsing ;-)

-- 
Frank Klemm

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to