Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (6 sloc) 0.258 kB
// 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__ */
Jump to Line
Something went wrong with that request. Please try again.