xref: /titanic_52/usr/src/uts/common/sys/dl.h (revision 799823bbed51a695d01e13511bbb1369980bb714)
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 2014 Garrett D'Amore <garrett@damore.org>
24  *
25  * Copyright 1997 Sun Microsystems, Inc.  All rights reserved.
26  * Use is subject to license terms.
27  */
28 
29 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
30 /*	  All Rights Reserved  	*/
31 
32 #ifndef _SYS_DL_H
33 #define	_SYS_DL_H
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 extern dl_t	ladd(dl_t, dl_t);
52 extern dl_t	lsub(dl_t, dl_t);
53 extern dl_t	lmul(dl_t, dl_t);
54 extern dl_t	ldivide(dl_t, dl_t);
55 extern dl_t	lshiftl(dl_t, int);
56 extern dl_t	llog10(dl_t);
57 extern dl_t	lexp10(dl_t);
58 
59 extern dl_t	lzero;
60 extern dl_t	lone;
61 extern dl_t	lten;
62 
63 #ifdef	__cplusplus
64 }
65 #endif
66 
67 #endif	/* _SYS_DL_H */
68