Add rman_get_size(), which does what you would expect.

Further commits to make use of this will follow.
This commit is contained in:
mdodd 2000-10-17 23:45:28 +00:00
parent 94df07bcb4
commit 81e1a4e653

View File

@ -99,6 +99,7 @@ uint32_t rman_make_alignment_flags(uint32_t size);
#define rman_get_start(r) ((r)->r_start)
#define rman_get_end(r) ((r)->r_end)
#define rman_get_size(r) (((r)->r_end - (r)->r_start) + 1)
#define rman_get_flags(r) ((r)->r_flags)
#define rman_set_virtual(r,v) ((r)->r_virtual = (v))
#define rman_get_virtual(r) ((r)->r_virtual)