From 50da26feb671623f6132c91e6316f2c9c6be780c Mon Sep 17 00:00:00 2001 From: dwarning Date: Thu, 30 Jun 2011 18:18:14 +0000 Subject: [PATCH] macros for CeilingPow and smoothZero --- ChangeLog | 4 ++++ src/spicelib/devices/hisim2/hsm2eval.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7a2606f58..71f885103 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-06-30 Dietmar Warning + * src/spicelib/devices/hisim2/hsm2eval.c: use macros for CeilingPow + and smoothZero instead of static functions + 2011-06-30 Robert Larice * src/ciderlib/oned/oneadmit.c , * src/ciderlib/twod/twoadmit.c : diff --git a/src/spicelib/devices/hisim2/hsm2eval.c b/src/spicelib/devices/hisim2/hsm2eval.c index 31af35016..2216ca822 100644 --- a/src/spicelib/devices/hisim2/hsm2eval.c +++ b/src/spicelib/devices/hisim2/hsm2eval.c @@ -239,6 +239,7 @@ double TMF1 , TMF2 , TMF3 , TMF4 ; * smoothZero: flooring to zero. * y = 0.5 ( x + sqrt( x^2 + 4 delta^2 ) ) *-----------------*/ +/* static double smoothZero ( double x, @@ -250,6 +251,7 @@ static double smoothZero if (dx) *dx = 0.5 * ( 1.0 + x / sqr ) ; return 0.5 * ( x + sqr ) ; } +*/ /*---------------------------------------------------* * CeilingPow: ceiling for positive x, flooring for negative x. * y = x * xmax / ( x^{2m} + xmax^{2m} )^{1/(2m)} @@ -258,6 +260,7 @@ static double smoothZero * - -xmax < y < xmax. * - dy/dx|_{x=0} = 1. *-----------------*/ +/* static double CeilingPow ( double x, @@ -300,7 +303,7 @@ static double CeilingPow (*dx) = xmax * xmp * dnm / arg ; return result ; } - +*/ /*---------------------------------------------------* * CeilingPow: ceiling for positive x, flooring for negative x. * y = x * xmax / ( x^{2m} + xmax^{2m} )^{1/(2m)}