Skip to content

hsanzg/gcds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcds

Crates.io docs.rs Build status

This crate implements several algorithms for finding the greatest common divisor of two single-precision numbers.

The greatest common divisor $\gcd(u,v)$ of two integers $u$ and $v$, not both zero, is the largest integer that evenly divides them both. This definition does not apply when $u$ and $v$ are both zero, since every number divides zero; for convenience, all the algorithms adhere to the convention that $\gcd(0,0)=0$.

This crate is by no means a complete catalog of gcd subroutines, but it does provide implementations of many of the most significant and most efficient methods that are currently known. Included, for example, are:

Each subroutine is programmed in a somewhat literate style, and includes a short proof of correctness.

License

MIT © Hugo Sanz González

About

Efficient implementations of gcd algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published