fpgetmask.c revision 189647
155714Skris/* $NetBSD: fpgetmask.c,v 1.4 2008/04/28 20:23:00 martin Exp $ */ 255714Skris 355714Skris/*- 455714Skris * Copyright (c) 1997 The NetBSD Foundation, Inc. 555714Skris * All rights reserved. 655714Skris * 755714Skris * This code is derived from software contributed to The NetBSD Foundation 8280304Sjkim * by Neil A. Carson and Mark Brinicombe 955714Skris * 1055714Skris * Redistribution and use in source and binary forms, with or without 1155714Skris * modification, are permitted provided that the following conditions 1255714Skris * are met: 1355714Skris * 1. Redistributions of source code must retain the above copyright 1455714Skris * notice, this list of conditions and the following disclaimer. 15280304Sjkim * 2. Redistributions in binary form must reproduce the above copyright 1655714Skris * notice, this list of conditions and the following disclaimer in the 1755714Skris * documentation and/or other materials provided with the distribution. 1855714Skris * 1955714Skris * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2055714Skris * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2155714Skris * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22280304Sjkim * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2355714Skris * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2455714Skris * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2555714Skris * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2655714Skris * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2755714Skris * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2855714Skris * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2955714Skris * POSSIBILITY OF SUCH DAMAGE. 3055714Skris */ 3155714Skris 3255714Skris#include <sys/cdefs.h> 3355714Skris__FBSDID("$FreeBSD: head/lib/libc/softfloat/fpgetmask.c 189647 2009-03-10 21:13:26Z delphij $"); 3455714Skris 3555714Skris#include "namespace.h" 3655714Skris 37280304Sjkim#include <ieeefp.h> 3855714Skris#ifdef SOFTFLOAT_FOR_GCC 3955714Skris#include "softfloat-for-gcc.h" 40280304Sjkim#endif 4155714Skris#include "milieu.h" 4255714Skris#include "softfloat.h" 4355714Skris 4455714Skris#ifdef __weak_alias 4555714Skris__weak_alias(fpgetmask,_fpgetmask) 4655714Skris#endif 4755714Skris 4855714Skrisfp_except 4955714Skrisfpgetmask(void) 5055714Skris{ 5155714Skris 52280304Sjkim return float_exception_mask; 5355714Skris} 5455714Skris