[vorbis-dev] Re: gcc 2.95.2/irix/Laguerre_With_Deflation/inifinte loop

ber smith at panix.com
Sat Jun 23 18:15:33 PDT 2001



Followup on the infinite loop problem.  Upgrading to gcc 3.0 had
no effect.

The code behaves different in floor0_forward() where val is first set.
Is rint(nan/130*1023) meaningful?  In one case (the one that doesn't
go into an infinite loop) it returns a negative number, in the other,
positive.  

    ber

  val=rint(amp/info->ampdB*maxval);

  linux/x86% ./oggenc
~/x.aiff                                                       
  Opening with aiff module: AIFF/AIFC file reader
  mapping0_forward: logmask[0] = inf
  floor0_forward: inf 130
  floor0_forward: amp = nan
  floor0_forward: info->ampdB = 130
  floor0_forward: maxval = 1023
  floor0_forward: val = -2147483648

  irix/r14k% ./oggenc ~/x.aiff
  Opening with aiff module: AIFF/AIFC file reader
  mapping0_forward: logmask[0] = inf
  floor0_forward: inf 130
  floor0_forward: amp = nan0x7fffffff
  floor0_forward: info->ampdB = 130
  floor0_forward: maxval = 1023
  floor0_forward: val = 2147483647

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list