Bug 118091 - lib/lcm.c weird misimplement lowest common multiple algorithm
Summary: lib/lcm.c weird misimplement lowest common multiple algorithm
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 high
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-12 06:15 UTC by Victor Mineev
Modified: 2016-05-12 06:18 UTC (History)
0 users

See Also:
Kernel Version: all
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.