[PlanetCCRMA] Pentium-4 and denormal numbers on planetccrma
Steve Harris
S.W.Harris at ecs.soton.ac.uk
Fri Jan 28 15:40:00 PST 2005
On Fri, Jan 28, 2005 at 03:23:51PM -0800, Fernando Pablo Lopez-Lezcano wrote:
> On Fri, 2005-01-28 at 15:17, Fernando Lopez-Lezcano wrote:
> > inline add_white_noise (float &val) {
> > rand_state = rand_state * 1234567UL + 890123UL;
> > int mantissa = rand_state & 0x807F0000;
> > int flt_rnd = mantissa | 0x1e999999;
> > val += *reinterpret_cast <const flat*> (&flt_rnd);
>
> not "flat", "float" :-)
> or perhaps it'd work best with flat constants?
I prefer bumpy ones myself :)
- Steve
More information about the PlanetCCRMA
mailing list