203 typedef int (*int_fnP_thread_t_i_gregset_t)(thread_t, int, gregset_t);
204 typedef int (*int_fnP_thread_t_i)(thread_t, int);
205 typedef int (*int_fnP_thread_t)(thread_t);
206
207 typedef int (*int_fnP_cond_tP_mutex_tP_timestruc_tP)(cond_t *cv, mutex_t *mx, timestruc_t *abst);
208 typedef int (*int_fnP_cond_tP_mutex_tP)(cond_t *cv, mutex_t *mx);
209
210 // typedef for missing API in libc
211 typedef int (*int_fnP_mutex_tP_i_vP)(mutex_t *, int, void *);
212 typedef int (*int_fnP_mutex_tP)(mutex_t *);
213 typedef int (*int_fnP_cond_tP_i_vP)(cond_t *cv, int scope, void *arg);
214 typedef int (*int_fnP_cond_tP)(cond_t *cv);
215 };
216 #endif // SOLARIS
217
218 //----------------------------------------------------------------------------------------------------
219 // Debugging
220
221 #define DEBUG_EXCEPTION ::abort();
222
223 #ifdef ARM
224 #ifdef SOLARIS
225 #define BREAKPOINT __asm__ volatile (".long 0xe1200070")
226 #else
227 #define BREAKPOINT __asm__ volatile (".long 0xe7f001f0")
228 #endif
229 #else
230 extern "C" void breakpoint();
231 #define BREAKPOINT ::breakpoint()
232 #endif
233
234 // checking for nanness
235 #ifdef SOLARIS
236 #ifdef SPARC
237 inline int g_isnan(float f) { return isnanf(f); }
238 #else
239 // isnanf() broken on Intel Solaris use isnand()
240 inline int g_isnan(float f) { return isnand(f); }
241 #endif
242 inline int g_isnan(double f) { return isnand(f); }
243 #elif defined(__APPLE__)
|
203 typedef int (*int_fnP_thread_t_i_gregset_t)(thread_t, int, gregset_t);
204 typedef int (*int_fnP_thread_t_i)(thread_t, int);
205 typedef int (*int_fnP_thread_t)(thread_t);
206
207 typedef int (*int_fnP_cond_tP_mutex_tP_timestruc_tP)(cond_t *cv, mutex_t *mx, timestruc_t *abst);
208 typedef int (*int_fnP_cond_tP_mutex_tP)(cond_t *cv, mutex_t *mx);
209
210 // typedef for missing API in libc
211 typedef int (*int_fnP_mutex_tP_i_vP)(mutex_t *, int, void *);
212 typedef int (*int_fnP_mutex_tP)(mutex_t *);
213 typedef int (*int_fnP_cond_tP_i_vP)(cond_t *cv, int scope, void *arg);
214 typedef int (*int_fnP_cond_tP)(cond_t *cv);
215 };
216 #endif // SOLARIS
217
218 //----------------------------------------------------------------------------------------------------
219 // Debugging
220
221 #define DEBUG_EXCEPTION ::abort();
222
223 #ifdef ARM32
224 #ifdef SOLARIS
225 #define BREAKPOINT __asm__ volatile (".long 0xe1200070")
226 #else
227 #define BREAKPOINT __asm__ volatile (".long 0xe7f001f0")
228 #endif
229 #else
230 extern "C" void breakpoint();
231 #define BREAKPOINT ::breakpoint()
232 #endif
233
234 // checking for nanness
235 #ifdef SOLARIS
236 #ifdef SPARC
237 inline int g_isnan(float f) { return isnanf(f); }
238 #else
239 // isnanf() broken on Intel Solaris use isnand()
240 inline int g_isnan(float f) { return isnand(f); }
241 #endif
242 inline int g_isnan(double f) { return isnand(f); }
243 #elif defined(__APPLE__)
|