| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Implicit conversions are now disallowed in fmt 10. Use format_as to convert to the underlying type.
|
| | |
|
| | |
|
| |
|
|
| |
Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
|
| | |
|
| |
|
|
|
|
| |
Now that clang-format makes [[nodiscard]] attributes format sensibly, we
can apply them to several functions within the common library to allow
the compiler to complain about any misuses of the functions.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
We can just use numeric_limits instead of relying on wraparound behavior
here.
|
| |
|
|
| |
- Zero initialization here is useful for determinism.
|
| |
|
|
| |
See bunneis comment here https://github.com/citra-emu/citra/pull/4629#discussion_r258533167.
They were supposed to be removed by him, but he missed them.
|
| |
|
|
|
| |
Introduced as a result of #2090, we already define the copy constructor
further down below, so this isn't needed.
|
| |\
| |
| | |
Port citra-emu/citra#4244 and citra-emu/citra#4599: Changes to BitField
|
| | |
| |
| |
| |
| |
| | |
This change needs to be made to get the code compiling again. It was suggested after a conversation with Lioncash.
The conversation can be seen here: https://user-images.githubusercontent.com/20753089/45064197-b6107800-b0b2-11e8-9db8-f696299fb86a.PNG
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
| |
This makes the class much more flexible and doesn't make performing
copies with classes that contain a bitfield member a pain.
Given BitField instances are only intended to be used within unions, the
fact the full storage value would be copied isn't a big concern (only
sizeof(union_type) would be copied anyways).
While we're at it, provide defaulted move constructors for consistency.
|
| |
|
|
| |
Storing signed type causes the following behaviour: extractValue can do overflow/negative left shift. Now it only relies on two implementation-defined behaviours (which are almost always defined as we want): unsigned->signed conversion and signed right shift
|
| | |
|
| |
|
|
| |
Gets rid of a TODO that is long overdue.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
| |
__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.
|
| |\
| |
| | |
Common: Fix mask generation in BitField
|
| | |
| |
| |
| |
| | |
For the signed case, the shifts already remove the rest of the value, so
ANDing by the mask is redundant.
|
| | |
| |
| |
| | |
Fixes #913
|
| |/ |
|
| | |
|
| |\
| |
| | |
More warning cleanups
|
| | | |
|
| |\ \
| |/
|/| |
License change
|
| | | |
|
| |/
|
|
| |
This is useful when doing crazy stuff like inheriting from BitField.
|
| | |
|
| | |
|
| |
|
|
| |
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.
|
| |
|
|
| |
Cf. https://github.com/dolphin-emu/dolphin/pull/483
|
| |
|
|
| |
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.
|
| | |
|
| | |
|
| |
|