hjl / source-git / glibc

Forked from source-git/glibc 3 years ago
Clone

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

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