xref: /titanic_50/usr/src/uts/common/sys/dl.h (revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1997 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28 /*	  All Rights Reserved  	*/
29 
30 #ifndef _SYS_DL_H
31 #define	_SYS_DL_H
32 
33 #pragma ident	"%Z%%M%	%I%	%E% SMI"
34 
35 #include <sys/isa_defs.h>
36 
37 #ifdef	__cplusplus
38 extern "C" {
39 #endif
40 
41 typedef	struct dl {
42 #ifdef _LONG_LONG_LTOH
43 	uint_t	dl_lop;
44 	int	dl_hop;
45 #else
46 	int	dl_hop;
47 	uint_t	dl_lop;
48 #endif
49 } dl_t;
50 
51 #ifdef __STDC__
52 extern dl_t	ladd(dl_t, dl_t);
53 extern dl_t	lsub(dl_t, dl_t);
54 extern dl_t	lmul(dl_t, dl_t);
55 extern dl_t	ldivide(dl_t, dl_t);
56 extern dl_t	lshiftl(dl_t, int);
57 extern dl_t	llog10(dl_t);
58 extern dl_t	lexp10(dl_t);
59 #else
60 extern dl_t	ladd();
61 extern dl_t	lsub();
62 extern dl_t	lmul();
63 extern dl_t	ldivide();
64 extern dl_t	lshiftl();
65 extern dl_t	llog10();
66 extern dl_t	lexp10();
67 #endif	/* __STDC__ */
68 
69 extern dl_t	lzero;
70 extern dl_t	lone;
71 extern dl_t	lten;
72 
73 #ifdef	__cplusplus
74 }
75 #endif
76 
77 #endif	/* _SYS_DL_H */
78