Fix whitespaces

This commit is contained in:
cx384 2024-08-16 11:53:31 +02:00
parent c65444c43b
commit 03e600a721
13 changed files with 66 additions and 66 deletions

@ -55,7 +55,7 @@ see https://www.gnu.org/licenses/. */
#include <float.h> #include <float.h>
#endif #endif
/* Macros */ /* Macros */
#define GMP_LIMB_BITS (sizeof(mp_limb_t) * CHAR_BIT) #define GMP_LIMB_BITS (sizeof(mp_limb_t) * CHAR_BIT)
@ -283,7 +283,7 @@ see https://www.gnu.org/licenses/. */
const int mp_bits_per_limb = GMP_LIMB_BITS; const int mp_bits_per_limb = GMP_LIMB_BITS;
/* Memory allocation and other helper functions. */ /* Memory allocation and other helper functions. */
static void static void
gmp_die (const char *msg) gmp_die (const char *msg)
@ -384,7 +384,7 @@ gmp_free_limbs (mp_ptr old, mp_size_t size)
gmp_free (old, size * sizeof (mp_limb_t)); gmp_free (old, size * sizeof (mp_limb_t));
} }
/* MPN interface */ /* MPN interface */
void void
@ -777,7 +777,7 @@ mpn_neg (mp_ptr rp, mp_srcptr up, mp_size_t n)
return 1; return 1;
} }
/* MPN division interface. */ /* MPN division interface. */
/* The 3/2 inverse is defined as /* The 3/2 inverse is defined as
@ -1169,7 +1169,7 @@ mpn_div_qr (mp_ptr qp, mp_ptr np, mp_size_t nn, mp_srcptr dp, mp_size_t dn)
gmp_free_limbs (tp, dn); gmp_free_limbs (tp, dn);
} }
/* MPN base conversion. */ /* MPN base conversion. */
static unsigned static unsigned
mpn_base_power_of_two_p (unsigned b) mpn_base_power_of_two_p (unsigned b)
@ -1425,7 +1425,7 @@ mpn_set_str (mp_ptr rp, const unsigned char *sp, size_t sn, int base)
} }
} }
/* MPZ interface */ /* MPZ interface */
void void
mpz_init (mpz_t r) mpz_init (mpz_t r)
@ -1480,7 +1480,7 @@ mpz_realloc (mpz_t r, mp_size_t size)
#define MPZ_REALLOC(z,n) ((n) > (z)->_mp_alloc \ #define MPZ_REALLOC(z,n) ((n) > (z)->_mp_alloc \
? mpz_realloc(z,n) \ ? mpz_realloc(z,n) \
: (z)->_mp_d) : (z)->_mp_d)
/* MPZ assignment and basic conversions. */ /* MPZ assignment and basic conversions. */
void void
mpz_set_si (mpz_t r, signed long int x) mpz_set_si (mpz_t r, signed long int x)
@ -1704,7 +1704,7 @@ mpz_roinit_n (mpz_t x, mp_srcptr xp, mp_size_t xs)
return x; return x;
} }
/* Conversions and comparison to double. */ /* Conversions and comparison to double. */
void void
mpz_set_d (mpz_t r, double x) mpz_set_d (mpz_t r, double x)
@ -1862,7 +1862,7 @@ mpz_cmp_d (const mpz_t x, double d)
} }
} }
/* MPZ comparisons and the like. */ /* MPZ comparisons and the like. */
int int
mpz_sgn (const mpz_t u) mpz_sgn (const mpz_t u)
@ -1950,7 +1950,7 @@ mpz_swap (mpz_t u, mpz_t v)
MPN_PTR_SWAP (u->_mp_d, u->_mp_size, v->_mp_d, v->_mp_size); MPN_PTR_SWAP (u->_mp_d, u->_mp_size, v->_mp_d, v->_mp_size);
} }
/* MPZ addition and subtraction */ /* MPZ addition and subtraction */
@ -2050,7 +2050,7 @@ mpz_sub (mpz_t r, const mpz_t a, const mpz_t b)
r->_mp_size = a->_mp_size >= 0 ? rn : - rn; r->_mp_size = a->_mp_size >= 0 ? rn : - rn;
} }
/* MPZ multiplication */ /* MPZ multiplication */
void void
mpz_mul_si (mpz_t r, const mpz_t u, long int v) mpz_mul_si (mpz_t r, const mpz_t u, long int v)
@ -2186,7 +2186,7 @@ mpz_submul (mpz_t r, const mpz_t u, const mpz_t v)
mpz_clear (t); mpz_clear (t);
} }
/* MPZ division */ /* MPZ division */
enum mpz_div_round_mode { GMP_DIV_FLOOR, GMP_DIV_CEIL, GMP_DIV_TRUNC }; enum mpz_div_round_mode { GMP_DIV_FLOOR, GMP_DIV_CEIL, GMP_DIV_TRUNC };
@ -2661,7 +2661,7 @@ mpz_divisible_ui_p (const mpz_t n, unsigned long d)
return mpz_div_qr_ui (NULL, NULL, n, d, GMP_DIV_TRUNC) == 0; return mpz_div_qr_ui (NULL, NULL, n, d, GMP_DIV_TRUNC) == 0;
} }
/* GCD */ /* GCD */
static mp_limb_t static mp_limb_t
mpn_gcd_11 (mp_limb_t u, mp_limb_t v) mpn_gcd_11 (mp_limb_t u, mp_limb_t v)
@ -3054,7 +3054,7 @@ mpz_invert (mpz_t r, const mpz_t u, const mpz_t m)
return invertible; return invertible;
} }
/* Higher level operations (sqrt, pow and root) */ /* Higher level operations (sqrt, pow and root) */
void void
@ -3334,7 +3334,7 @@ mpn_sqrtrem (mp_ptr sp, mp_ptr rp, mp_srcptr p, mp_size_t n)
mpz_clear (r); mpz_clear (r);
return res; return res;
} }
/* Combinatorics */ /* Combinatorics */
void void
@ -3378,7 +3378,7 @@ mpz_bin_uiui (mpz_t r, unsigned long n, unsigned long k)
mpz_clear (t); mpz_clear (t);
} }
/* Primality testing */ /* Primality testing */
/* Computes Kronecker (a/b) with odd b, a!=0 and GCD(a,b) = 1 */ /* Computes Kronecker (a/b) with odd b, a!=0 and GCD(a,b) = 1 */
@ -3646,7 +3646,7 @@ mpz_probab_prime_p (const mpz_t n, int reps)
return is_prime; return is_prime;
} }
/* Logical operations and bit manipulation. */ /* Logical operations and bit manipulation. */
/* Numbers are treated as if represented in two's complement (and /* Numbers are treated as if represented in two's complement (and
@ -4183,7 +4183,7 @@ mpz_scan0 (const mpz_t u, mp_bitcnt_t starting_bit)
return mpn_common_scan (limb, i, up, un, ux); return mpn_common_scan (limb, i, up, un, ux);
} }
/* MPZ base conversion. */ /* MPZ base conversion. */
size_t size_t
@ -4443,7 +4443,7 @@ mpz_out_str (FILE *stream, int base, const mpz_t x)
return n; return n;
} }
static int static int
gmp_detect_endian (void) gmp_detect_endian (void)
{ {