Re: [MP3 ENCODER] castings (OT)

2000-09-19 Thread Gabriel Bouvigne

 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).

Highly respectable source, but parts of the KR syntax are now deprecated in
Ansi C.


Regards,

--

Gabriel Bouvigne - France
[EMAIL PROTECTED]
mobile phone: [EMAIL PROTECTED]
icq: 12138873

MP3' Tech: www.mp3-tech.org


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



Re: [MP3 ENCODER] castings (OT)

2000-09-18 Thread Frank Klemm

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   longuintint
  
  ldouble ldouble ldouble ldouble ldouble ldouble ldouble
  double  ldouble double  double  double  double  double
  ulong   ldouble double  ulong   ulong   ulong   ulong
  longldouble double  ulong   longulong   long
  uintldouble double  ulong   ulong   uintuint
  int ldouble double  ulong   longuintint
  
  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/ )