Function report |
Source Code:lib\math\gcd.c |
Create Date:2022-07-28 06:43:17 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:gcd - calculate and return the greatest common divisor of 2 unsigned longs*@a: first value*@b: second value
Proto:unsigned long gcd(unsigned long a, unsigned long b)
Type:unsigned long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | a | |
| unsigned long | b |
| 30 | b >>= __ffs - find first set bit in word*@word: The word to search* Undefined if no bit exists, so code should check against 0 first. |
| 34 | cycle |
| 35 | a >>= __ffs - find first set bit in word*@word: The word to search* Undefined if no bit exists, so code should check against 0 first. |
| 38 | If a == b Then Return a << __ffs - find first set bit in word*@word: The word to search* Undefined if no bit exists, so code should check against 0 first. |
| 41 | If a < b Then swap - swap values of @a and @b*@a: first value*@b: second value(a, b) |
| Name | Describe |
|---|---|
| lcm | Lowest common multiple |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |