summaryrefslogtreecommitdiff
path: root/plugins/ZamTube/triode.h
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2019-01-14 23:56:10 +1100
committerDamien Zammit <damien@zamaudio.com>2019-01-14 23:56:10 +1100
commit54bc96b04622c6c85bebd1e6af1fcd2f7eb748c9 (patch)
tree09a1126317d8e8543294e1c1713e5f95d7b9f7f2 /plugins/ZamTube/triode.h
parent05d152183a5432813dd4a73fc77393a1a85d1c96 (diff)
Introduce taylor expansion to reduce load by > 300x
Diffstat (limited to 'plugins/ZamTube/triode.h')
-rw-r--r--plugins/ZamTube/triode.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/ZamTube/triode.h b/plugins/ZamTube/triode.h
index 5a4e3d3..ae552fe 100644
--- a/plugins/ZamTube/triode.h
+++ b/plugins/ZamTube/triode.h
@@ -30,13 +30,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
typedef double T;
-static inline float
-sanitize_denormal(float v) {
- if(!std::isnormal(v) || !std::isfinite(v))
- return 0.f;
- return v;
-}
-
class Triode {
public:
T mu, kp, kvb, kg1, kx;
@@ -46,7 +39,6 @@ public:
T getIa(T Vgk, T Vak);
T evaluateImplicitEquation(T Vak, T Vgk, T a, T R);
T iterateNewtonRaphson(T x, T dx, T Vgk, T a, T R);
- const float *lut_ip;
bool insane;
};