tree_plru_rp.cc (13221:48bce2835200) tree_plru_rp.cc (13236:8ea2f58940b0)
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;

--- 22 unchanged lines hidden (view full) ---

31/**
32 * @file
33 * Definitions of a Tree-PLRU replacement policy, along with some helper
34 * tree indexing functions, which map an index to the tree 2D-array.
35 */
36
37#include "mem/cache/replacement_policies/tree_plru_rp.hh"
38
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;

--- 22 unchanged lines hidden (view full) ---

31/**
32 * @file
33 * Definitions of a Tree-PLRU replacement policy, along with some helper
34 * tree indexing functions, which map an index to the tree 2D-array.
35 */
36
37#include "mem/cache/replacement_policies/tree_plru_rp.hh"
38
39#include <memory>
39#include <cmath>
40
41#include "base/intmath.hh"
40
41#include "base/intmath.hh"
42#include "base/logging.hh"
42#include "params/TreePLRURP.hh"
43
44/**
45 * Get the index of the parent of the given indexed subtree.
46 *
47 * @param Index of the queried tree.
48 * @return The index of the parent tree.
49 */

--- 169 unchanged lines hidden ---
43#include "params/TreePLRURP.hh"
44
45/**
46 * Get the index of the parent of the given indexed subtree.
47 *
48 * @param Index of the queried tree.
49 * @return The index of the parent tree.
50 */

--- 169 unchanged lines hidden ---