unity some expressions

dev
MITSUNARI Shigeo 9 years ago
parent 0c715697a1
commit 1f461bd7c8
  1. 6
      src/gen.cpp

@ -145,10 +145,8 @@ struct Code : public mcl::Generator {
Operand p = call(makeNIST_P192); Operand p = call(makeNIST_P192);
p = zext(p, 256); p = zext(p, 256);
Operand zp = sub(z, p); Operand zp = sub(z, p);
Operand c = lshr(zp, 192); Operand c = trunc(lshr(zp, 192), 1);
c = trunc(c, 1); z = trunc(select(c, z, zp), 192);
z = select(c, z, zp);
z = trunc(z, 192);
store(z, out); store(z, out);
ret(Void); ret(Void);
endFunc(); endFunc();

Loading…
Cancel
Save