addr_range.hh (9412:190fd0e285f6) addr_range.hh (9541:e476d01bc6a4)
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

254 * @return true if the address is in the range
255 */
256 bool contains(const Addr& a) const
257 {
258 // check if the address is in the range and if there is either
259 // no interleaving, or with interleaving also if the selected
260 // bits from the address match the interleaving value
261 return a >= _start && a <= _end &&
1/*
2 * Copyright (c) 2012 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

254 * @return true if the address is in the range
255 */
256 bool contains(const Addr& a) const
257 {
258 // check if the address is in the range and if there is either
259 // no interleaving, or with interleaving also if the selected
260 // bits from the address match the interleaving value
261 return a >= _start && a <= _end &&
262 (interleaved() ||
262 (!interleaved() ||
263 (bits(a, intlvHighBit, intlvHighBit - intlvBits + 1) ==
264 intlvMatch));
265 }
266
267/**
268 * Keep the operators away from SWIG.
269 */
270#ifndef SWIG

--- 34 unchanged lines hidden ---
263 (bits(a, intlvHighBit, intlvHighBit - intlvBits + 1) ==
264 intlvMatch));
265 }
266
267/**
268 * Keep the operators away from SWIG.
269 */
270#ifndef SWIG

--- 34 unchanged lines hidden ---