|
Packit |
5c3484 |
/* gmpstat.h */
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
/*
|
|
Packit |
5c3484 |
Copyright 1999 Free Software Foundation, Inc.
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
This file is part of the GNU MP Library test suite.
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
The GNU MP Library test suite is free software; you can redistribute it
|
|
Packit |
5c3484 |
and/or modify it under the terms of the GNU General Public License as
|
|
Packit |
5c3484 |
published by the Free Software Foundation; either version 3 of the License,
|
|
Packit |
5c3484 |
or (at your option) any later version.
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
The GNU MP Library test suite is distributed in the hope that it will be
|
|
Packit |
5c3484 |
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
5c3484 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
Packit |
5c3484 |
Public License for more details.
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
You should have received a copy of the GNU General Public License along with
|
|
Packit |
5c3484 |
the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. */
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
/* This file requires the following header files: gmp.h */
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
#ifndef __GMPSTAT_H__
|
|
Packit |
5c3484 |
#define __GMPSTAT_H__
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
/* Global debug flag. FIXME: Remove. */
|
|
Packit |
5c3484 |
extern int g_debug;
|
|
Packit |
5c3484 |
#define DEBUG_1 0
|
|
Packit |
5c3484 |
#define DEBUG_2 1
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
/* Max number of dimensions in spectral test. FIXME: Makw dynamic. */
|
|
Packit |
5c3484 |
#define GMP_SPECT_MAXT 10
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
void
|
|
Packit |
5c3484 |
mpf_freqt (mpf_t Kp,
|
|
Packit |
5c3484 |
mpf_t Km,
|
|
Packit |
5c3484 |
mpf_t X[],
|
|
Packit |
5c3484 |
const unsigned long int n);
|
|
Packit |
5c3484 |
unsigned long int
|
|
Packit |
5c3484 |
mpz_freqt (mpf_t V,
|
|
Packit |
5c3484 |
mpz_t X[],
|
|
Packit |
5c3484 |
unsigned int imax,
|
|
Packit |
5c3484 |
const unsigned long int n);
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
/* Low level functions. */
|
|
Packit |
5c3484 |
void
|
|
Packit |
5c3484 |
ks (mpf_t Kp,
|
|
Packit |
5c3484 |
mpf_t Km,
|
|
Packit |
5c3484 |
mpf_t X[],
|
|
Packit |
5c3484 |
void (P) (mpf_t, mpf_t),
|
|
Packit |
5c3484 |
const unsigned long int n);
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
void
|
|
Packit |
5c3484 |
ks_table (mpf_t p, mpf_t val, const unsigned int n);
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
void
|
|
Packit |
5c3484 |
x2_table (double t[],
|
|
Packit |
5c3484 |
unsigned int v);
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
void
|
|
Packit |
5c3484 |
spectral_test (mpf_t rop[], unsigned int T, mpz_t a, mpz_t m);
|
|
Packit |
5c3484 |
void
|
|
Packit |
5c3484 |
vz_dot (mpz_t rop, mpz_t V1[], mpz_t V2[], unsigned int n);
|
|
Packit |
5c3484 |
void
|
|
Packit |
5c3484 |
f_floor (mpf_t rop, mpf_t op);
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
void
|
|
Packit |
5c3484 |
merit (mpf_t rop, unsigned int t, mpf_t v, mpz_t m);
|
|
Packit |
5c3484 |
double
|
|
Packit |
5c3484 |
merit_u (unsigned int t, mpf_t v, mpz_t m);
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
/* From separate source files: */
|
|
Packit |
5c3484 |
void zdiv_round (mpz_t rop, mpz_t n, mpz_t d);
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
#endif /* !__GMPSTAT_H__ */
|