| 2897 | #define DECOMPOSE(n, divisor, q, r) {r = n % divisor; q = n / divisor;} |
| 2898 | |
| 2899 | void restoreFlags(UCHAR* byte, UCHAR flags, bool empty) |
| 2900 | { |
| 2901 | UCHAR bit = PPG_DP_BIT_MASK(slot, ppg_dp_full); |
| 2902 | |
| 2903 | if (flags & dpg_full) |
| 2904 | *byte |= bit; |
| 2905 | else |
| 2906 | *byte &= ~bit; |
| 2907 | |
| 2908 | bit = PPG_DP_BIT_MASK(slot, ppg_dp_large); |
| 2909 | if (flags & dpg_large) |
| 2910 | *byte |= bit; |
| 2911 | else |
| 2912 | *byte &= ~bit; |
| 2913 | |
| 2914 | bit = PPG_DP_BIT_MASK(slot, ppg_dp_swept); |
| 2915 | if (flags & dpg_swept) |
| 2916 | *byte |= bit; |
| 2917 | else |
| 2918 | *byte &= ~bit; |
| 2919 | |
| 2920 | bit = PPG_DP_BIT_MASK(slot, ppg_dp_secondary); |
| 2921 | if (flags & dpg_secondary) |
| 2922 | *byte |= bit; |
| 2923 | else |
| 2924 | *byte &= ~bit; |
| 2925 | |
| 2926 | bit = PPG_DP_BIT_MASK(slot, ppg_dp_empty); |
| 2927 | if (empty) |
| 2928 | *byte |= bit; |
| 2929 | else |
| 2930 | *byte &= ~bit; |
| 2931 | } |
| 2932 | |
| 2933 | void Validation::checkDPinPP(jrd_rel* relation, ULONG page_number) |
| 2934 | { |