dolphin/Source/Core/DolphinQt
Lioncash 244d083f0e PowerPC: Remove separate macros for paired singles
Previously, PowerPC.h had four macros in it like so:

\#define rPS0(i) (*(double*)(&PowerPC::ppcState.ps[i][0]))
\#define rPS1(i) (*(double*)(&PowerPC::ppcState.ps[i][1]))

\#define riPS0(i) (*(u64*)(&PowerPC::ppcState.ps[i][0]))
\#define riPS1(i) (*(u64*)(&PowerPC::ppcState.ps[i][1]))

Casting between object representations like this is undefined behavior.
Given this is used heavily with the interpreter (that is, the most
accurate, but slowest CPU backend), we don't exactly want to allow
undefined behavior to creep into it.

Instead, this adds a helper struct for operating with the paired singles,
and replaces the four macros with a single macro for accessing the
paired-singles/floating-point registers.

This way, it's left up to the caller to explicitly decide how it wants to interpret
the data (and makes it more obvious where different interpretations of
the same data are occurring at, as there'll be a call to one of the
[x]AsDouble() functions).
2018-12-25 10:35:09 -05:00
..
Config LogWidget: Preserve spaces and newlines 2018-12-02 19:12:12 +04:00
Debugger PowerPC: Remove separate macros for paired singles 2018-12-25 10:35:09 -05:00
FIFO FIFOAnalyzer: don't use misleading format strings 2018-11-03 14:37:22 +00:00
GameList Merge pull request #7499 from JosJuice/purge-game-list-cache 2018-10-28 17:00:04 +01:00
NetPlay Qt/NetPlayDialog: Request game stop when core enters stopping state 2018-11-30 03:40:23 -05:00
QtUtils NetPlay: Improve settings synchronization and UI 2018-07-26 17:23:04 -04:00
Settings DolphinQt: tell analytics to reload settings on change 2018-10-29 05:07:47 +01:00
TAS Merge pull request #7326 from spycrab/qt_tas_fancy 2018-08-15 19:46:56 +02:00
AboutDialog.cpp Qt/Resources: Convert int parameters of GetCountry(), GetPlatform() and GetMisc() to enum classes 2018-07-10 15:23:12 -04:00
AboutDialog.h
CheatsManager.cpp Fix typo causing "Remove from Watch" in Cheat Manager to crash Dolphin 2018-09-24 23:01:24 -05:00
CheatsManager.h Qt/CheatsManager: Move concealable types into the cpp file 2018-07-10 14:34:24 -04:00
CMakeLists.txt Externals: Add MoltenVK binary, copy to package on macOS 2018-12-01 14:35:45 +10:00
DiscordHandler.cpp Force IPv4 on external IP addresses 2018-08-13 21:17:38 -04:00
DiscordHandler.h Force IPv4 on external IP addresses 2018-08-13 21:17:38 -04:00
DiscordJoinRequestDialog.cpp Force IPv4 on external IP addresses 2018-08-13 21:17:38 -04:00
DiscordJoinRequestDialog.h Force IPv4 on external IP addresses 2018-08-13 21:17:38 -04:00
DolphinQt.manifest Add supportedOS manifests for Windows 7, 8, 8.1, and 10 to DolphinQt and Updater. Enables high contrast themes on Windows 8+. 2018-11-03 22:33:55 -04:00
DolphinQt.rc
DolphinQt.vcxproj NetPlay: Implement chunked data transfer 2018-11-19 06:37:09 -05:00
DolphinQt.vcxproj.user
GCMemcardManager.cpp Merge pull request #7357 from Techjar/qt-memcard-manager-select-button 2018-08-27 13:35:38 +02:00
GCMemcardManager.h Qt/GCMemcardManager: Make slot and file selection more intuitive 2018-08-24 07:10:48 -04:00
Host.cpp Host: Also call ControllerInterface::ChangeWindow when window changes 2018-10-29 11:46:06 +10:00
Host.h Drop Host_GetRenderSurface and pass display to backend 2018-10-20 21:11:34 +10:00
HotkeyScheduler.cpp DolphinQt: Don't call "frame advance" "frame skip" 2018-08-09 10:32:32 +02:00
HotkeyScheduler.h Input: Add hotkey to cycle the wiimote profile forward or backward 2018-07-07 12:39:08 -05:00
Info.plist.in
Main.cpp Reword some translatable strings 2018-09-08 15:19:01 +02:00
MainWindow.cpp Merge pull request #7594 from TryTwo/NestedDocks 2018-12-05 17:14:46 +01:00
MainWindow.h ControllerInterface: Don't crash on non-X11 QPA 2018-10-29 11:46:06 +10:00
MenuBar.cpp Qt: Disable controller configuration while NetPlay is running 2018-11-29 07:31:45 -05:00
MenuBar.h Qt: Disable controller configuration while NetPlay is running 2018-11-29 07:31:45 -05:00
qt.conf
RenderWidget.cpp VideoBackends: Pass window system info from host on creation 2018-10-20 21:11:34 +10:00
RenderWidget.h
resource.h
Resources.cpp Qt/Resources: Convert int parameters of GetCountry(), GetPlatform() and GetMisc() to enum classes 2018-07-10 15:23:12 -04:00
Resources.h Qt/Resources: Convert int parameters of GetCountry(), GetPlatform() and GetMisc() to enum classes 2018-07-10 15:23:12 -04:00
SearchBar.cpp
SearchBar.h
Settings.cpp Qt: Fix widgets being visible when they shouldn't be 2018-08-20 00:39:57 +02:00
Settings.h Qt: Fix widgets being visible when they shouldn't be 2018-08-20 00:39:57 +02:00
ToolBar.cpp Qt: Disable controller configuration while NetPlay is running 2018-11-29 07:31:45 -05:00
ToolBar.h
Translation.cpp DolphinQt: reduce warnings about MO files 2018-10-28 11:45:59 +00:00
Translation.h
Updater.cpp
Updater.h
WiiUpdate.cpp
WiiUpdate.h