Turnstone Operating System
Loading...
Searching...
No Matches
test_bigint.c File Reference

Big integer arithmetic. More...

#include "setup.h"
#include <bigint.h>
#include <strings.h>

Macros

#define RAMSIZE   0x800000
 

Functions

int32_t main (void)
 
static int32_t bigint_test_set_int (void)
 
static int32_t bigint_test_set_str (void)
 
static int32_t bigint_test_shl_shr (void)
 
static int32_t bigint_test_not (void)
 
static int32_t bigint_test_and (void)
 
static int32_t bigint_test_or (void)
 
static int32_t bigint_test_xor (void)
 
static int32_t bigint_test_bitwise (void)
 
static int32_t bigint_test_cmp (void)
 
static int32_t bigint_test_add_sub (void)
 
static int32_t bigint_test_mul (void)
 
static int32_t bigint_test_pow (void)
 
static int32_t bigint_test_div (void)
 
static int32_t bigint_test_mod (void)
 
static int32_t bigint_test_gcd (void)
 
static int32_t bigint_test_mul_mod (void)
 
static int32_t bigint_test_pow_mod (void)
 
static int32_t bigint_test_prime (void)
 

Detailed Description

Big integer arithmetic.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.