Go to the source code of this file.
Data Structures | |
| struct | _bigint |
| A big integer basic object. More... | |
| struct | BI_CTX |
| Maintains the state of the cache, and a number of variables used in reduction. More... | |
Defines | |
| #define | BIGINT_M_OFFSET 0 |
| Normal modulo offset. | |
| #define | BIGINT_NUM_MODS 1 |
| #define | COMP_RADIX 4294967296ULL |
| Max component + 1. | |
| #define | COMP_BIG_MSB 0x8000000000000000ULL |
| (Max dbl comp + 1)/ 2 | |
| #define | COMP_BIT_SIZE 32 |
| Number of bits in a component. | |
| #define | COMP_BYTE_SIZE 4 |
| Number of bytes in a component. | |
| #define | COMP_NUM_NIBBLES 8 |
| Used For diagnostics only. | |
| #define | max(a, b) ((a)>(b)?(a):(b)) |
| Find the maximum of 2 numbers. | |
| #define | min(a, b) ((a)<(b)?(a):(b)) |
| Find the minimum of 2 numbers. | |
| #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 | |
Typedefs | |
| typedef uint32_t | comp |
| A single precision component. | |
| typedef uint64_t | long_comp |
| A double precision component. | |
| typedef int64_t | slong_comp |
| A signed double precision component. | |
| typedef struct _bigint | bigint |
| An alias for _bigint. | |
| #define BIGINT_M_OFFSET 0 |
Normal modulo offset.
Definition at line 23 of file bigint_impl.h.
Referenced by bi_mod_power2(), RSA_free(), RSA_private(), RSA_pub_key_new(), and RSA_public().
| #define BIGINT_NUM_MODS 1 |
Definition at line 29 of file bigint_impl.h.
| #define COMP_RADIX 4294967296ULL |
Max component + 1.
Definition at line 37 of file bigint_impl.h.
Referenced by bi_divide(), bi_set_mod(), and find_max_exp_index().
| #define COMP_BIG_MSB 0x8000000000000000ULL |
| #define COMP_BIT_SIZE 32 |
Number of bits in a component.
Definition at line 40 of file bigint_impl.h.
Referenced by bi_int_divide(), bi_int_multiply(), exp_bit_is_one(), find_max_exp_index(), and regular_multiply().
| #define COMP_BYTE_SIZE 4 |
Number of bytes in a component.
Definition at line 41 of file bigint_impl.h.
Referenced by alloc(), bi_clone(), bi_divide(), bi_export(), bi_import(), bi_int_multiply(), more_comps(), and regular_multiply().
| #define COMP_NUM_NIBBLES 8 |
| #define max | ( | a, | |||
| b | ) | ((a)>(b)?(a):(b)) |
Find the maximum of 2 numbers.
Definition at line 94 of file bigint_impl.h.
Referenced by ath5k_get_chan_pcal_surrounding_piers(), ath5k_get_linear_pcdac_min(), ath5k_get_rate_pcal_data(), ath5k_setup_channel_powertable(), bi_add(), downloader_xfer_deliver_iob(), and more_comps().
| #define min | ( | a, | |||
| b | ) | ((a)<(b)?(a):(b)) |
| #define PERMANENT 0x7FFF55AA |
A magic number for permanents.
Definition at line 98 of file bigint_impl.h.
Referenced by bi_copy(), bi_depermanent(), bi_free(), and bi_permanent().
| #define V1 v->comps[v->size-1] |
| #define V2 v->comps[v->size-2] |
| #define U | ( | j | ) | tmp_u->comps[tmp_u->size-j-1] |
uj for division
Definition at line 102 of file bigint_impl.h.
Referenced by ath5k_hw_nic_reset(), and bi_divide().
| #define Q | ( | j | ) | quotient->comps[quotient->size-j-1] |
| typedef int64_t slong_comp |
1.5.7.1