Re: [linux-audio-dev] LADSPA 64bit FP support ?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] LADSPA 64bit FP support ?
From: Paul Winkler (slinkp23_AT_yahoo.com)
Date: Wed Mar 22 2000 - 09:23:36 EET


Hey Paul, I compiled & ran this and it didn't print anything. Am I
missing something?

Paul Barton-Davis wrote:
>
> >(Doubling and halving have no effect on the mantissa at all...?)
>
> #define PEAK_VAL ~(0xff000000)
>
> int32 foo;
> float ffoo;
>
> foo = PEAK_VAL;
> foo *= 2;
> foo /= 2;
>
> if (foo != PEAK_VAL) {
> fprintf (stderr, "Your C compiler or processor is broken\n");
> }
>
> ffoo = (float) PEAK_VAL;
> ffoo *= 2.0;
> ffoo /= 2.0;
>
> if (ffoo != (float) PEAK_VAL) {
> fprintf (stderr, "Oh well, thats just your FPU.\n");
> }
>

OK, so I really changed fprintf to printf (and deleted stderr)
because I didn't feel like remembering how to make C work. :)

-- 
................    paul winkler    ..................
slinkP arts:   music, sound, illustration, design, etc.
A member of ARMS    ----->    http://www.reacharms.com
or http://www.mp3.com/arms or http://www.amp3.net/arms
personal page   ---->    http://www.ulster.net/~abigoo


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Mar 22 2000 - 09:57:00 EET