/home/dko/Projects/mobilec/src/security/xyssl-0.9/include/xyssl/bn_mul.h File Reference

#include "xyssl/config.h"

Go to the source code of this file.

Defines

#define MULADDC_INIT
#define MULADDC_CORE
#define MULADDC_STOP   }

Detailed Description

Definition in file bn_mul.h.


Define Documentation

#define MULADDC_CORE
Value:
s0 = ( *s << biH ) >> biH;          \
    s1 = ( *s >> biH ); s++;            \
    rx = s0 * b1; r0 = s0 * b0;         \
    ry = s1 * b0; r1 = s1 * b1;         \
    r1 += ( rx >> biH );                \
    r1 += ( ry >> biH );                \
    rx <<= biH; ry <<= biH;             \
    r0 += rx; r1 += (r0 < rx);          \
    r0 += ry; r1 += (r0 < ry);          \
    r0 +=  c; r1 += (r0 <  c);          \
    r0 += *d; r1 += (r0 < *d);          \
    c = r1; *(d++) = r0;

Definition at line 662 of file bn_mul.h.

Referenced by mpi_mul_hlp().

#define MULADDC_INIT
Value:
{                                       \
    t_int s0, s1, b0, b1;               \
    t_int r0, r1, rx, ry;               \
    b0 = ( b << biH ) >> biH;           \
    b1 = ( b >> biH );

Definition at line 655 of file bn_mul.h.

Referenced by mpi_mul_hlp().

#define MULADDC_STOP   }

Definition at line 676 of file bn_mul.h.

Referenced by mpi_mul_hlp().

Generated on Tue Dec 28 15:15:28 2010 for Mobile-C by  doxygen 1.6.3