diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2017-09-30 11:43:49 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2017-10-07 12:45:14 -0400 |
commit | 341e9a323af95ac141b4df41e2697d626da14e3f (patch) | |
tree | 298c715375bf9a50b7d1b8172926fea66053e960 /lib/gcd.c | |
parent | 078843f75d234123e654b992d97e8ae8a744ba23 (diff) |
lib/gcd: add kernel-doc notation
Add kernel-doc notation for the gcd() function (so that it can be
added to the kernel-api documentation).
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'lib/gcd.c')
-rw-r--r-- | lib/gcd.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -13,6 +13,12 @@ | |||
13 | #if !defined(CONFIG_CPU_NO_EFFICIENT_FFS) && !defined(CPU_NO_EFFICIENT_FFS) | 13 | #if !defined(CONFIG_CPU_NO_EFFICIENT_FFS) && !defined(CPU_NO_EFFICIENT_FFS) |
14 | 14 | ||
15 | /* If __ffs is available, the even/odd algorithm benchmarks slower. */ | 15 | /* If __ffs is available, the even/odd algorithm benchmarks slower. */ |
16 | |||
17 | /** | ||
18 | * gcd - calculate and return the greatest common divisor of 2 unsigned longs | ||
19 | * @a: first value | ||
20 | * @b: second value | ||
21 | */ | ||
16 | unsigned long gcd(unsigned long a, unsigned long b) | 22 | unsigned long gcd(unsigned long a, unsigned long b) |
17 | { | 23 | { |
18 | unsigned long r = a | b; | 24 | unsigned long r = a | b; |