Home | History | Annotate | Line # | Download | only in gen
fpgetsticky.c revision 1.9.6.2
      1  1.9.6.2  martin /* $NetBSD: fpgetsticky.c,v 1.9.6.2 2008/05/10 15:31:05 martin Exp $ */
      2  1.9.6.2  martin 
      3  1.9.6.2  martin /*-
      4  1.9.6.2  martin  * Copyright (c) 2001 Ross Harvey
      5  1.9.6.2  martin  * All rights reserved.
      6  1.9.6.2  martin  *
      7  1.9.6.2  martin  * Redistribution and use in source and binary forms, with or without
      8  1.9.6.2  martin  * modification, are permitted provided that the following conditions
      9  1.9.6.2  martin  * are met:
     10  1.9.6.2  martin  * 1. Redistributions of source code must retain the above copyright
     11  1.9.6.2  martin  *    notice, this list of conditions and the following disclaimer.
     12  1.9.6.2  martin  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.9.6.2  martin  *    notice, this list of conditions and the following disclaimer in the
     14  1.9.6.2  martin  *    documentation and/or other materials provided with the distribution.
     15  1.9.6.2  martin  * 3. All advertising materials mentioning features or use of this software
     16  1.9.6.2  martin  *    must display the following acknowledgement:
     17  1.9.6.2  martin  *	This product includes software developed by the NetBSD
     18  1.9.6.2  martin  *	Foundation, Inc. and its contributors.
     19  1.9.6.2  martin  * 4. Neither the name of The NetBSD Foundation nor the names of its
     20  1.9.6.2  martin  *    contributors may be used to endorse or promote products derived
     21  1.9.6.2  martin  *    from this software without specific prior written permission.
     22  1.9.6.2  martin  *
     23  1.9.6.2  martin  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     24  1.9.6.2  martin  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     25  1.9.6.2  martin  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     26  1.9.6.2  martin  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     27  1.9.6.2  martin  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     28  1.9.6.2  martin  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     29  1.9.6.2  martin  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     30  1.9.6.2  martin  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     31  1.9.6.2  martin  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     32  1.9.6.2  martin  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     33  1.9.6.2  martin  * POSSIBILITY OF SUCH DAMAGE.
     34  1.9.6.2  martin  */
     35  1.9.6.2  martin 
     36  1.9.6.2  martin #include <sys/cdefs.h>
     37  1.9.6.2  martin #if defined(LIBC_SCCS) && !defined(lint)
     38  1.9.6.2  martin __RCSID("$NetBSD: fpgetsticky.c,v 1.9.6.2 2008/05/10 15:31:05 martin Exp $");
     39  1.9.6.2  martin #endif /* LIBC_SCCS and not lint */
     40  1.9.6.2  martin 
     41  1.9.6.2  martin #include "namespace.h"
     42  1.9.6.2  martin 
     43  1.9.6.2  martin #include <ieeefp.h>
     44  1.9.6.2  martin #include <machine/sysarch.h>
     45  1.9.6.2  martin 
     46  1.9.6.2  martin #ifdef __weak_alias
     47  1.9.6.2  martin __weak_alias(fpgetsticky,_fpgetsticky)
     48  1.9.6.2  martin #endif
     49  1.9.6.2  martin 
     50  1.9.6.2  martin fp_except
     51  1.9.6.2  martin fpgetsticky(void)
     52  1.9.6.2  martin {
     53  1.9.6.2  martin 	return sysarch(ALPHA_FPGETSTICKY, 0L);
     54  1.9.6.2  martin }
     55