summaryrefslogtreecommitdiff
blob: bf1f7edbfc0538bab5e14b7b430ec0d31692d343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
Bug: https://bugs.gentoo.org/show_bug.cgi?id=603902

--- a/qucs-core/src/components/verilog/bsim3v34nMOS.core.cpp
+++ b/qucs-core/src/components/verilog/bsim3v34nMOS.core.cpp
@@ -8432,9 +8432,9 @@
 fourkt=(5.5226012e-23*Temp);
 leffx2=(leff*leff);
 _save_flickernoise2(drainp,sourcep,((KF*pow(cdrain,AF))/(cox*leffx2)),EF,"flicker");
-_save_whitenoise2(drainp,sourcep,(((fourkt*ueff)*abs(qinv))/leffx2),"channel");
-_save_whitenoise2(drain,drainp,abs((fourkt*drainConductance)),"thermal");
-_save_whitenoise2(sourcep,source,abs((fourkt*sourceConductance)),"thermal");
+_save_whitenoise2(drainp,sourcep,(((fourkt*ueff)*std::abs(qinv))/leffx2),"channel");
+_save_whitenoise2(drain,drainp,std::abs((fourkt*drainConductance)),"thermal");
+_save_whitenoise2(sourcep,source,std::abs((fourkt*sourceConductance)),"thermal");
 }
 
 /* ------------------ end of verilog analog equations --------------------- */
--- a/qucs-core/src/components/verilog/bsim3v34pMOS.core.cpp
+++ b/qucs-core/src/components/verilog/bsim3v34pMOS.core.cpp
@@ -8432,9 +8432,9 @@
 fourkt=(5.5226012e-23*Temp);
 leffx2=(leff*leff);
 _save_flickernoise2(drainp,sourcep,((KF*pow(cdrain,AF))/(cox*leffx2)),EF,"flicker");
-_save_whitenoise2(drainp,sourcep,(((fourkt*ueff)*abs(qinv))/leffx2),"channel");
-_save_whitenoise2(drain,drainp,abs((fourkt*drainConductance)),"thermal");
-_save_whitenoise2(sourcep,source,abs((fourkt*sourceConductance)),"thermal");
+_save_whitenoise2(drainp,sourcep,(((fourkt*ueff)*std::abs(qinv))/leffx2),"channel");
+_save_whitenoise2(drain,drainp,std::abs((fourkt*drainConductance)),"thermal");
+_save_whitenoise2(sourcep,source,std::abs((fourkt*sourceConductance)),"thermal");
 }
 
 /* ------------------ end of verilog analog equations --------------------- */
--- a/qucs-core/src/components/verilog/bsim4v30nMOS.core.cpp
+++ b/qucs-core/src/components/verilog/bsim4v30nMOS.core.cpp
@@ -13629,16 +13629,16 @@
 {
 fourkt=(5.5226012e-23*Temp);
 leffx2=(leff*leff);
-_save_whitenoise2(drainp,sourcep,((((fourkt*NTNOI)*ueff)*abs((qd+qs)))/leffx2),"channel");
+_save_whitenoise2(drainp,sourcep,((((fourkt*NTNOI)*ueff)*std::abs((qd+qs)))/leffx2),"channel");
 }
 if
 (FNOIMOD==0)
 {
 leffx2=(leff*leff);
-_save_flickernoise2(drainp,sourcep,((KF*pow(abs(cdrain),AF))/(cox*leffx2)),EF,"flicker");
+_save_flickernoise2(drainp,sourcep,((KF*pow(std::abs(cdrain),AF))/(cox*leffx2)),EF,"flicker");
 }
-_save_whitenoise2(drain,drainp,abs((fourkt*gdtot)),"thermal");
-_save_whitenoise2(sourcep,source,abs((fourkt*gstot)),"thermal");
+_save_whitenoise2(drain,drainp,std::abs((fourkt*gdtot)),"thermal");
+_save_whitenoise2(sourcep,source,std::abs((fourkt*gstot)),"thermal");
 
 /* ------------------ end of verilog analog equations --------------------- */
 
