1 /* TomsFastMath, a fast ISO C bignum library.
3 * This project is meant to fill in where LibTomMath
4 * falls short. That is speed ;-)
6 * This project is public domain and free for all purposes.
8 * Tom St Denis, tomstdenis@gmail.com
10 #include <tfm_private.h>
13 void fp_sqr(fp_int *A, fp_int *B)
19 /* call generic if we're out of range */
20 if (A->used + A->used > FP_SIZE) {
26 #if defined(TFM_SQR3) && FP_SIZE >= 6
32 #if defined(TFM_SQR4) && FP_SIZE >= 8
38 #if defined(TFM_SQR6) && FP_SIZE >= 12
44 #if defined(TFM_SQR7) && FP_SIZE >= 14
50 #if defined(TFM_SQR8) && FP_SIZE >= 16
56 #if defined(TFM_SQR9) && FP_SIZE >= 18
62 #if defined(TFM_SQR12) && FP_SIZE >= 24
68 #if defined(TFM_SQR17) && FP_SIZE >= 34
74 #if defined(TFM_SMALL_SET)
76 fp_sqr_comba_small(A,B);
80 #if defined(TFM_SQR20) && FP_SIZE >= 40
86 #if defined(TFM_SQR24) && FP_SIZE >= 48
92 #if defined(TFM_SQR28) && FP_SIZE >= 56
98 #if defined(TFM_SQR32) && FP_SIZE >= 64
104 #if defined(TFM_SQR48) && FP_SIZE >= 96
110 #if defined(TFM_SQR64) && FP_SIZE >= 128
118 for (y = B->used; y < old_used; y++) {
124 /* $Source: /cvs/libtom/tomsfastmath/src/sqr/fp_sqr.c,v $ */
125 /* $Revision: 1.1 $ */
126 /* $Date: 2006/12/31 21:25:53 $ */