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.
This commit is contained in:
Zachary T Welch
2009-11-16 02:53:57 -08:00
parent f0ce88b3af
commit a94748ec6d
19 changed files with 60 additions and 53 deletions

View File

@@ -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;
}