--- a/qucs-core/src/components/verilog/bsim4v30pMOS.core.cpp
+++ b/qucs-core/src/components/verilog/bsim4v30pMOS.core.cpp
@@ -13629,16 +13629,16 @@
 {
 fourkt=(5.5226012e-23*Temp);
 leffx2=(leff*leff);
-_save_whitenoise2(drainp,sourcep,((((fourkt*NTNOI)*ueff)*abs((qd+qs)))/leffx2),"channel");
+_save_whitenoise2(drainp,sourcep,((((fourkt*NTNOI)*ueff)*std::abs((qd+qs)))/leffx2),"channel");
 }
 if
 (FNOIMOD==0)
 {
 leffx2=(leff*leff);
-_save_flickernoise2(drainp,sourcep,((KF*pow(abs(cdrain),AF))/(cox*leffx2)),EF,"flicker");
+_save_flickernoise2(drainp,sourcep,((KF*pow(std::abs(cdrain),AF))/(cox*leffx2)),EF,"flicker");
 }
-_save_whitenoise2(drain,drainp,abs((fourkt*gdtot)),"thermal");
-_save_whitenoise2(sourcep,source,abs((fourkt*gstot)),"thermal");
+_save_whitenoise2(drain,drainp,std::abs((fourkt*gdtot)),"thermal");
+_save_whitenoise2(sourcep,source,std::abs((fourkt*gstot)),"thermal");
 
 /* ------------------ end of verilog analog equations --------------------- */
 
--- a/qucs-core/src/components/verilog/hic2_full.core.cpp
+++ b/qucs-core/src/components/verilog/hic2_full.core.cpp
@@ -9642,7 +9642,7 @@
 #endif
 d_Q=Q_pT;
 while
-(((abs(d_Q)>=(1.0e-5*abs(Q_pT)))&&(l_it<=100)))
+(((std::abs(d_Q)>=(1.0e-5*std::abs(Q_pT)))&&(l_it<=100)))
 {
 #if defined(_DYNAMIC)
 d_Q0=d_Q;
@@ -19895,10 +19895,10 @@
 _save_whitenoise2(ci,ei,(twoq*it),"shot");
 _save_whitenoise2(ci,bi,(twoq*iavl),"shot");
 _save_whitenoise2(bi,ei,(twoq*ibei),"shot");
-_save_whitenoise2(bi,ci,(twoq*abs(ibci)),"shot");
+_save_whitenoise2(bi,ci,(twoq*std::abs(ibci)),"shot");
 _save_whitenoise2(bp,ei,(twoq*ibep),"shot");
-_save_whitenoise2(bp,ci,(twoq*abs(ijbcx)),"shot");
-_save_whitenoise2(si,ci,(twoq*abs(ijsc)),"shot");
+_save_whitenoise2(bp,ci,(twoq*std::abs(ijbcx)),"shot");
+_save_whitenoise2(si,ci,(twoq*std::abs(ijsc)),"shot");
 }
 
 /* ------------------ end of verilog analog equations --------------------- */
--- a/qucs-core/src/components/verilog/hicumL2V2p1.core.cpp
+++ b/qucs-core/src/components/verilog/hicumL2V2p1.core.cpp
@@ -4895,7 +4895,7 @@
 #endif
 d_Q=Q_pT;
 while
