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.

37 lines
1.0 KiB

  1. #ifndef ADDITION_H
  2. #define ADDITION_H
  3. typedef unsigned int num;
  4. struct data;
  5. struct datad;
  6. void full_adder (num* sum, num* nextcarry, num number1, num number2, num carry);
  7. unsigned int addition_uint(num number1, num number2);
  8. unsigned int sign_float(unsigned int number);
  9. unsigned int precision_float(unsigned int number);
  10. unsigned int exponent_float(unsigned int number);
  11. unsigned int addition_precision_float(unsigned int p1, unsigned int p2);
  12. unsigned int output_float(unsigned int sign, unsigned int exponent, unsigned int precision);
  13. float addition_float(float number1, float number2);
  14. unsigned long long sign_double(unsigned long long a);
  15. unsigned long long precision_double(unsigned long long a);
  16. unsigned long long exponent_double(unsigned long long number);
  17. unsigned long long output_double(unsigned long long sign, unsigned long long exponent, unsigned long long precision);
  18. unsigned long long addition_precision_double(unsigned long long p1, unsigned long long p2);
  19. double addition_double(double number1, double number2);
  20. #endif // ADDITION_H