stdlib: Remove longlong.h

The gmp-arch.h now provides all the required definitions.
This commit is contained in:
Adhemerval Zanella 2025-10-28 14:08:17 -03:00
parent 66fedf5477
commit 0ace38803e
21 changed files with 2 additions and 1824 deletions

View File

@ -327,8 +327,6 @@
# ifdef _LIBC
# include <gmp.h>
# include <stdlib/gmp-impl.h>
# include <stdlib/longlong.h>
# include <gmp-arch.h>
# else
# include "longlong.h"
# endif

View File

@ -25,8 +25,6 @@
#include <gmp.h>
#include <limits.h>
#include <stdlib/gmp-impl.h>
#include <stdlib/longlong.h>
#include <gmp-arch.h>
#include <_itoa.h>

View File

@ -20,8 +20,6 @@
#include <gmp.h>
#include <limits.h>
#include <stdlib/gmp-impl.h>
#include <stdlib/longlong.h>
#include <gmp-arch.h>
#include <_itowa.h>

View File

@ -499,7 +499,6 @@ mpn-headers = \
gmp-impl.h \
gmp-mparam.h \
gmp.h \
longlong.h \
# mpn-headers
routines := \

View File

@ -23,8 +23,6 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#include <gmp.h>
#include "gmp-impl.h"
#include "longlong.h"
#include <gmp-arch.h>
mp_limb_t
mpn_addmul_1 (register mp_ptr res_ptr, register mp_srcptr s1_ptr,

View File

@ -27,8 +27,6 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#include <gmp.h>
#include <stdbit.h>
#include "gmp-impl.h"
#include "longlong.h"
#include <gmp-arch.h>
#ifndef UMUL_TIME
#define UMUL_TIME 1

View File

@ -21,7 +21,6 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#include <gmp.h>
#include "gmp-impl.h"
#include "longlong.h"
/* Divide num (NP/NSIZE) by den (DP/DSIZE) and write
the NSIZE-DSIZE least significant quotient limbs at QP

View File

@ -298,6 +298,8 @@ typedef unsigned int UHWtype;
#define impn_sqr_n_basecase __MPN(impn_sqr_n_basecase)
#define impn_sqr_n __MPN(impn_sqr_n)
#include <gmp-arch.h>
#ifndef _PROTO
#if defined (__STDC__) || defined (__cplusplus)
#define _PROTO(x) x

File diff suppressed because it is too large Load Diff

View File

@ -24,8 +24,6 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#include <gmp.h>
#include <stdbit.h>
#include "gmp-impl.h"
#include "longlong.h"
#include <gmp-arch.h>
#ifndef UMUL_TIME
#define UMUL_TIME 1

View File

@ -21,8 +21,6 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#include <gmp.h>
#include "gmp-impl.h"
#include "longlong.h"
#include <gmp-arch.h>
mp_limb_t
mpn_mul_1 (register mp_ptr res_ptr, register mp_srcptr s1_ptr,

View File

@ -82,8 +82,6 @@ extern double ____strtod_l_internal (const char *, char **, int, locale_t);
#include <gmp-mparam.h>
#include <gmp.h>
#include "gmp-impl.h"
#include "longlong.h"
#include "gmp-arch.h"
#include "fpioconst.h"
#include <assert.h>

View File

@ -23,8 +23,6 @@ along with the GNU MP Library; see the file COPYING.LIB. If not, see
#include <gmp.h>
#include "gmp-impl.h"
#include "longlong.h"
#include <gmp-arch.h>
mp_limb_t
mpn_submul_1 (register mp_ptr res_ptr, register mp_srcptr s1_ptr,

View File

@ -53,7 +53,6 @@ umul_ppmm_generic (mp_limb_t *w1, mp_limb_t *w0, mp_limb_t u, mp_limb_t v)
*w0 = u128_low (r);
#endif
}
#undef umul_ppmm
#define umul_ppmm(__w1, __w0, __u, __v) \
({ \
__typeof (__w0) __w0t; \
@ -117,9 +116,7 @@ udiv_qrnnd_generic (mp_limb_t *q, mp_limb_t *r, mp_limb_t n1, mp_limb_t n0,
*q = q1 * LL_B | q0;
*r = r0;
}
# undef UDIV_NEEDS_NORMALIZATION
# define UDIV_NEEDS_NORMALIZATION 1
# undef udiv_qrnnd
# define udiv_qrnnd(__q, __r, __n1, __n0, __d) \
udiv_qrnnd_generic (&__q, &__r, __n1, __n0, __d)
#endif
@ -147,7 +144,6 @@ add_ssaaaa_generic (mp_limb_t *sh, mp_limb_t *sl, mp_limb_t ah,
*sl = u128_low (r);
#endif
}
#undef add_ssaaaa
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
add_ssaaaa_generic (&sh, &sl, ah, al, bh, bl)
@ -174,7 +170,6 @@ sub_ddmmss_generic (mp_limb_t *sh, mp_limb_t *sl, mp_limb_t ah,
*sl = u128_low (r);
#endif
}
#undef sub_ddmmss
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \
sub_ddmmss_generic (&sh, &sl, ah, al, bh, bl)

View File

@ -17,8 +17,6 @@
#include "gmp.h"
#include "gmp-impl.h"
#include "longlong.h"
#include <gmp-arch.h>
#include <ieee754.h>
#include <float.h>
#include <stdlib.h>

View File

@ -17,8 +17,6 @@
#include "gmp.h"
#include "gmp-impl.h"
#include "longlong.h"
#include <gmp-arch.h>
#include <ieee754.h>
#include <float.h>
#include <math.h>

View File

@ -17,7 +17,6 @@
#include "gmp.h"
#include "gmp-impl.h"
#include "longlong.h"
#include <ieee754.h>
#include <float.h>
#include <math.h>

View File

@ -17,8 +17,6 @@
#include "gmp.h"
#include "gmp-impl.h"
#include "longlong.h"
#include <gmp-arch.h>
#include <ieee754.h>
#include <float.h>
#include <math.h>

View File

@ -33,8 +33,6 @@
#include <gmp.h>
#include <stdlib/gmp-impl.h>
#include <stdlib/longlong.h>
#include <gmp-arch.h>
#if __BYTE_ORDER == __BIG_ENDIAN
struct DWstruct { Wtype high, low;};

View File

@ -41,9 +41,7 @@ udiv_qrnnd_x86 (mp_limb_t *q, mp_limb_t *r, mp_limb_t n1, mp_limb_t n0,
"rm" (d));
#endif
}
#undef UDIV_NEEDS_NORMALIZATION
#define UDIV_NEEDS_NORMALIZATION 0
#undef udiv_qrnnd
#define udiv_qrnnd(__q, __r, __n1, __n0, __d) \
udiv_qrnnd_x86 (&__q, &__r, __n1, __n0, __d)

View File

@ -17,8 +17,6 @@
#include "gmp.h"
#include "gmp-impl.h"
#include "longlong.h"
#include <gmp-arch.h>
#include <ieee754.h>
#include <float.h>
#include <stdlib.h>