summaryrefslogtreecommitdiffstats
path: root/src/common/swap.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-03-12 04:10:38 +0100
committerLiam <byteslice@airmail.cc>2023-03-12 16:33:01 +0100
commit600f325d87e42f856da58c42a5280f098ebb6e8c (patch)
tree75c4fe48af55186a4e420e94a1d7e1bfd92e4ec0 /src/common/swap.h
parentgeneral: use codespell to identify spelling mistakes (diff)
downloadyuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.gz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.bz2
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.lz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.xz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.zst
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.zip
Diffstat (limited to '')
-rw-r--r--src/common/swap.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/swap.h b/src/common/swap.h
index 037b82781..085baaf9a 100644
--- a/src/common/swap.h
+++ b/src/common/swap.h
@@ -229,7 +229,7 @@ public:
value = swap(swap() - 1);
return old;
}
- // Comparaison
+ // Comparison
// v == i
bool operator==(const swapped_t& i) const {
return swap() == i.swap();
@@ -368,7 +368,7 @@ public:
// Member
/** todo **/
- // Arithmetics
+ // Arithmetic
template <typename S, typename T2, typename F2>
friend S operator+(const S& p, const swapped_t v);
@@ -384,7 +384,7 @@ public:
template <typename S, typename T2, typename F2>
friend S operator%(const S& p, const swapped_t v);
- // Arithmetics + assignments
+ // Arithmetic + assignments
template <typename S, typename T2, typename F2>
friend S operator+=(const S& p, const swapped_t v);
@@ -415,7 +415,7 @@ public:
friend bool operator==(const S& p, const swapped_t v);
};
-// Arithmetics
+// Arithmetic
template <typename S, typename T, typename F>
S operator+(const S& i, const swap_struct_t<T, F> v) {
return i + v.swap();
@@ -441,7 +441,7 @@ S operator%(const S& i, const swap_struct_t<T, F> v) {
return i % v.swap();
}
-// Arithmetics + assignments
+// Arithmetic + assignments
template <typename S, typename T, typename F>
S& operator+=(S& i, const swap_struct_t<T, F> v) {
i += v.swap();
@@ -465,7 +465,7 @@ S operator&(const swap_struct_t<T, F> v, const S& i) {
return static_cast<S>(v.swap() & i);
}
-// Comparaison
+// Comparison
template <typename S, typename T, typename F>
bool operator<(const S& p, const swap_struct_t<T, F> v) {
return p < v.swap();