First util functions, with corresponding unit test.

This commit is contained in:
Vreixo Formoso
2007-12-13 21:02:36 +01:00
parent 60d68df84c
commit 115da82c9e
6 changed files with 80 additions and 3 deletions

17
src/util.h Normal file
View File

@ -0,0 +1,17 @@
/*
* Copyright (c) 2007 Vreixo Formoso
*
* This file is part of the libisofs project; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. See COPYING file for details.
*/
#ifndef LIBISO_UTIL_H_
#define LIBISO_UTIL_H_
extern inline int div_up(int n, int div);
extern inline int round_up(int n, int mul);
#endif /*LIBISO_UTIL_H_*/