Added GCD and LCM algorithms

This commit is contained in:
John Wellbelove 2024-05-13 10:57:03 +01:00
parent 390afc4d9d
commit d69779a8cf

View File

@ -49,6 +49,11 @@ namespace etl
{
ETL_STATIC_ASSERT(etl::is_integral<T>::value, "Integral type required");
if ((a == 0 || b == 0))
{
return (a + b);
}
while (b != 0)
{
T t = b;