mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Hit up some more = default
opportunities.
This commit is contained in:
parent
9a74ab6a8e
commit
d639dc8bcb
@ -59,7 +59,7 @@ struct YamahaFetcher {
|
|||||||
type(type),
|
type(type),
|
||||||
id(id) {}
|
id(id) {}
|
||||||
|
|
||||||
constexpr Event() noexcept {}
|
constexpr Event() noexcept = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
// State that tracks fetching position within a line.
|
// State that tracks fetching position within a line.
|
||||||
|
@ -564,7 +564,7 @@ constexpr Operation rep_operation(Operation operation, Repetition repetition) {
|
|||||||
/// It cannot natively describe a base of ::None.
|
/// It cannot natively describe a base of ::None.
|
||||||
class ScaleIndexBase {
|
class ScaleIndexBase {
|
||||||
public:
|
public:
|
||||||
constexpr ScaleIndexBase() noexcept {}
|
constexpr ScaleIndexBase() noexcept = default;
|
||||||
constexpr ScaleIndexBase(uint8_t sib) noexcept : sib_(sib) {}
|
constexpr ScaleIndexBase(uint8_t sib) noexcept : sib_(sib) {}
|
||||||
constexpr ScaleIndexBase(int scale, Source index, Source base) noexcept :
|
constexpr ScaleIndexBase(int scale, Source index, Source base) noexcept :
|
||||||
sib_(uint8_t(
|
sib_(uint8_t(
|
||||||
@ -703,7 +703,7 @@ template<bool is_32bit> class Instruction {
|
|||||||
using ImmediateT = typename std::conditional<is_32bit, uint32_t, uint16_t>::type;
|
using ImmediateT = typename std::conditional<is_32bit, uint32_t, uint16_t>::type;
|
||||||
using AddressT = ImmediateT;
|
using AddressT = ImmediateT;
|
||||||
|
|
||||||
constexpr Instruction() noexcept {}
|
constexpr Instruction() noexcept = default;
|
||||||
constexpr Instruction(Operation operation) noexcept :
|
constexpr Instruction(Operation operation) noexcept :
|
||||||
Instruction(operation, Source::None, Source::None, ScaleIndexBase(), false, AddressSize::b16, Source::None, DataSize::None, 0, 0) {}
|
Instruction(operation, Source::None, Source::None, ScaleIndexBase(), false, AddressSize::b16, Source::None, DataSize::None, 0, 0) {}
|
||||||
constexpr Instruction(
|
constexpr Instruction(
|
||||||
|
@ -203,7 +203,7 @@ class BufferingScanTarget: public Outputs::Display::ScanTarget {
|
|||||||
struct PointerSet {
|
struct PointerSet {
|
||||||
// This constructor is here to appease GCC's interpretation of
|
// This constructor is here to appease GCC's interpretation of
|
||||||
// an ambiguity in the C++ standard; cf. https://stackoverflow.com/questions/17430377
|
// an ambiguity in the C++ standard; cf. https://stackoverflow.com/questions/17430377
|
||||||
PointerSet() noexcept {}
|
PointerSet() noexcept = default;
|
||||||
|
|
||||||
// Squeezing this struct into 64 bits makes the std::atomics more likely
|
// Squeezing this struct into 64 bits makes the std::atomics more likely
|
||||||
// to be lock free; they are under LLVM x86-64.
|
// to be lock free; they are under LLVM x86-64.
|
||||||
|
@ -145,7 +145,7 @@ struct Microcycle: public MicrocycleOperationStorage<op> {
|
|||||||
*/
|
*/
|
||||||
SlicedInt16 *value = nullptr;
|
SlicedInt16 *value = nullptr;
|
||||||
|
|
||||||
constexpr Microcycle() noexcept {}
|
constexpr Microcycle() noexcept = default;
|
||||||
constexpr Microcycle(OperationT dynamic_operation) noexcept {
|
constexpr Microcycle(OperationT dynamic_operation) noexcept {
|
||||||
if constexpr (op == Operation::DecodeDynamically) {
|
if constexpr (op == Operation::DecodeDynamically) {
|
||||||
MicrocycleOperationStorage<op>::operation = dynamic_operation;
|
MicrocycleOperationStorage<op>::operation = dynamic_operation;
|
||||||
|
@ -40,7 +40,7 @@ struct Sector {
|
|||||||
bool has_header_crc_error = false;
|
bool has_header_crc_error = false;
|
||||||
bool is_deleted = false;
|
bool is_deleted = false;
|
||||||
|
|
||||||
Sector() noexcept {}
|
Sector() noexcept = default;
|
||||||
|
|
||||||
Sector(const Sector &&rhs) noexcept :
|
Sector(const Sector &&rhs) noexcept :
|
||||||
address(rhs.address),
|
address(rhs.address),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user