Blame sysdeps/ieee754/ldbl-128ibm/strtold_l.c

Packit Service 82fcde
/* Copyright (C) 1999-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#include <math.h>
Packit Service 82fcde
#include <stdlib.h>
Packit Service 82fcde
#include <wchar.h>
Packit Service 82fcde
Packit Service 82fcde
/* The actual implementation for all floating point sizes is in strtod.c.
Packit Service 82fcde
   These macros tell it to produce the `long double' version, `strtold'.  */
Packit Service 82fcde
Packit Service 82fcde
#define FLOAT		long double
Packit Service 82fcde
#define FLT		LDBL
Packit Service 82fcde
#ifdef USE_WIDE_CHAR
Packit Service 82fcde
extern long double ____new_wcstold_l (const wchar_t *, wchar_t **, locale_t);
Packit Service 82fcde
# define STRTOF		__new_wcstold_l
Packit Service 82fcde
# define __STRTOF	____new_wcstold_l
Packit Service 82fcde
# define ____STRTOF_INTERNAL ____wcstold_l_internal
Packit Service 82fcde
# define STRTOF_NAN	__wcstold_nan
Packit Service 82fcde
#else
Packit Service 82fcde
extern long double ____new_strtold_l (const char *, char **, locale_t);
Packit Service 82fcde
# define STRTOF		__new_strtold_l
Packit Service 82fcde
# define __STRTOF	____new_strtold_l
Packit Service 82fcde
# define ____STRTOF_INTERNAL ____strtold_l_internal
Packit Service 82fcde
# define STRTOF_NAN	__strtold_nan
Packit Service 82fcde
#endif
Packit Service 82fcde
extern __typeof (__STRTOF) STRTOF;
Packit Service 82fcde
libc_hidden_proto (__STRTOF)
Packit Service 82fcde
libc_hidden_proto (STRTOF)
Packit Service 82fcde
#define MPN2FLOAT	__mpn_construct_long_double
Packit Service 82fcde
#define FLOAT_HUGE_VAL	HUGE_VALL
Packit Service 82fcde
Packit Service 82fcde
#include <strtod_l.c>
Packit Service 82fcde
Packit Service 82fcde
#ifdef __LONG_DOUBLE_MATH_OPTIONAL
Packit Service 82fcde
# include <math_ldbl_opt.h>
Packit Service 82fcde
# ifdef USE_WIDE_CHAR
Packit Service 82fcde
weak_alias (____new_wcstold_l, ___new_wcstold_l);
Packit Service 82fcde
long_double_symbol (libc, ___new_wcstold_l, wcstold_l);
Packit Service 82fcde
long_double_symbol (libc, ____new_wcstold_l, __wcstold_l);
Packit Service 82fcde
# else
Packit Service 82fcde
weak_alias (____new_strtold_l, ___new_strtold_l);
Packit Service 82fcde
long_double_symbol (libc, ___new_strtold_l, strtold_l);
Packit Service 82fcde
long_double_symbol (libc, ____new_strtold_l, __strtold_l);
Packit Service 82fcde
# endif
Packit Service 82fcde
#endif