aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 722fe06..27cca42 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -271,3 +271,7 @@ bool gsr_get_valid_card_path(char *output) {
}
return false;
}
+
+int even_number_ceil(int value) {
+ return value + (value & 1);
+}