xref: /openbsd-src/lib/libc/arch/alpha/gen/fpgetsticky.c (revision 298116df5b000b61a69743d21c92035418df8900)
1*298116dfSespie /*	$OpenBSD: fpgetsticky.c,v 1.5 2005/08/07 16:40:13 espie Exp $	*/
220af5372Smiod /*	$NetBSD: fpgetsticky.c,v 1.6 2002/01/13 21:45:39 thorpej Exp $ */
38d0618b8Sniklas 
420af5372Smiod /*-
520af5372Smiod  * Copyright (c) 2001 Ross Harvey
6df930be7Sderaadt  * All rights reserved.
7df930be7Sderaadt  *
8df930be7Sderaadt  * Redistribution and use in source and binary forms, with or without
9df930be7Sderaadt  * modification, are permitted provided that the following conditions
10df930be7Sderaadt  * are met:
11df930be7Sderaadt  * 1. Redistributions of source code must retain the above copyright
12df930be7Sderaadt  *    notice, this list of conditions and the following disclaimer.
13df930be7Sderaadt  * 2. Redistributions in binary form must reproduce the above copyright
14df930be7Sderaadt  *    notice, this list of conditions and the following disclaimer in the
15df930be7Sderaadt  *    documentation and/or other materials provided with the distribution.
16df930be7Sderaadt  * 3. All advertising materials mentioning features or use of this software
17df930be7Sderaadt  *    must display the following acknowledgement:
1820af5372Smiod  *	This product includes software developed by the NetBSD
1920af5372Smiod  *	Foundation, Inc. and its contributors.
2020af5372Smiod  * 4. Neither the name of The NetBSD Foundation nor the names of its
2120af5372Smiod  *    contributors may be used to endorse or promote products derived
2220af5372Smiod  *    from this software without specific prior written permission.
23df930be7Sderaadt  *
2420af5372Smiod  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2520af5372Smiod  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2620af5372Smiod  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2720af5372Smiod  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2820af5372Smiod  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2920af5372Smiod  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
3020af5372Smiod  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
3120af5372Smiod  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
3220af5372Smiod  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
3320af5372Smiod  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3420af5372Smiod  * POSSIBILITY OF SUCH DAMAGE.
35df930be7Sderaadt  */
36df930be7Sderaadt 
3720af5372Smiod #include <sys/types.h>
38df930be7Sderaadt #include <ieeefp.h>
3920af5372Smiod #include <machine/sysarch.h>
40df930be7Sderaadt 
41df930be7Sderaadt fp_except
fpgetsticky(void)4220af5372Smiod fpgetsticky(void)
43df930be7Sderaadt {
4420af5372Smiod 	return sysarch(ALPHA_FPGETSTICKY, 0L);
45df930be7Sderaadt }
46