aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2021-12-01 06:07:08 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2021-12-01 15:28:38 +0300
commitd74c05b73cc98e9ce66e57d86ae03c023d2b3c53 (patch)
tree829b8c7442c11ee85006bfdd05dbf37f3e038c7c
parent5a399b81e811c28c016fbc0315a9c78593eda1f9 (diff)
downloadgost-engine-d74c05b73cc98e9ce66e57d86ae03c023d2b3c53.zip
gost-engine-d74c05b73cc98e9ce66e57d86ae03c023d2b3c53.tar.gz
gost-engine-d74c05b73cc98e9ce66e57d86ae03c023d2b3c53.tar.bz2
Add .editorconfig
Noticed that there is some misindentation (also fix it).
-rw-r--r--.editorconfig21
-rw-r--r--gosthash2012.c2
2 files changed, 22 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..22d449b
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,21 @@
+# https://editorconfig.org
+
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+tab_width = 8
+
+[*.[ch]]
+indent_size = 4
+indent_style = space
+
+[{CMakeLists.txt,*.cmake}]
+indent_size = 2
+indent_style = space
+
+[COMMIT_EDITMSG]
+indent_size = 2
+indent_style = space
+max_line_length = 80
diff --git a/gosthash2012.c b/gosthash2012.c
index f634bb7..91c2c94 100644
--- a/gosthash2012.c
+++ b/gosthash2012.c
@@ -69,7 +69,7 @@ static INLINE void add512(union uint512_u * RESTRICT x,
# ifdef HAVE_ADDCARRY_U64
for (i = 0; i < 8; i++)
- CF = _addcarry_u64(CF, x->QWORD[i] , y->QWORD[i], &(x->QWORD[i]));
+ CF = _addcarry_u64(CF, x->QWORD[i] , y->QWORD[i], &(x->QWORD[i]));
# else
for (i = 0; i < 8; i++) {
const unsigned long long left = x->QWORD[i];