/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1989 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _QUAD_INCLUDED_
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Header file for long double == quadruple-precision run-time support. C
* "long double" and Fortran "real*16" are implemented identically on all
* architectures.
*
* Thus the quad run-time support is intentionally coded as C-callable routines
* for portability.
*
* Mixed-case identifiers with leading _ are intentionally chosen to minimize
* conflicts with user-defined C and Fortran identifiers.
*/
#include <math.h> /* to get float macros */
#ifdef __STDC__ /* are we there yet */
#define QUAD long double
#define SINGLE float
#define SINGLERESULT float
#define RETURNSINGLE(x) return x
#define ASSIGNSINGLERESULT(x,y) x = y
#else
struct quadstruct {
unsigned parts[4]
};
#endif
extern enum fcc_type
/* only on signaling NaN */
extern enum fcc_type
/* on quiet NaN */
/* Conversion routines are pretty straightforward. */
/******
*****/
{
fcc_equal = 0,
} ;
typedef /* FPU register viewed as single components. */
struct
{
}
typedef /* FPU register viewed as double components. */
struct
{
}
typedef /* FPU register viewed as extended components. */
struct
{
}
{
} ;
extern void _Q_get_rp_rd(void);
extern void _Q_set_exception(unsigned);
#endif /* QUAD_INCLUDED */