![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Functions | |
| FwSizeType | gcd (FwSizeType a, FwSizeType b) |
| Calculate the greatest common divisor of two numbers using the Euclidean algorithm. More... | |
| FwSizeType | lcm (FwSizeType a, FwSizeType b) |
| Calculate the least common multiple of two numbers Asserts that a != 0, b != 0, and that the calculated LCM does not overflow FwSizeType. More... | |
| FwSizeType Utils::Algorithms::gcd | ( | FwSizeType | a, |
| FwSizeType | b | ||
| ) |
Calculate the greatest common divisor of two numbers using the Euclidean algorithm.
| a | first number |
| b | second number |
Definition at line 19 of file Algorithms.cpp.
| FwSizeType Utils::Algorithms::lcm | ( | FwSizeType | a, |
| FwSizeType | b | ||
| ) |
Calculate the least common multiple of two numbers Asserts that a != 0, b != 0, and that the calculated LCM does not overflow FwSizeType.
| a | first number |
| b | second number |
Definition at line 30 of file Algorithms.cpp.