Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (6 sloc) 258 Bytes
// Copyright (c) 2008 David Caldwell, All Rights Reserved.
#ifndef __ROUND_H__
#define __ROUND_H__
#define divide_round_up(val,divisor) (((val)+(divisor)-1)/(divisor))
#define round_down(val,divisor) ((val)/(divisor)*(divisor))
#endif /* __ROUND_H__ */