Florian Fainellilib: add lib/gcd.cd28292217 years agoHistory
18 lines · 291 B · C
RawDownload
#include <linux/kernel.h>#include <linux/gcd.h>#include <linux/module.h> /* Greatest common divisor */unsigned long gcd(unsigned long a, unsigned long b){	unsigned long r; 	if (a < b)		swap(a, b);	while ((r = a % b) != 0) {		a = b;		b = r;	}	return b;}EXPORT_SYMBOL_GPL(gcd);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t