Revert "Bugfix: clear the exceeding destination digits."
This reverts commit 50f587c36f
.
This commit is contained in:
parent
7d003805ad
commit
f5b5bc09fb
@ -96,9 +96,8 @@ printf(
|
|||||||
" B->used = %d;\n"
|
" B->used = %d;\n"
|
||||||
" B->sign = FP_ZPOS;\n"
|
" B->sign = FP_ZPOS;\n"
|
||||||
" memcpy(B->dp, b, %d * sizeof(fp_digit));\n"
|
" memcpy(B->dp, b, %d * sizeof(fp_digit));\n"
|
||||||
" memset(B->dp + %d, 0, (FP_SIZE - %d) * sizeof(fp_digit));\n"
|
|
||||||
" fp_clamp(B);\n"
|
" fp_clamp(B);\n"
|
||||||
"}\n#endif\n\n\n", N+N, N+N, N+N, N+N);
|
"}\n#endif\n\n\n", N+N, N+N);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -102,9 +102,8 @@ printf(
|
|||||||
" B->used = %d;\n"
|
" B->used = %d;\n"
|
||||||
" B->sign = FP_ZPOS;\n"
|
" B->sign = FP_ZPOS;\n"
|
||||||
" memcpy(B->dp, b, %d * sizeof(fp_digit));\n"
|
" memcpy(B->dp, b, %d * sizeof(fp_digit));\n"
|
||||||
" memset(B->dp + %d, 0, (FP_SIZE - %d) * sizeof(fp_digit));\n"
|
|
||||||
" fp_clamp(B);\n"
|
" fp_clamp(B);\n"
|
||||||
" break;\n\n", N+N, N+N, N+N, N+N);
|
" break;\n\n", N+N, N+N);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("}\n}\n\n#endif /* TFM_SMALL_SET */\n");
|
printf("}\n}\n\n#endif /* TFM_SMALL_SET */\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user