gcd.h 451 B

12345678910111213
  1. #if !defined(_gcd_H)
  2. # define _gcd_H (1)
  3. /*Computes the gcd of two integers, _a and _b.
  4. _a: The first integer of which to compute the gcd.
  5. _b: The second integer of which to compute the gcd.
  6. Return: The non-negative gcd of _a and _b.
  7. If _a and _b are both 0, then 0 is returned, though in reality the
  8. gcd is undefined, as any integer, no matter how large, will divide 0
  9. evenly.*/
  10. int gcd(int _a,int _b);
  11. #endif