1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-aj,v 1.1 2006/06/04 13:52:57 joerg Exp $
--- lib/libruntime/interpfunc.c.orig 2006-05-21 16:34:25.000000000 +0000
+++ lib/libruntime/interpfunc.c
@@ -1842,7 +1842,11 @@ OPCODE(fcmpg, 150, 0, 2, 1)
op_stack_pop_float(ENV(f), OPSTACK(f), &value2);
op_stack_pop_float(ENV(f), OPSTACK(f), &value1);
+#ifdef isnan /* assume C99 style macro */
+ if (isnan(value1) || isnan(value2))
+#else
if (isnanf(value1) || isnanf(value2))
+#endif
op_stack_push_int(ENV(f), OPSTACK(f), 1);
else if (value1 > value2)
op_stack_push_int(ENV(f), OPSTACK(f), 1);
|