diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2004-02-03 17:18:14 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2004-02-03 17:18:14 +0000 |
commit | f8f51584a4a42561d89ebe9761712b3042ab7917 (patch) | |
tree | 79b3a59e8286d56d85cff97cfbadb92c17fd6306 /lib/libc/arch | |
parent | cee132488eb0b5c2ba9b271e636150ffb1139cb7 (diff) |
correct psABI functions _Q_feq and friends (they return 'int' not long double);
pointed out by Mark Kettenis, kettenis,chello,nl
Diffstat (limited to 'lib/libc/arch')
-rw-r--r-- | lib/libc/arch/sparc64/fpu/fpu_q.c | 14 | ||||
-rw-r--r-- | lib/libc/arch/sparc64/fpu/fpu_q.h | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/lib/libc/arch/sparc64/fpu/fpu_q.c b/lib/libc/arch/sparc64/fpu/fpu_q.c index fa6904c53e1..b2e9cb13c2a 100644 --- a/lib/libc/arch/sparc64/fpu/fpu_q.c +++ b/lib/libc/arch/sparc64/fpu/fpu_q.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_q.c,v 1.1 2003/07/21 18:41:30 jason Exp $ */ +/* $OpenBSD: fpu_q.c,v 1.2 2004/02/03 17:18:13 jason Exp $ */ /* * Copyright (c) 2003 Jason L. Wright (jason@thought.net) @@ -155,37 +155,37 @@ _Q_qtou(long double a) return (v); } -long double +int _Q_feq(long double a, long double b) { return (_Qp_feq(&a, &b)); } -long double +int _Q_fne(long double a, long double b) { return (_Qp_fne(&a, &b)); } -long double +int _Q_fge(long double a, long double b) { return (_Qp_fge(&a, &b)); } -long double +int _Q_fgt(long double a, long double b) { return (_Qp_fgt(&a, &b)); } -long double +int _Q_flt(long double a, long double b) { return (_Qp_flt(&a, &b)); } -long double +int _Q_fle(long double a, long double b) { return (_Qp_fle(&a, &b)); diff --git a/lib/libc/arch/sparc64/fpu/fpu_q.h b/lib/libc/arch/sparc64/fpu/fpu_q.h index 166bbfd7ed0..48300f7ae12 100644 --- a/lib/libc/arch/sparc64/fpu/fpu_q.h +++ b/lib/libc/arch/sparc64/fpu/fpu_q.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_q.h,v 1.1 2003/07/21 18:41:30 jason Exp $ */ +/* $OpenBSD: fpu_q.h,v 1.2 2004/02/03 17:18:13 jason Exp $ */ /* * Copyright (c) 2003 Jason L. Wright (jason@thought.net) @@ -40,12 +40,12 @@ long double _Q_mul(long double, long double); long double _Q_div(long double, long double); long double _Q_sub(long double, long double); long double _Q_add(long double, long double); -long double _Q_feq(long double, long double); -long double _Q_fne(long double, long double); -long double _Q_fge(long double, long double); -long double _Q_fgt(long double, long double); -long double _Q_flt(long double, long double); -long double _Q_fle(long double, long double); +int _Q_feq(long double, long double); +int _Q_fne(long double, long double); +int _Q_fge(long double, long double); +int _Q_fgt(long double, long double); +int _Q_flt(long double, long double); +int _Q_fle(long double, long double); void _Qp_add(long double *, long double *, long double *); void _Qp_div(long double *, long double *, long double *); |