-(((abs(d_Q)>=(1.0e-5*abs(Q_pT)))&&(l_it<=100)))
+(((std::abs(d_Q)>=(1.0e-5*std::abs(Q_pT)))&&(l_it<=100)))
 {
 #if defined(_DYNAMIC)
 d_Q0=d_Q;
--- a/qucs-core/src/components/verilog/hicumL2V2p23.core.cpp
+++ b/qucs-core/src/components/verilog/hicumL2V2p23.core.cpp
@@ -11502,7 +11502,7 @@
 #endif
 d_Q=Q_pT;
 while
-(((abs(d_Q)>=(1.0e-5*abs(Q_pT)))&&(l_it<=100)))
+(((std::abs(d_Q)>=(1.0e-5*std::abs(Q_pT)))&&(l_it<=100)))
 {
 #if defined(_DYNAMIC)
 d_Q0=d_Q;
@@ -23949,10 +23949,10 @@
 }
 twoq=(2.0*1.602176462e-19);
 _save_whitenoise2(ci,bi,(twoq*iavl),"shot");
-_save_whitenoise2(bi,ci,(twoq*abs(ibci)),"shot");
+_save_whitenoise2(bi,ci,(twoq*std::abs(ibci)),"shot");
 _save_whitenoise2(bp,ei,(twoq*ibep),"shot");
-_save_whitenoise2(bp,ci,(twoq*abs(ijbcx)),"shot");
-_save_whitenoise2(si,ci,(twoq*abs(ijsc)),"shot");
+_save_whitenoise2(bp,ci,(twoq*std::abs(ijbcx)),"shot");
+_save_whitenoise2(si,ci,(twoq*std::abs(ijsc)),"shot");
 _save_whitenoise1(n1,((2*1.602176462e-19)*ibei),"shot");
 _load_static_residual1(n1,NP(n1));
 #if defined(_DERIVATE)
--- a/qucs-core/src/components/verilog/hicumL2V2p24.core.cpp
+++ b/qucs-core/src/components/verilog/hicumL2V2p24.core.cpp
@@ -6090,7 +6090,7 @@
 #endif
 d_Q=Q_pT;
 while
-(((abs(d_Q)>=(1.0e-5*abs(Q_pT)))&&(l_it<=100)))
+(((std::abs(d_Q)>=(1.0e-5*std::abs(Q_pT)))&&(l_it<=100)))
 {
 #if defined(_DYNAMIC)
 d_Q0=d_Q;
@@ -11855,10 +11855,10 @@
 }
 twoq=(2.0*1.602176462e-19);
 _save_whitenoise2(ci,bi,(twoq*iavl),"shot");
-_save_whitenoise2(bi,ci,(twoq*abs(ibci)),"shot");
+_save_whitenoise2(bi,ci,(twoq*std::abs(ibci)),"shot");
 _save_whitenoise2(bp,ei,(twoq*ibep),"shot");
-_save_whitenoise2(bp,ci,(twoq*abs(ijbcx)),"shot");
-_save_whitenoise2(si,ci,(twoq*abs(ijsc)),"shot");
+_save_whitenoise2(bp,ci,(twoq*std::abs(ijbcx)),"shot");
+_save_whitenoise2(si,ci,(twoq*std::abs(ijsc)),"shot");
 _save_whitenoise1(n1,((2*1.602176462e-19)*ibei),"shot");
 _load_static_residual1(n1,NP(n1));
 #if defined(_DERIVATE)
--- a/qucs-core/src/components/verilog/hicumL2V2p31n.core.cpp
+++ b/qucs-core/src/components/verilog/hicumL2V2p31n.core.cpp
@@ -6726,7 +6726,7 @@
 #endif
 d_Q=Q_pT;
 while
-(((abs(d_Q)>=(1.0e-5*abs(Q_pT)))&&(l_it<=100)))
+(((std::abs(d_Q)>=(1.0e-5*std::abs(Q_pT)))&&(l_it<=100)))
 {
 #if defined(_DYNAMIC)
 d_Q0=d_Q;
@@ -12817,10 +12817,10 @@
 }
 twoq=(2.0*1.602176462e-19);
 _save_whitenoise2(ci,bi,(twoq*iavl),"shot");
-_save_whitenoise2(bi,ci,(twoq*abs(ibci)),"shot");
+_save_whitenoise2(bi,ci,(twoq*std::abs(ibci)),"shot");
 _save_whitenoise2(bp,ei,(twoq*ibep),"shot");
-_save_whitenoise2(bp,ci,(twoq*abs(ijbcx)),"shot");
-_save_whitenoise2(si,ci,(twoq*abs(ijsc)),"shot");
+_save_whitenoise2(bp,ci,(twoq*std::abs(ijbcx)),"shot");
+_save_whitenoise2(si,ci,(twoq*std::abs(ijsc)),"shot");
 if
 (flcono==1)
 {