Revert "Bugfix: clear the exceeding destination digits."

This reverts commit 50f587c36f.
This commit is contained in:
Steffen Jaeckel 2014-06-12 10:50:19 +02:00
parent 7d003805ad
commit f5b5bc09fb
2 changed files with 2 additions and 4 deletions

View File

@ -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;
} }

View File

@ -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");