Bug 118091

Summary: lib/lcm.c weird misimplement lowest common multiple algorithm
Product: Other Reporter: Victor Mineev (viktor.mineev.73)
Component: OtherAssignee: other_other
Status: NEW ---    
Severity: high    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: all Subsystem:
Regression: No Bisected commit-id:

Description Victor Mineev 2016-05-12 06:15:36 UTC
The only known LCM algorithm is factoring number. Look at lib/lcm.c, evaluation of 'a / gcd(a, b) * b' does error: example a = 2, b = 4, 2 / 2 * 4 = 4 where the LCM(2, 4) equal to 2. Let delete misimplemented junk from kernel sources.