mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
minor updates
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@139 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@ -55,6 +55,11 @@
|
||||
#include <time.h>
|
||||
#include "bigint.h"
|
||||
|
||||
#define V1 v->comps[v->size-1] /**< v1 for division */
|
||||
#define V2 v->comps[v->size-2] /**< v2 for division */
|
||||
#define U(j) tmp_u->comps[tmp_u->size-j-1] /**< uj for division */
|
||||
#define Q(j) quotient->comps[quotient->size-j-1] /**< qj for division */
|
||||
|
||||
static bigint *bi_int_multiply(BI_CTX *ctx, bigint *bi, comp i);
|
||||
static bigint *bi_int_divide(BI_CTX *ctx, bigint *biR, comp denom);
|
||||
static bigint *alloc(BI_CTX *ctx, int size);
|
||||
@ -68,8 +73,11 @@ static bigint *comp_left_shift(bigint *biR, int num_shifts);
|
||||
|
||||
#ifdef CONFIG_BIGINT_CHECK_ON
|
||||
static void check(const bigint *bi);
|
||||
#else
|
||||
#define check(A) /**< disappears in normal production mode */
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* @brief Start a new bigint context.
|
||||
* @return A bigint context.
|
||||
|
@ -23,9 +23,6 @@
|
||||
#include "os_port.h"
|
||||
#include "bigint_impl.h"
|
||||
|
||||
#ifndef CONFIG_BIGINT_CHECK_ON
|
||||
#define check(A) /**< disappears in normal production mode */
|
||||
#endif
|
||||
BI_CTX *bi_initialize(void);
|
||||
void bi_terminate(BI_CTX *ctx);
|
||||
void bi_permanent(bigint *bi);
|
||||
|
@ -97,9 +97,4 @@ typedef struct /**< A big integer "session" context. */
|
||||
|
||||
#define PERMANENT 0x7FFF55AA /**< A magic number for permanents. */
|
||||
|
||||
#define V1 v->comps[v->size-1] /**< v1 for division */
|
||||
#define V2 v->comps[v->size-2] /**< v2 for division */
|
||||
#define U(j) tmp_u->comps[tmp_u->size-j-1] /**< uj for division */
|
||||
#define Q(j) quotient->comps[quotient->size-j-1] /**< qj for division */
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user