From a94748ec6da9bdc6e25a7f73bbea723b8b55fa33 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Mon, 16 Nov 2009 02:53:57 -0800 Subject: rename CEIL as DIV_ROUND_UP Improves the name of this macro, moves it to types.h, and adds a block of Doxygen comments to describe what it does. --- src/target/algorithm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/algorithm.c') diff --git a/src/target/algorithm.c b/src/target/algorithm.c index 7643e3cb..76cf48bc 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; } -- cgit v1.2.3