hal_utils_gcd() function
Helper function to calculate the GCD between two numbers using the Euclidean algorithm. Calculate the Greatest Common Divisor (GDC) of two unsigned numbers
Syntax
__attribute__((always_inline))
static inline uint32_t hal_utils_gcd(uint32_t num_1,
uint32_t num_2);
Return value
GCD of 'a' and 'b'
hal_utils_gcd() is called by 2 functions:
![]()
hal_utils_gcd()
hal_utils_gcd():
![]()
hal_utils_gcd()