Use normal style for checking for long double support. Add missing
aliases for fminl and fmaxl, fabsl is here just for symmetry.
This commit is contained in:
parent
6a37a8bcd1
commit
07d3f56792
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBM_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: s_fabs.c,v 1.10 2002/05/26 22:01:55 wiz Exp $");
|
||||
__RCSID("$NetBSD: s_fabs.c,v 1.11 2013/11/29 22:16:10 joerg Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -22,6 +22,10 @@ __RCSID("$NetBSD: s_fabs.c,v 1.10 2002/05/26 22:01:55 wiz Exp $");
|
|||
#include "math.h"
|
||||
#include "math_private.h"
|
||||
|
||||
#ifndef __HAVE_LONG_DOUBLE
|
||||
__strong_alias(fabsl, fabs)
|
||||
#endif
|
||||
|
||||
double
|
||||
fabs(double x)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: s_fabsl.c,v 1.2 2010/09/17 20:39:39 christos Exp $ */
|
||||
/* $NetBSD: s_fabsl.c,v 1.3 2013/11/29 22:16:10 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2010 The NetBSD Foundation, Inc.
|
||||
|
@ -26,7 +26,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: s_fabsl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
|
||||
__RCSID("$NetBSD: s_fabsl.c,v 1.3 2013/11/29 22:16:10 joerg Exp $");
|
||||
|
||||
#include <math.h>
|
||||
#include <machine/ieee.h>
|
||||
|
@ -35,7 +35,7 @@ __RCSID("$NetBSD: s_fabsl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
|
|||
* fabsl(long double x)
|
||||
* This function returns the absolute value of its argumetn x, |x|.
|
||||
*/
|
||||
#ifdef EXT_EXP_INFNAN
|
||||
#ifdef __HAVE_LONG_DOUBLE
|
||||
long double
|
||||
fabsl(long double x)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: s_fmax.c,v 1.2 2010/03/08 01:05:20 snj Exp $");
|
||||
__RCSID("$NetBSD: s_fmax.c,v 1.3 2013/11/29 22:16:10 joerg Exp $");
|
||||
#ifdef notdef
|
||||
__FBSDID("$FreeBSD: src/lib/msun/src/s_fmax.c,v 1.1 2004/06/30 07:04:01 das Exp $");
|
||||
#endif
|
||||
|
@ -34,6 +34,10 @@ __FBSDID("$FreeBSD: src/lib/msun/src/s_fmax.c,v 1.1 2004/06/30 07:04:01 das Exp
|
|||
|
||||
#include <machine/ieee.h>
|
||||
|
||||
#ifndef __HAVE_LONG_DOUBLE
|
||||
__strong_alias(fmaxl, fmax)
|
||||
#endif
|
||||
|
||||
double
|
||||
fmax(double x, double y)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: s_fmaxl.c,v 1.3 2011/07/04 11:46:41 mrg Exp $");
|
||||
__RCSID("$NetBSD: s_fmaxl.c,v 1.4 2013/11/29 22:16:10 joerg Exp $");
|
||||
#ifdef notdef
|
||||
__FBSDID("$FreeBSD: src/lib/msun/src/s_fmaxl.c,v 1.1 2004/06/30 07:04:01 das Exp $");
|
||||
#endif
|
||||
|
@ -34,7 +34,7 @@ __FBSDID("$FreeBSD: src/lib/msun/src/s_fmaxl.c,v 1.1 2004/06/30 07:04:01 das Exp
|
|||
#include <math.h>
|
||||
|
||||
#include <machine/ieee.h>
|
||||
#ifdef EXT_EXP_INFNAN
|
||||
#ifdef __HAVE_LONG_DOUBLE
|
||||
long double
|
||||
fmaxl(long double x, long double y)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: s_fmin.c,v 1.1 2009/10/04 22:04:30 christos Exp $");
|
||||
__RCSID("$NetBSD: s_fmin.c,v 1.2 2013/11/29 22:16:10 joerg Exp $");
|
||||
#ifdef notdef
|
||||
__FBSDID("$FreeBSD: src/lib/msun/src/s_fmin.c,v 1.1 2004/06/30 07:04:01 das Exp $");
|
||||
#endif
|
||||
|
@ -34,6 +34,10 @@ __FBSDID("$FreeBSD: src/lib/msun/src/s_fmin.c,v 1.1 2004/06/30 07:04:01 das Exp
|
|||
|
||||
#include <machine/ieee.h>
|
||||
|
||||
#ifndef __HAVE_LONG_DOUBLE
|
||||
__strong_alias(fminl, fmin)
|
||||
#endif
|
||||
|
||||
double
|
||||
fmin(double x, double y)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: s_fminl.c,v 1.3 2011/07/04 11:46:41 mrg Exp $");
|
||||
__RCSID("$NetBSD: s_fminl.c,v 1.4 2013/11/29 22:16:10 joerg Exp $");
|
||||
#ifdef notdef
|
||||
__FBSDID("$FreeBSD: src/lib/msun/src/s_fminl.c,v 1.1 2004/06/30 07:04:01 das Exp $");
|
||||
#endif
|
||||
|
@ -34,7 +34,7 @@ __FBSDID("$FreeBSD: src/lib/msun/src/s_fminl.c,v 1.1 2004/06/30 07:04:01 das Exp
|
|||
#include <string.h>
|
||||
|
||||
#include <machine/ieee.h>
|
||||
#ifdef EXT_EXP_INFNAN
|
||||
#ifdef __HAVE_LONG_DOUBLE
|
||||
long double
|
||||
fminl(long double x, long double y)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue