Merge pull request #428 from lioncash/unused

common: Remove address_range.h
This commit is contained in:
Merry 2019-02-08 21:55:22 +00:00 committed by MerryMage
commit 1138ac3429
5 changed files with 0 additions and 27 deletions

View file

@ -7,7 +7,6 @@ add_library(dynarmic
../include/dynarmic/A64/a64.h ../include/dynarmic/A64/a64.h
../include/dynarmic/A64/config.h ../include/dynarmic/A64/config.h
../include/dynarmic/A64/exclusive_monitor.h ../include/dynarmic/A64/exclusive_monitor.h
common/address_range.h
common/assert.h common/assert.h
common/bit_util.h common/bit_util.h
common/cast_util.h common/cast_util.h

View file

@ -20,7 +20,6 @@
#include "backend/x64/devirtualize.h" #include "backend/x64/devirtualize.h"
#include "backend/x64/emit_x64.h" #include "backend/x64/emit_x64.h"
#include "backend/x64/perf_map.h" #include "backend/x64/perf_map.h"
#include "common/address_range.h"
#include "common/assert.h" #include "common/assert.h"
#include "common/bit_util.h" #include "common/bit_util.h"
#include "common/common_types.h" #include "common/common_types.h"

View file

@ -17,7 +17,6 @@
#include "backend/x64/devirtualize.h" #include "backend/x64/devirtualize.h"
#include "backend/x64/emit_x64.h" #include "backend/x64/emit_x64.h"
#include "backend/x64/perf_map.h" #include "backend/x64/perf_map.h"
#include "common/address_range.h"
#include "common/assert.h" #include "common/assert.h"
#include "common/bit_util.h" #include "common/bit_util.h"
#include "common/common_types.h" #include "common/common_types.h"

View file

@ -17,7 +17,6 @@
#include <xbyak_util.h> #include <xbyak_util.h>
#include "backend/x64/reg_alloc.h" #include "backend/x64/reg_alloc.h"
#include "common/address_range.h"
#include "common/bit_util.h" #include "common/bit_util.h"
#include "common/fp/rounding_mode.h" #include "common/fp/rounding_mode.h"
#include "frontend/ir/location_descriptor.h" #include "frontend/ir/location_descriptor.h"

View file

@ -1,23 +0,0 @@
/* This file is part of the dynarmic project.
* Copyright (c) 2016 MerryMage
* This software may be used and distributed according to the terms of the GNU
* General Public License version 2 or any later version.
*/
#pragma once
#include "common/common_types.h"
namespace Dynarmic::Common {
struct AddressRange {
u32 start_address;
size_t length;
// Does this interval overlap with [from, to)?
bool Overlaps(u32 from, u32 to) const {
return start_address <= to && from <= start_address + length;
}
};
} // namespace Dynarmic::Common