MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / gbitcom

Method gbitcom

Processor/Instruction.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47template<class cgf2n>
48void Instruction::gbitcom(StackedVector<cgf2n>& registers) const
49{
50 for (int j = 0; j < size; j++)
51 {
52 typename cgf2n::internal_type a = 0;
53 for (unsigned int i = 0; i < start.size(); i++)
54 {
55 a ^= registers.at(start[i] + j).get() << (i * n);
56 }
57 registers.at(r[0] + j) = a;
58 }
59}
60
61void Instruction::execute_regint(ArithmeticProcessor& Proc, MemoryPart<Integer>& Mi) const
62{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected