cregit-Linux how code gets into the kernel

Release 4.10 lib/lcm.c

Directory: lib
#include <linux/compiler.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 / gcd(a, b)) * b; else return 0; }

Contributors

PersonTokensPropCommitsCommitProp
martin k. petersenmartin k. petersen3386.84%133.33%
rasmus villemoesrasmus villemoes513.16%266.67%
Total38100.00%3100.00%

EXPORT_SYMBOL_GPL(lcm);
unsigned long lcm_not_zero(unsigned long a, unsigned long b) { unsigned long l = lcm(a, b); if (l) return l; return (b ? : a); }

Contributors

PersonTokensPropCommitsCommitProp
mike snitzermike snitzer40100.00%1100.00%
Total40100.00%1100.00%

EXPORT_SYMBOL_GPL(lcm_not_zero);

Overall Contributors

PersonTokensPropCommitsCommitProp
martin k. petersenmartin k. petersen4645.54%114.29%
mike snitzermike snitzer4544.55%114.29%
rasmus villemoesrasmus villemoes65.94%342.86%
h hartley sweetenh hartley sweeten32.97%114.29%
paul gortmakerpaul gortmaker10.99%114.29%
Total101100.00%7100.00%
Directory: lib
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.