-
Notifications
You must be signed in to change notification settings - Fork 0
/
Utility.h
35 lines (23 loc) · 798 Bytes
/
Utility.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
#ifndef UTILITY_H
#define UTILITY_H
#include <vector>
#include <map>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <cassert>
#include <NTL/ZZ_p.h>
using namespace std;
using namespace NTL;
NTL_CLIENT
#ifdef POLLY_DEBUG
#define MP_WRITE(str) do { std::clog << str << std::endl; } while( false )
#else
#define MP_WRITE(str) do { } while ( false )
#endif
bool signReadStream(istream &in, long long int &sign);
unsigned long long int integerGcdComputation(unsigned long long int x, unsigned long long int y);
long long int integerGcd(long long int x, long long int y);
bool readStream_(ZZ_p &val, istream &in, bool ImplicitSign, bool &ImplicitOne);
//void writeStream(ZZ_p &val, ostream &out, bool ImplicitSign, bool ImplicitOne);
#endif // UTILITY_H