From: lucio@proxima.alt.za
To: 9fans@cse.psu.edu
Subject: [9fans] mpg123
Date: Fri, 21 Jan 2005 06:38:44 +0200 [thread overview]
Message-ID: <0d55b31ff4d062f23238f5d618d42115@proxima.alt.za> (raw)
The following code from mpg123/layer3.c (around line 180, as provided
by anyrhine) could not be more intentionally broken:
double r;
if (i < 6) {
double t = tan( (double) i * M_PI / 12.0 );
r = t / (1.0 + t);
} else
r = 1.0;
tan1_1[i] = r;
tan2_1[i] = 1.0 - r;
tan1_2[i] = M_SQRT2 * r;
tan2_2[i] = M_SQRT2 / (1.0 - r);
Does anyone know how to intelligently stop the division by zero in
line 181?
++L
next reply other threads:[~2005-01-21 4:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-21 4:38 lucio [this message]
2005-01-21 7:32 ` Aki M Nyrhinen
2005-01-21 10:20 ` lucio
-- strict thread matches above, loose matches on Subject: below --
2003-02-09 10:05 [9fans] what a mess the Unix world has become Aharon Robbins
2003-02-10 9:00 ` [9fans] mpg123 Conor Williams
2003-02-10 12:02 ` Russ Cox
2003-02-10 14:14 ` Nigel Roles
2003-02-10 14:34 ` Fco.J.Ballesteros
2003-02-10 14:53 ` Axel Belinfante
2003-02-10 15:05 ` Fco.J.Ballesteros
2003-02-10 15:53 ` Conor Williams
2003-02-10 16:41 ` Fco.J.Ballesteros
2003-02-11 10:19 ` Conor Williams
2003-02-11 11:26 ` nigel
2003-02-13 9:02 ` Conor Williams
2003-02-10 18:13 ` Tad Hunt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0d55b31ff4d062f23238f5d618d42115@proxima.alt.za \
--to=lucio@proxima.alt.za \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).