You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
#ifndef ADDITION_H
|
|
#define ADDITION_H
|
|
|
|
typedef unsigned int num;
|
|
|
|
struct data;
|
|
|
|
struct datad;
|
|
|
|
void full_adder (num* sum, num* nextcarry, num number1, num number2, num carry);
|
|
|
|
unsigned int addition_uint(num number1, num number2);
|
|
|
|
unsigned int sign_float(unsigned int number);
|
|
|
|
unsigned int precision_float(unsigned int number);
|
|
|
|
unsigned int exponent_float(unsigned int number);
|
|
|
|
unsigned int addition_precision_float(unsigned int p1, unsigned int p2);
|
|
|
|
unsigned int output_float(unsigned int sign, unsigned int exponent, unsigned int precision);
|
|
|
|
float addition_float(float number1, float number2);
|
|
|
|
unsigned long long sign_double(unsigned long long a);
|
|
|
|
unsigned long long precision_double(unsigned long long a);
|
|
|
|
unsigned long long exponent_double(unsigned long long number);
|
|
|
|
unsigned long long output_double(unsigned long long sign, unsigned long long exponent, unsigned long long precision);
|
|
|
|
unsigned long long addition_precision_double(unsigned long long p1, unsigned long long p2);
|
|
|
|
double addition_double(double number1, double number2);
|
|
|
|
#endif // ADDITION_H
|