Files
Arquivotheca.SunOS-4.1.4/lib/libc/gen/common/_Q_fcc.c
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

60 lines
850 B
C

#ifndef lint
static char sccsid[] = "@(#)_Q_fcc.c 1.1 94/10/31 SMI";
#endif
/*
* Copyright (c) 1989 by Sun Microsystems, Inc.
*/
/* integer function _Q_feq, _Q_fne, _Q_fgt, _Q_fge, _Q_flt, _Q_fle */
#include "_Qquad.h"
int _Q_feq(x,y)
QUAD x,y;
{
enum fcc_type fcc;
fcc = _Q_cmp(x,y);
return (fcc_equal==fcc);
}
int _Q_fne(x,y)
QUAD x,y;
{
enum fcc_type fcc;
fcc = _Q_cmp(x,y);
return (fcc_equal!=fcc);
}
int _Q_fgt(x,y)
QUAD x,y;
{
enum fcc_type fcc;
fcc = _Q_cmpe(x,y);
return (fcc_greater==fcc);
}
int _Q_fge(x,y)
QUAD x,y;
{
enum fcc_type fcc;
fcc = _Q_cmpe(x,y);
return (fcc_greater==fcc||fcc_equal==fcc);
}
int _Q_flt(x,y)
QUAD x,y;
{
enum fcc_type fcc;
fcc = _Q_cmpe(x,y);
return (fcc_less==fcc);
}
int _Q_fle(x,y)
QUAD x,y;
{
enum fcc_type fcc;
fcc = _Q_cmpe(x,y);
return (fcc_less==fcc||fcc_equal==fcc);
}