Skip to content

Commit bd26ac6

Browse files
committed
add isnanf and signbitf macros, map them to existing double version when float versions are absent
1 parent bb56b77 commit bd26ac6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

core/shared/platform/include/platform_common.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,15 @@ typedef void *(*thread_start_routine_t)(void *);
197197
#define NAN (0.0 / 0.0)
198198
#endif
199199

200+
/* add isnanf and signbitf macros, map them to existing double version when
201+
* float versions are absent */
202+
#ifndef signbitf
203+
#define signbitf signbit
204+
#endif
205+
#ifndef isnanf
206+
#define isnanf isnan
207+
#endif
208+
200209
#ifdef __cplusplus
201210
}
202211
#endif

0 commit comments

Comments
 (0)