|
|
@ -328,7 +328,7 @@ struct Code : public mcl::Generator { |
|
|
|
Operand px(IntPtr, bit); |
|
|
|
Operand px(IntPtr, bit); |
|
|
|
Operand py(IntPtr, bit); |
|
|
|
Operand py(IntPtr, bit); |
|
|
|
Operand pp(IntPtr, bit); |
|
|
|
Operand pp(IntPtr, bit); |
|
|
|
std::string name = "mcl_fp_sub" + cybozu::itoa(bit); |
|
|
|
std::string name = "mcl_fp_sub" + cybozu::itoa(bit) + "S"; |
|
|
|
mcl_fp_subM[bit] = Function(name, Void, pz, px, py, pp); |
|
|
|
mcl_fp_subM[bit] = Function(name, Void, pz, px, py, pp); |
|
|
|
beginFunc(mcl_fp_subM[bit]); |
|
|
|
beginFunc(mcl_fp_subM[bit]); |
|
|
|
Operand x = load(px); |
|
|
|
Operand x = load(px); |
|
|
@ -354,7 +354,7 @@ struct Code : public mcl::Generator { |
|
|
|
void gen_short() |
|
|
|
void gen_short() |
|
|
|
{ |
|
|
|
{ |
|
|
|
gen_mcl_fp_add(); |
|
|
|
gen_mcl_fp_add(); |
|
|
|
// gen_mcl_fp_sub();
|
|
|
|
gen_mcl_fp_sub(); |
|
|
|
} |
|
|
|
} |
|
|
|
void setBit(uint32_t bit) |
|
|
|
void setBit(uint32_t bit) |
|
|
|
{ |
|
|
|
{ |
|
|
|