pintos/src/lib/round.h File Reference

Go to the source code of this file.

Defines

#define ROUND_UP(X, STEP)   (((X) + (STEP) - 1) / (STEP) * (STEP))
#define DIV_ROUND_UP(X, STEP)   (((X) + (STEP) - 1) / (STEP))
#define ROUND_DOWN(X, STEP)   ((X) / (STEP) * (STEP))


Define Documentation

#define DIV_ROUND_UP ( X,
STEP   )     (((X) + (STEP) - 1) / (STEP))

Definition at line 11 of file round.h.

Referenced by bytes_to_sectors(), elem_cnt(), init_pool(), malloc(), msc_attached(), and test_mlfqs_recent_1().

#define ROUND_DOWN ( X,
STEP   )     ((X) / (STEP) * (STEP))

Definition at line 15 of file round.h.

Referenced by hex_dump(), and test_main().

#define ROUND_UP ( X,
STEP   )     (((X) + (STEP) - 1) / (STEP) * (STEP))

Definition at line 7 of file round.h.

Referenced by get_boundary_area(), load(), pci_setup_io(), and vga_putc().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6