aboutsummaryrefslogtreecommitdiff
path: root/src/dolphin/MathUtil.cpp
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2020-02-04 18:29:52 +0100
committerRSDuck <rsduck@users.noreply.github.com>2020-06-16 11:57:51 +0200
commit99b34efe2d923c4fd6fbfdb051833d2af6ea2136 (patch)
tree2f8638d2120dcafad87c0dea4b42127149ed9f67 /src/dolphin/MathUtil.cpp
parentbaed0ac0d59d3cbbce01389a84da9774f5613b3b (diff)
move ARM64 JIT backend here
Diffstat (limited to 'src/dolphin/MathUtil.cpp')
-rw-r--r--src/dolphin/MathUtil.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dolphin/MathUtil.cpp b/src/dolphin/MathUtil.cpp
new file mode 100644
index 0000000..70f2ede
--- /dev/null
+++ b/src/dolphin/MathUtil.cpp
@@ -0,0 +1,13 @@
+// Copyright 2008 Dolphin Emulator Project
+// Licensed under GPLv2+
+// Refer to the license.txt file included.
+
+#include "MathUtil.h"
+
+#include <numeric>
+
+// Calculate sum of a float list
+float MathFloatVectorSum(const std::vector<float>& Vec)
+{
+ return std::accumulate(Vec.begin(), Vec.end(), 0.0f);
+}