1 | /* IEEE binary128 versions of reentrant *cvt_r functions. |
2 | Copyright (C) 2018-2024 Free Software Foundation, Inc. |
3 | This file is part of the GNU C Library. |
4 | |
5 | The GNU C Library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either |
8 | version 2.1 of the License, or (at your option) any later version. |
9 | |
10 | The GNU C Library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Lesser General Public License for more details. |
14 | |
15 | You should have received a copy of the GNU Lesser General Public |
16 | License along with the GNU C Library; if not, see |
17 | <https://www.gnu.org/licenses/>. */ |
18 | |
19 | /* When in IEEE long double mode, call ___ieee128_snprintf. */ |
20 | #include <stdio.h> |
21 | typeof (snprintf) ___ieee128_snprintf attribute_hidden; |
22 | #define SNPRINTF ___ieee128_snprintf |
23 | |
24 | #define ECVT_R __qecvtieee128_r |
25 | #define FCVT_R __qfcvtieee128_r |
26 | #define __ECVT_R ___qecvtieee128_r |
27 | #define __FCVT_R ___qfcvtieee128_r |
28 | #include <efgcvt-ldbl-macros.h> |
29 | #include <efgcvt_r-template.c> |
30 | |
31 | #define cvt_symbol(local, symbol) \ |
32 | strong_alias (local, symbol) |
33 | cvt_symbol (___qfcvtieee128_r, __qfcvtieee128_r); |
34 | cvt_symbol (___qecvtieee128_r, __qecvtieee128_r); |
35 | |