[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] Re: SF.net SVN: supercollider:[8089] trunk/Source/plugins
- To: sc-dev@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-dev] Re: SF.net SVN: supercollider:[8089] trunk/Source/plugins
- From: "Dan Stowell" <danstowell@xxxxxxxxx>
- Date: Tue, 9 Dec 2008 22:43:55 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ow8A34/0rtgF84WJK5tGsWG1K3HmdWKZlUBRcU1eLD0=; b=HC52YyAMTohI3OhL2tmOndUpuIC0dAuDxAA6EkvygINwOaT0kVHx/PYz7s/VBhKjTM cLS+aPrZfKWDdPn05t+WH4Bg7GnqFpszQ0NMYeCB4X6UgzlMC7WinDHzuFSjdehrWDmM 5D25Uh5PKs453qXkFYea0DhJRMcWncG1M3Wl0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=QT1AsVY8vXZMJis/VfkmyedRIFWoA6ibnWdZTMS+AGc4uon6uPRSOpvPAOrOt6nrXR frNbSd/nd2FyrRHi/ZHXrzr0jvZiq9rnRPwoFgC7L7dYxLsGJI1VHdcEmSdtCrHbntbp lA0C0T66Wpovb9F40/NaXfycGwSFNkJCNB6hE=
- In-reply-to: <ghmj51$ima$1@xxxxxxxxxxxxx>
- List-id: SuperCollider developers mailing list <sc-devel.create.ucsb.edu>
- References: <E1LA7LZ-0000H6-Ng@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <ghmj51$ima$1@xxxxxxxxxxxxx>
- Reply-to: sc-dev@xxxxxxxxxxxxxxxx
- Sender: owner-sc-dev@xxxxxxxxxxxxxxxx
2008/12/9, Tim Blechmann <tim@xxxxxxxxxx>:
> > Revision: 8089
> > http://supercollider.svn.sourceforge.net/supercollider/?rev=8089&view=rev
> > Author: danstowell
> > Date: 2008-12-09 18:30:13 +0000 (Tue, 09 Dec 2008)
> >
> > Log Message:
> > -----------
> > Fix some compiler warnings: double->float stuff, and unneeded
> > double-declaration of vars
>
>
> hm, what about using c99-style single-precision math functions like expf
> or c++-style cmath functions like std::exp? should be both faster and
> cleaner to read ...
I was just making explicit, the current implicit cast. But AFAIK using
expf() would be fine, I doubt that there's any particular need for the
exponential calculation to be double-precision given that the result
is stored in single-precision.
Actually this appears in many places in UGen code. There are many occurrences of
somefloat == 0.f ? 0.f : exp(log001/(somethingelse))
and it's possible that the double-precision exp() is pointless in many
places. Anyone else got thoughts about this? I haven't anything
empirical on this...
Dan
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/