#define NUM_BYTES 16 typedef unsigned char BigInt[NUM_BYTES]; /* Operações básicas */ /* res = a + b */ void bi_sum (BigInt res, BigInt a, BigInt b); /* res = a - b */ void bi_sub (BigInt res, BigInt a, BigInt b); /* res = a - b */ void bi_mul (BigInt res, BigInt a, BigInt b); /* res = a - b */ void bi_div (BigInt res, BigInt a, BigInt b); /* Operações para deslocamento de bits */ /* desloca a de n bits para a direita e grava resultado em res */ void bi_shr (BigInt res, BigInt a, int n); /* desloca a de n bits para a esquerda e grava resultado em res */ void bi_shl (BigInt res, BigInt a, int n);