Activity/lkml linux-libc-headers 2.6.8.0 ANNOUNCE Albert Cahalan 1 participant 1 message Aug 19, 2004 TreeChronological All quotes loreShare & toolsCopy link lore Albert Cahalan author 2004-08-19 02:37 UTC #0 Copy lore rawNever mind that last one. This is nicer:extern int getpagesize(void);#define PAGE_SIZE ((unsigned long)getpagesize())#define PAGE_SHIFT ((unsigned long[]){12,13,14,-1,15,-1,-1,-1,16}[PAGE_SIZE>>13])
Albert Cahalan author 2004-08-19 02:37 UTC #0 Copy lore rawNever mind that last one. This is nicer:extern int getpagesize(void);#define PAGE_SIZE ((unsigned long)getpagesize())#define PAGE_SHIFT ((unsigned long[]){12,13,14,-1,15,-1,-1,-1,16}[PAGE_SIZE>>13])