#include <iostream>
#include <cstdlib>
#include <cassert>
#include <vector>
#include <fstream>
#include <stdexcept>
#include <iomanip>
#include <sstream>
|
ulong | extended_gcd (ulong a, ulong b, ulong &lcm, ulong &m) |
|
file_pos | read_bytes (ulong n, std::istream &in) |
|
void | write_bytes (file_pos val, ulong n, std::ostream &out) |
|
void | read_renumbering_table (ulong nr_pols, std::ifstream &in, std::vector< unsigned int > &table) throw (std::length_error,std::bad_alloc) |
|
file_pos | write_indices (ulong coefficient_size, const std::vector< modulus_info * > &mod_info, std::ostream &out, bool verbose, bool output) |
|
ulong | write_coefficients (ulong coefficient_size, const std::vector< modulus_info * > &mod_info, const std::vector< ChineseBox * > &box, std::ostream &out, bool verbose, bool output) |
|
void | test (std::vector< ulong > &moduli, std::vector< ChineseBox * > &box) |
|
int | main (int argc, char **argv) |
|
typedef unsigned long int ulong |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
void read_renumbering_table |
( |
ulong |
nr_pols, |
|
|
std::ifstream & |
in, |
|
|
std::vector< unsigned int > & |
table |
|
) |
| |
throw | ( | std::length_error, |
| | std::bad_alloc |
| ) | | |
void test |
( |
std::vector< ulong > & |
moduli, |
|
|
std::vector< ChineseBox * > & |
box |
|
) |
| |
ulong write_coefficients |
( |
ulong |
coefficient_size, |
|
|
const std::vector< modulus_info * > & |
mod_info, |
|
|
const std::vector< ChineseBox * > & |
box, |
|
|
std::ostream & |
out, |
|
|
bool |
verbose, |
|
|
bool |
output |
|
) |
| |
file_pos write_indices |
( |
ulong |
coefficient_size, |
|
|
const std::vector< modulus_info * > & |
mod_info, |
|
|
std::ostream & |
out, |
|
|
bool |
verbose, |
|
|
bool |
output |
|
) |
| |
const std::ios_base::openmode binary_in |
Initial value:=
std::ios_base::in
| std::ios_base::binary
const std::ios_base::openmode binary_out |
Initial value:=
| std::ios_base::trunc
| std::ios_base::binary
#define out(c)
Definition: cweave.c:205