mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-07 14:34:51 +01:00
f133d007f9
Old version was from 2012-05-06, 6.1.2 is from 2016-12-16 A lot of support for newer processors and speedups since then See gmp/NEWS for details
76 lines
1.9 KiB
C
76 lines
1.9 KiB
C
/* gmpstat.h */
|
|
|
|
/*
|
|
Copyright 1999 Free Software Foundation, Inc.
|
|
|
|
This file is part of the GNU MP Library test suite.
|
|
|
|
The GNU MP Library test suite is free software; you can redistribute it
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
published by the Free Software Foundation; either version 3 of the License,
|
|
or (at your option) any later version.
|
|
|
|
The GNU MP Library test suite is distributed in the hope that it will be
|
|
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along with
|
|
the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. */
|
|
|
|
/* This file requires the following header files: gmp.h */
|
|
|
|
#ifndef __GMPSTAT_H__
|
|
#define __GMPSTAT_H__
|
|
|
|
/* Global debug flag. FIXME: Remove. */
|
|
extern int g_debug;
|
|
#define DEBUG_1 0
|
|
#define DEBUG_2 1
|
|
|
|
/* Max number of dimensions in spectral test. FIXME: Makw dynamic. */
|
|
#define GMP_SPECT_MAXT 10
|
|
|
|
void
|
|
mpf_freqt (mpf_t Kp,
|
|
mpf_t Km,
|
|
mpf_t X[],
|
|
const unsigned long int n);
|
|
unsigned long int
|
|
mpz_freqt (mpf_t V,
|
|
mpz_t X[],
|
|
unsigned int imax,
|
|
const unsigned long int n);
|
|
|
|
/* Low level functions. */
|
|
void
|
|
ks (mpf_t Kp,
|
|
mpf_t Km,
|
|
mpf_t X[],
|
|
void (P) (mpf_t, mpf_t),
|
|
const unsigned long int n);
|
|
|
|
void
|
|
ks_table (mpf_t p, mpf_t val, const unsigned int n);
|
|
|
|
void
|
|
x2_table (double t[],
|
|
unsigned int v);
|
|
|
|
void
|
|
spectral_test (mpf_t rop[], unsigned int T, mpz_t a, mpz_t m);
|
|
void
|
|
vz_dot (mpz_t rop, mpz_t V1[], mpz_t V2[], unsigned int n);
|
|
void
|
|
f_floor (mpf_t rop, mpf_t op);
|
|
|
|
void
|
|
merit (mpf_t rop, unsigned int t, mpf_t v, mpz_t m);
|
|
double
|
|
merit_u (unsigned int t, mpf_t v, mpz_t m);
|
|
|
|
/* From separate source files: */
|
|
void zdiv_round (mpz_t rop, mpz_t n, mpz_t d);
|
|
|
|
#endif /* !__GMPSTAT_H__ */
|