Page MenuHomeFreeBSD

linuxkpi: Add gcd function
ClosedPublic

Authored by manu on Oct 5 2020, 1:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 18, 8:59 AM
Unknown Object (File)
Nov 20 2025, 9:03 PM
Unknown Object (File)
Nov 20 2025, 8:58 PM
Unknown Object (File)
Nov 20 2025, 8:58 PM
Unknown Object (File)
Nov 20 2025, 8:56 PM
Unknown Object (File)
Nov 20 2025, 8:55 PM
Unknown Object (File)
Nov 20 2025, 8:55 PM
Unknown Object (File)
Nov 20 2025, 8:54 PM
Subscribers

Details

Reviewers
bz
imp
Group Reviewers
linuxkpi
Commits
rS366475: linuxkpi: Add gcd function
Summary

This compute the common greater divider
Taken from OpenBSD

Sponsored-by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Oct 5 2020, 1:41 PM
This revision is now accepted and ready to land.Oct 5 2020, 9:17 PM

That's the canonical gcd algorithm, I think from Knuth's Art of Computer Programming

This revision was automatically updated to reflect the committed changes.