aboutsummaryrefslogtreecommitdiff
path: root/src/target/algorithm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/algorithm.c')
-rw-r--r--src/target/algorithm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/algorithm.c b/src/target/algorithm.c
index 7643e3c..76cf48b 100644
--- a/src/target/algorithm.c
+++ b/src/target/algorithm.c
@@ -43,7 +43,7 @@ void init_reg_param(struct reg_param *param, char *reg_name, uint32_t size, enum
{
param->reg_name = reg_name;
param->size = size;
- param->value = malloc(CEIL(size, 8));
+ param->value = malloc(DIV_ROUND_UP(size, 8));
param->direction = direction;
}