MySQL 9.1.0
Source Code Documentation
|
A simple implementation of basic math example Service. More...
#include <simple_example_math_imp.h>
Static Public Member Functions | |
static mysql_service_status_t | calculate_gcd (int a, int b, int *result) noexcept |
Calculates Greatest Common Divisor for given two non-negative numbers. More... | |
A simple implementation of basic math example Service.
|
staticnoexcept |
Calculates Greatest Common Divisor for given two non-negative numbers.
Uses recursive algorithm to calculate result.
a | First number to calculate GCD of. | |
b | Second number to calculate GCD of. | |
[out] | result | A pointer to integer variable to store result in. |
false | success |
true | failure |