summaryrefslogtreecommitdiff
path: root/src/check.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-15 21:15:53 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-15 21:15:53 +0200
commitaa49abdf239bae6065fddd0839ec67a404c9748c (patch)
tree631fbb2df58aa35df3d60c65c037ef74b1807114 /src/check.hh
parentbf41a601fd0447bcf3a2937a595a1cd8ca5c1633 (diff)
Add .clang-format
Make it easier to keep a consistent style
Diffstat (limited to 'src/check.hh')
-rw-r--r--src/check.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/check.hh b/src/check.hh
index be65437..91c1717 100644
--- a/src/check.hh
+++ b/src/check.hh
@@ -7,8 +7,8 @@
namespace check {
-template<typename T>
-requires std::is_arithmetic_v<T>
+template <typename T>
+ requires std::is_arithmetic_v<T>
T add(T a, T b) {
T ret;
if (ckd_add(&ret, a, b))
@@ -16,8 +16,8 @@ T add(T a, T b) {
return ret;
}
-template<typename T>
-requires std::is_arithmetic_v<T>
+template <typename T>
+ requires std::is_arithmetic_v<T>
T sub(T a, T b) {
T ret;
if (ckd_sub(&ret, a, b))
@@ -25,8 +25,8 @@ T sub(T a, T b) {
return ret;
}
-template<typename T>
-requires std::is_arithmetic_v<T>
+template <typename T>
+ requires std::is_arithmetic_v<T>
T mul(T a, T b) {
T ret;
if (ckd_mul(&ret, a, b))