From f8f51584a4a42561d89ebe9761712b3042ab7917 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Tue, 3 Feb 2004 17:18:14 +0000 Subject: correct psABI functions _Q_feq and friends (they return 'int' not long double); pointed out by Mark Kettenis, kettenis,chello,nl --- lib/libc/arch/sparc64/fpu/fpu_q.c | 14 +++++++------- lib/libc/arch/sparc64/fpu/fpu_q.h | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'lib/libc/arch') 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 *); -- cgit v1.2.3