* Takes as an argument an element of the vector previously filled by InCoreMemory. * * @param[in] byte corresponding to the status of a single page * * @returns true if this page was resident in memory at the time out the InCoreMemory execution */
| 30 | * @returns true if this page was resident in memory at the time out the InCoreMemory execution |
| 31 | */ |
| 32 | inline bool IsPageInCore(unsigned char s) { |
| 33 | /* From mincore(2): On return, the least significant bit of each byte will be set if the corresponding page is |
| 34 | * currently resident in memory, and be clear otherwise. (The settings of the other bits in each byte are |
| 35 | * undefined; these bits are reserved for possible later use.) |
| 36 | */ |
| 37 | return s & 1; |
| 38 | } |