fearlessTobi
63c2e32e20
Port #4182 from Citra: "Prefix all size_t with std::"
7 years ago
Lioncash
36090521ce
bit_field: Convert ToBool() into explicit operator bool
Gets rid of a TODO that is long overdue.
7 years ago
bunnei
e59126809c
bit_field: Remove is_pod check, add is_trivially_copyable_v.
8 years ago
bunnei
0315fe8c3d
bit_field: Make all methods constexpr.
8 years ago
Yuri Kunde Schlesner
c1a9e94068
Common: Clean up meta-template logic in BitField
9 years ago
Yuri Kunde Schlesner
a75145a2c6
Make BitField and ResultCode constexpr-initializable
9 years ago
Emmanuel Gil Peyrot
ebdae19fd2
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Emmanuel Gil Peyrot
dc8479928c
Sources: Run clang-format on everything.
9 years ago
Emmanuel Gil Peyrot
691a42fe98
VideoCore: Run include-what-you-use and fix most includes.
10 years ago
MerryMage
8b00954ec7
AudioCore: Skeleton Implementation
This commit:
* Adds a new subproject, audio_core.
* Defines structures that exist in DSP shared memory.
* Hooks up various other parts of the emulator into audio core.
This sets the foundation for a later HLE DSP implementation.
10 years ago
MerryMage
6c71858c5c
BitField: Make trivially copyable and remove assignment operator
10 years ago
Lioncash
845ac621b3
bit_field: Re-enable code on MSVC
10 years ago
archshift
d1ae413ffd
Stop defining GCC always_inline attributes as __forceinline
__forceinline is a MSVC extension, which may confuse some people working on the codebase.
Furthermore, the C++ standard dictates that all names which contain adjacent underscores are reserved.
11 years ago
Yuri Kunde Schlesner
d5b5280501
Common: Remove redundant masking in BitField
For the signed case, the shifts already remove the rest of the value, so
ANDing by the mask is redundant.
11 years ago
Yuri Kunde Schlesner
d7f9529bdd
Common: Fix mask generation in BitField
Fixes #913
11 years ago
Emmanuel Gil Peyrot
596b7c4f63
Common: Cleanup key_map includes.
11 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
11 years ago
Chin
0199a7d9ef
More warning cleanups
11 years ago
purpasmart96
ebfd831ccb
License change
11 years ago
Tony Wasserka
95be6a09b2
BitField: Add an explicit Assign method.
This is useful when doing crazy stuff like inheriting from BitField.
11 years ago
Lioncash
2dce9b2ead
bit_field: Fix a typo in the sample usage.
11 years ago
Tony Wasserka
0da8e2eacc
BitField: Cast enum values to proper integer type.
12 years ago
Tony Wasserka
cd1d5786d9
BitField: Add a static_assert.
Being able to store BitField within unions requires BitField to be of standard layout, which in turn is only given if the underlying type is also has standard layout.
12 years ago
Tony Wasserka
15ab5382a5
BitField: Delete copy assignment to prevent obscure bugs.
Cf. https://github.com/dolphin-emu/dolphin/pull/483
12 years ago
Tony Wasserka
47a001722d
BitField: Add an explicit evaluation method.
Sometimes it can be beneficial to use this in places where an explicit cast needs to happen otherwise. By using the evaluation method, it's not necessary anymore to explicitly write the underlying type in this case.
12 years ago
bunnei
a6b047ec3b
removed incorrect dolphin copyright line
12 years ago
bunnei
a713bd1bad
fixed include of common in bit_field.h
12 years ago
bunnei
e7a0283625
added BitField to common
12 years ago