-
Notifications
You must be signed in to change notification settings - Fork 1
/
GNFS.h
42 lines (38 loc) · 1021 Bytes
/
GNFS.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __GNFS_H__
#define __GNFS_H__
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <list>
#include <cassert>
#include <ctime>
#include <cstdlib>
#include <limits.h>
#define RANDOMIZE 0
#define DEBUG 0
#define PRINT_PROCESS 1
#define PRINT_SIEVE_PROCESS 1
//#define SLOW_PRINT_SIEVE_PROCESS 1
#if(PRINT_PROCESS)
#define PRINT_MDF
//#define PRINT_SMOOTH_BOUND
//#define PRINT_RATIONAL_BASE
//#define PRINT_ALGEBRAIC_BASE
//#define PRINT_QUADRATIC_BASE
//#define PRINT_SELECTED_ABPAIRS
//#define PRINT_MATRIX
//#define PRINT_SELECTED_SQUARE_ABPAIRS
//#define PRINT_PROD_ABM
//#define PRINT_UPPDER_BOUND
//#define PRINT_PRIMES
//#define PRINT_XI
#endif
/*******************************************************************************
* Global Constants
******************************************************************************/
const int MaxPrimeBufSize = 30000;
const int DefaultMaxPrime = 20000000;
const double DefaultThreshold = 5.0;
const int DefaultAfactor = 20;
#endif