brrip_rp.hh (12727:56c23b54bcb1) | brrip_rp.hh (13849:858526a875ab) |
---|---|
1/** 2 * Copyright (c) 2018 Inria 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 52 unchanged lines hidden (view full) --- 61class BRRIPRP : public BaseReplacementPolicy 62{ 63 protected: 64 /** BRRIP-specific implementation of replacement data. */ 65 struct BRRIPReplData : ReplacementData 66 { 67 /** 68 * Re-Reference Interval Prediction Value. | 1/** 2 * Copyright (c) 2018 Inria 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 52 unchanged lines hidden (view full) --- 61class BRRIPRP : public BaseReplacementPolicy 62{ 63 protected: 64 /** BRRIP-specific implementation of replacement data. */ 65 struct BRRIPReplData : ReplacementData 66 { 67 /** 68 * Re-Reference Interval Prediction Value. |
69 * Some values have specific names (according to the paper): 70 * 0 -> near-immediate re-rereference interval 71 * max_RRPV-1 -> long re-rereference interval 72 * max_RRPV -> distant re-rereference interval |
|
69 * A value equal to max_RRPV + 1 indicates an invalid entry. 70 */ 71 int rrpv; 72 73 /** 74 * Default constructor. Invalidate data. 75 */ 76 BRRIPReplData(const int max_RRPV) : rrpv(max_RRPV + 1) {} --- 82 unchanged lines hidden --- | 73 * A value equal to max_RRPV + 1 indicates an invalid entry. 74 */ 75 int rrpv; 76 77 /** 78 * Default constructor. Invalidate data. 79 */ 80 BRRIPReplData(const int max_RRPV) : rrpv(max_RRPV + 1) {} --- 82 unchanged lines hidden --- |