]> git.proxmox.com Git - mirror_spl.git/blob - include/sys/param.h
Changed ptob()/btop() mult/div into bit shifts.
[mirror_spl.git] / include / sys / param.h
1 #ifndef _SPL_PARAM_H
2 #define _SPL_PARAM_H
3
4 #include <asm/page.h>
5
6 /* Pages to bytes and back */
7 #define ptob(pages) (pages << PAGE_SHIFT)
8 #define btop(bytes) (bytes >> PAGE_SHIFT)
9
10 #endif /* SPL_PARAM_H */