F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Algorithms.cpp File Reference
#include <Fw/Types/Assert.hpp>
#include <Utils/Algorithms.hpp>
#include <limits>

Go to the source code of this file.

Namespaces

 Utils
 
 Utils::Algorithms
 

Functions

FwSizeType Utils::Algorithms::gcd (FwSizeType a, FwSizeType b)
 Calculate the greatest common divisor of two numbers using the Euclidean algorithm. More...
 
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. More...