@@ -50,79 +50,79 @@ static intx_t Call(intx_t entry,
5050 intx_t arg1 = 0 ,
5151 intx_t arg2 = 0 ,
5252 intx_t arg3 = 0 ) {
53- #if defined(USING_SIMULATOR )
53+ #if defined(DART_INCLUDE_SIMULATOR )
5454 return Simulator::Current ()->Call (entry, arg0, arg1, arg2, arg3);
5555#else
5656 typedef intx_t (*F)(intx_t , intx_t , intx_t , intx_t );
5757 return reinterpret_cast <F>(entry)(arg0, arg1, arg2, arg3);
5858#endif
5959}
6060static float CallF (intx_t entry, intx_t arg0) {
61- #if defined(USING_SIMULATOR )
61+ #if defined(DART_INCLUDE_SIMULATOR )
6262 return Simulator::Current ()->CallF (entry, arg0);
6363#else
6464 typedef float (*F)(intx_t );
6565 return reinterpret_cast <F>(entry)(arg0);
6666#endif
6767}
6868static float CallF (intx_t entry, intx_t arg0, float arg1) {
69- #if defined(USING_SIMULATOR )
69+ #if defined(DART_INCLUDE_SIMULATOR )
7070 return Simulator::Current ()->CallF (entry, arg0, arg1);
7171#else
7272 typedef float (*F)(intx_t , float );
7373 return reinterpret_cast <F>(entry)(arg0, arg1);
7474#endif
7575}
7676static float CallF (intx_t entry, double arg0) {
77- #if defined(USING_SIMULATOR )
77+ #if defined(DART_INCLUDE_SIMULATOR )
7878 return Simulator::Current ()->CallF (entry, arg0);
7979#else
8080 typedef float (*F)(double );
8181 return reinterpret_cast <F>(entry)(arg0);
8282#endif
8383}
8484static float CallF (intx_t entry, float arg0) {
85- #if defined(USING_SIMULATOR )
85+ #if defined(DART_INCLUDE_SIMULATOR )
8686 return Simulator::Current ()->CallF (entry, arg0);
8787#else
8888 typedef float (*F)(float );
8989 return reinterpret_cast <F>(entry)(arg0);
9090#endif
9191}
9292static float CallF (intx_t entry, float arg0, float arg1) {
93- #if defined(USING_SIMULATOR )
93+ #if defined(DART_INCLUDE_SIMULATOR )
9494 return Simulator::Current ()->CallF (entry, arg0, arg1);
9595#else
9696 typedef float (*F)(float , float );
9797 return reinterpret_cast <F>(entry)(arg0, arg1);
9898#endif
9999}
100100static float CallF (intx_t entry, float arg0, float arg1, float arg2) {
101- #if defined(USING_SIMULATOR )
101+ #if defined(DART_INCLUDE_SIMULATOR )
102102 return Simulator::Current ()->CallF (entry, arg0, arg1, arg2);
103103#else
104104 typedef float (*F)(float , float , float );
105105 return reinterpret_cast <F>(entry)(arg0, arg1, arg2);
106106#endif
107107}
108108static intx_t CallI (intx_t entry, float arg0) {
109- #if defined(USING_SIMULATOR )
109+ #if defined(DART_INCLUDE_SIMULATOR )
110110 return Simulator::Current ()->CallI (entry, arg0);
111111#else
112112 typedef intx_t (*F)(float );
113113 return reinterpret_cast <F>(entry)(arg0);
114114#endif
115115}
116116static intx_t CallI (intx_t entry, float arg0, float arg1) {
117- #if defined(USING_SIMULATOR )
117+ #if defined(DART_INCLUDE_SIMULATOR )
118118 return Simulator::Current ()->CallI (entry, arg0, arg1);
119119#else
120120 typedef intx_t (*F)(float , float );
121121 return reinterpret_cast <F>(entry)(arg0, arg1);
122122#endif
123123}
124124static double CallD (intx_t entry, intx_t arg0) {
125- #if defined(USING_SIMULATOR )
125+ #if defined(DART_INCLUDE_SIMULATOR )
126126 return Simulator::Current ()->CallD (entry, arg0);
127127#else
128128 typedef double (*F)(intx_t );
@@ -131,7 +131,7 @@ static double CallD(intx_t entry, intx_t arg0) {
131131}
132132#if XLEN == 32
133133static double CallD (intx_t entry, int64_t arg0) {
134- #if defined(USING_SIMULATOR )
134+ #if defined(DART_INCLUDE_SIMULATOR )
135135 return Simulator::Current ()->CallD (entry, arg0);
136136#else
137137 typedef double (*F)(int64_t );
@@ -140,55 +140,55 @@ static double CallD(intx_t entry, int64_t arg0) {
140140}
141141#endif
142142static double CallD (intx_t entry, intx_t arg0, double arg1) {
143- #if defined(USING_SIMULATOR )
143+ #if defined(DART_INCLUDE_SIMULATOR )
144144 return Simulator::Current ()->CallD (entry, arg0, arg1);
145145#else
146146 typedef double (*F)(intx_t , double );
147147 return reinterpret_cast <F>(entry)(arg0, arg1);
148148#endif
149149}
150150static double CallD (intx_t entry, float arg0) {
151- #if defined(USING_SIMULATOR )
151+ #if defined(DART_INCLUDE_SIMULATOR )
152152 return Simulator::Current ()->CallD (entry, arg0);
153153#else
154154 typedef double (*F)(float );
155155 return reinterpret_cast <F>(entry)(arg0);
156156#endif
157157}
158158static double CallD (intx_t entry, double arg0) {
159- #if defined(USING_SIMULATOR )
159+ #if defined(DART_INCLUDE_SIMULATOR )
160160 return Simulator::Current ()->CallD (entry, arg0);
161161#else
162162 typedef double (*F)(double );
163163 return reinterpret_cast <F>(entry)(arg0);
164164#endif
165165}
166166static double CallD (intx_t entry, double arg0, double arg1) {
167- #if defined(USING_SIMULATOR )
167+ #if defined(DART_INCLUDE_SIMULATOR )
168168 return Simulator::Current ()->CallD (entry, arg0, arg1);
169169#else
170170 typedef double (*F)(double , double );
171171 return reinterpret_cast <F>(entry)(arg0, arg1);
172172#endif
173173}
174174static double CallD (intx_t entry, double arg0, double arg1, double arg2) {
175- #if defined(USING_SIMULATOR )
175+ #if defined(DART_INCLUDE_SIMULATOR )
176176 return Simulator::Current ()->CallD (entry, arg0, arg1, arg2);
177177#else
178178 typedef double (*F)(double , double , double );
179179 return reinterpret_cast <F>(entry)(arg0, arg1, arg2);
180180#endif
181181}
182182static intx_t CallI (intx_t entry, double arg0) {
183- #if defined(USING_SIMULATOR )
183+ #if defined(DART_INCLUDE_SIMULATOR )
184184 return Simulator::Current ()->CallI (entry, arg0);
185185#else
186186 typedef intx_t (*F)(double );
187187 return reinterpret_cast <F>(entry)(arg0);
188188#endif
189189}
190190static intx_t CallI (intx_t entry, double arg0, double arg1) {
191- #if defined(USING_SIMULATOR )
191+ #if defined(DART_INCLUDE_SIMULATOR )
192192 return Simulator::Current ()->CallI (entry, arg0, arg1);
193193#else
194194 typedef intx_t (*F)(double , double );
@@ -197,7 +197,7 @@ static intx_t CallI(intx_t entry, double arg0, double arg1) {
197197}
198198#if XLEN == 32
199199static int64_t CallI64 (intx_t entry, double arg0, double arg1 = 0.0 ) {
200- #if defined(USING_SIMULATOR )
200+ #if defined(DART_INCLUDE_SIMULATOR )
201201 return Simulator::Current ()->CallI64 (entry, arg0, arg1);
202202#else
203203 typedef int64_t (*F)(double , double );
0 commit comments