From 4cb74bddd7a2f95ab901e17e27ad224754be25bd Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Tue, 22 Nov 2022 18:25:43 +1100 Subject: [PATCH] Create min.cpp --- source/Core/Threads/OperatingModes/utils/min.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 source/Core/Threads/OperatingModes/utils/min.cpp diff --git a/source/Core/Threads/OperatingModes/utils/min.cpp b/source/Core/Threads/OperatingModes/utils/min.cpp new file mode 100644 index 00000000..15829579 --- /dev/null +++ b/source/Core/Threads/OperatingModes/utils/min.cpp @@ -0,0 +1,10 @@ + + +#include "OperatingModeUtilities.h" +#include +uint16_t min(uint16_t a, uint16_t b) { + if (a > b) + return b; + else + return a; +} \ No newline at end of file