mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-08 21:18:03 -05:00
Local right shift for GF(2^n).
This commit is contained in:
@@ -284,8 +284,9 @@ enum
|
||||
// Bitwise shifts
|
||||
GSHLCI = 0x182,
|
||||
GSHRCI = 0x183,
|
||||
GBITDEC = 0x184,
|
||||
GBITCOM = 0x185,
|
||||
GSHRSI = 0x184,
|
||||
GBITDEC = 0x18A,
|
||||
GBITCOM = 0x18B,
|
||||
// Conversion
|
||||
GCONVINT = 0x1C0,
|
||||
GCONVGF2N = 0x1C1,
|
||||
|
||||
@@ -198,6 +198,7 @@ void BaseInstruction::parse_operands(istream& s, int pos, int file_pos)
|
||||
case GORCI:
|
||||
case GSHLCI:
|
||||
case GSHRCI:
|
||||
case GSHRSI:
|
||||
case USE:
|
||||
case USE_INP:
|
||||
case USE_EDABIT:
|
||||
@@ -1006,6 +1007,9 @@ inline void Instruction::execute(Processor<sint, sgf2n>& Proc) const
|
||||
case SHRSI:
|
||||
sint::shrsi(Procp, *this);
|
||||
return;
|
||||
case GSHRSI:
|
||||
sgf2n::shrsi(Proc2, *this);
|
||||
return;
|
||||
case OPEN:
|
||||
Proc.Procp.POpen(start, Proc.P, size);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user