From 01bf5ae419a512590f5d09e20d01ffb120a2380b Mon Sep 17 00:00:00 2001 From: camilo Date: Thu, 28 Dec 2023 22:38:17 -0500 Subject: [PATCH] small fix --- src/ffmath.cpp | 2 +- src/include/ffmath.hpp | 2 +- src/qlibs.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ffmath.cpp b/src/ffmath.cpp index 2f13a49..f66ba5a 100644 --- a/src/ffmath.cpp +++ b/src/ffmath.cpp @@ -162,7 +162,7 @@ float ffmath::rCbrt( float x ) ffmath::getInf() : compute_cbrt( x, true ); } /*============================================================================*/ -float ffmath::roundf( float x ) +float ffmath::rounding( float x ) { x += 12582912.0f; x -= 12582912.0f; diff --git a/src/include/ffmath.hpp b/src/include/ffmath.hpp index 90b99e5..aa7bf8a 100644 --- a/src/include/ffmath.hpp +++ b/src/include/ffmath.hpp @@ -167,7 +167,7 @@ namespace qlibs { * @return The nearest integer value to @a x, rounding halfway cases away * from zero */ - float roundf( float x ); + float rounding( float x ); /** * @brief Computes the largest integer value not greater than @a x. diff --git a/src/qlibs.h b/src/qlibs.h index 37671f0..bef449e 100644 --- a/src/qlibs.h +++ b/src/qlibs.h @@ -57,6 +57,8 @@ This file is part of the QuarkTS++ OS distribution. #include "include/rms.hpp" #include "include/fp16.hpp" #include "include/generic.hpp" +#include "include/ffmath.hpp" + using namespace qlibs;