[PD-dev] [ pure-data-Bugs-1692649 ] sqrt~ giving only -inf/inf
SourceForge.net
noreply at sourceforge.net
Mon Apr 2 06:08:54 CEST 2007
Bugs item #1692649, was opened at 2007-04-01 23:51
Message generated for change (Comment added) made by eighthave
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1692649&group_id=55736
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: pd-extended
Group: v0.39.2
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Hans-Christoph Steiner (eighthave)
Assigned to: Hans-Christoph Steiner (eighthave)
Summary: sqrt~ giving only -inf/inf
Initial Comment:
For the G4 and Intel optimized builds of Pd-0.39.2-extended-test7 on Mac OS X, sqrt~ only returns -inf or inf. (Does this affect other platforms?) This is probably related to the auto-vectorization. This is not a problem on Pd-0.39.2-extended-test7 that was built for G3s.
Check the sqrt~-help.pd file for a test patch.
sqrt~ of the signal 9 returns -\infty, hence not 3 as expected. All tried int signals greater then zero returns -\infty. To test this, see either the attached patch (which is very close to the help-patch for [sqrt~]) or the help-patch for [sqrt~].
See also:
http://lists.puredata.info/pipermail/pd-list/2007-01/046266.html
----------------------------------------------------------------------
>Comment By: Hans-Christoph Steiner (eighthave)
Date: 2007-04-02 00:08
Message:
Logged In: YES
user_id=27104
Originator: YES
d_math.c, where sqrt.c isn't auto-vectorized, so this is probably caused
by a different optimization flag. Or maybe it's related to these
warnings:
d_math.c: In function 'init_rsqrt':
d_math.c:79: warning: dereferencing type-punned pointer will break
strict-aliasing rules
d_math.c: In function 'q8_rsqrt':
d_math.c:93: warning: dereferencing type-punned pointer will break
strict-aliasing rules
d_math.c: In function 'q8_sqrt':
d_math.c:101: warning: dereferencing type-punned pointer will break
strict-aliasing rules
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1692649&group_id=55736
More information about the Pd-dev
mailing list