mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 01:08:03 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
16
lib/lcm.c
Normal file
16
lib/lcm.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/gcd.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/lcm.h>
|
||||
|
||||
/* Lowest common multiple */
|
||||
unsigned long lcm(unsigned long a, unsigned long b)
|
||||
{
|
||||
if (a && b)
|
||||
return (a * b) / gcd(a, b);
|
||||
else if (b)
|
||||
return b;
|
||||
|
||||
return a;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(lcm);
|
Loading…
Add table
Add a link
Reference in a new issue