RZ

01: // RZMagic.cc # common utilities for rz analysis and synthesis
02:
03: #include "RZMagic.hh"
04:
05: namespace RZ {
06:     char const RZMagic::file_magic[ 16 ] = {
07:         159,'r','g','z',
08:         13,10,26,10,
09:         'z','l','i','b',
10:         0,0,4,0,
11:     };
12:
13:     RZModuli::RZModuli():
14:         modulus_a(555777555),
15:         modulus_b(777222777),
16:         modulus_c(999555999),
17:         blocks_of(1<<16) {}
18:
19:     RZModuli::RZModuli(
20:         unsigned int a, unsigned int b, unsigned int c, unsigned int d)
21:     :
22:         modulus_a(a), modulus_b(b), modulus_c(c), blocks_of(d) {}
23:
24:     Sums::Sums(RZModuli m):
25:         a(m.modulus_a, m.blocks_of),
26:         b(m.modulus_b, m.blocks_of),
27:         c(m.modulus_c, m.blocks_of) {}
28: }
29:
30: // RZMagic.cc # common utilities for rz analysis and synthesis