Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-02-27 11:20:57 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-02-27 11:20:57 +0300
commit73056218bb432d5352c6a3d087f9c08db815073b (patch)
tree8874a339ce20616b76160d2889afa3763e88a226 /src/RepRap.cpp
parent6d693497347de32503cd3a86ee82d06387409197 (diff)
M122 P102 now rime fastSqrtf instead of sqrtf
Diffstat (limited to 'src/RepRap.cpp')
-rw-r--r--src/RepRap.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/RepRap.cpp b/src/RepRap.cpp
index 29c42f0b..b6bf0d83 100644
--- a/src/RepRap.cpp
+++ b/src/RepRap.cpp
@@ -2900,6 +2900,12 @@ void RepRap::StartIap(const char *filename) noexcept
return sinf(angle) + cosf(angle);
}
+// Helper function for diagnostic tests in Platform.cpp, to calculate square root
+/*static*/ float RepRap::FastSqrtf(float f) noexcept
+{
+ return ::fastSqrtf(f);
+}
+
// Report an internal error
void RepRap::ReportInternalError(const char *file, const char *func, int line) const noexcept
{