Commit Graph

45 Commits (902fc61ef82084957271288d847d8c06a98f5acd)

Author SHA1 Message Date
Lioncash 902fc61ef8 common_funcs: Remove check for VS versions that we don't even support
We don't support any VS versions that don't already have snprintf in the
standard library implementation.
7 years ago
bunnei 746c2a3ae7 core: Refactor MakeMagic usage and remove dead code. 8 years ago
Yuri Kunde Schlesner 2579ae543b Common: Fix some out-of-style includes 8 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
Yuri Kunde Schlesner 396a8d91a4 Manually tweak source formatting and then re-run clang-format 9 years ago
Emmanuel Gil Peyrot dc8479928c Sources: Run clang-format on everything. 9 years ago
MerryMage 8e1768cf1d common_funcs: Provide rotr and rotl for MSVC 9 years ago
Emmanuel Gil Peyrot 691a42fe98 VideoCore: Run include-what-you-use and fix most includes. 9 years ago
Lioncash 88d604383e Common: Get rid of alignment macros
The gl rasterizer already uses alignas,
so we may as well move everything over.
9 years ago
darkf e053d30bf7 Fix building under MinGW 10 years ago
bunnei b39c053785 Rename ARCHITECTURE_X64 definition to ARCHITECTURE_x86_64. 10 years ago
bunnei bd7e691f78 x64: Refactor to remove fake interfaces and general cleanups. 10 years ago
bunnei ddbeebb887 Common: Ported over boilerplate x86 JIT code from Dolphin/PPSSPP. 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.
10 years ago
Apology11 af18572491 don´t define snprintf on Visual Studio 2015
Visual Studio 2015 defines this in stdio now
10 years ago
Emmanuel Gil Peyrot 1775adc34c Common: Remove unused ROUND_UP_POW2 macro. 10 years ago
Emmanuel Gil Peyrot 2d044a67c9 Common: Cleanup memory and misc includes. 10 years ago
Yuri Kunde Schlesner b700b55696 Common: Remove the BIT macro
When the macro was introduced in 326ec51261
it wasn't noticed that it conflicted in name with a heavily used macro
inside of dyncom. This causes some compiler warnings. Since it's only
lightly used, it was opted to simply remove the new macro.
10 years ago
Yuri Kunde Schlesner 326ec51261 Common: Add BIT macro 10 years ago
Yuri Kunde Schlesner fae5933ad6 Common: Add proper macros to test for architecture pointer size
The old system of just defining macros available in some other platform
was susceptible to silently using the wrong code if you forgot to
include a particular header. This fixes a crash on non-Windows platforms
introduced by e1fbac3ca1.
10 years ago
Yuri Kunde Schlesner 1bd1a13a02 Common: Move alignment macros to common_funcs.h 10 years ago
Yuri Kunde Schlesner a594fdb66e Common: Remove more unused compatibility defines 10 years ago
Yuri Kunde Schlesner f3c096951b Common: Move IO-specific compatibility macros to file_util.cpp 10 years ago
Yuri Kunde Schlesner bf12f270b3 Common: Remove many unnecessary cross-platform compatibility macros 10 years ago
archshift e011acaa84 Removed swap code redundancy and moved common swap code to swap.h 10 years ago
bunnei 50a0c4f14f Merge pull request #581 from archshift/tfe
Added information reporting from ThrowFatalError
10 years ago
archshift 0420a4d1de Added information reporting from ThrowFatalError
This was RE'd from the errdisp applet.
10 years ago
archshift 4fb75d220a Misc cleanup of common and related functions 10 years ago
archshift 302f0b32f5 Remove duplication of INSERT_PADDING_WORDS between pica.h and gpu.h 10 years ago
purpasmart96 c3c309f33d ConfigMem: Clean up the Config memory to be more like the shared page and moved
the helper macro for padding to common_funcs.h
10 years ago
archshift ef24e72b26 Asserts: break/crash program, fit to style guide; log.h->assert.h
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time)
As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing)

Also removed some GEKKO cruft.
10 years ago
Yuri Kunde Schlesner fc11aff955 Common: Fix SCOPE_EXIT to actually create unique identifiers. 10 years ago
darkf 8ba9ac0f74 Fix merge conflicts 10 years ago
purpasmart96 ebfd831ccb License change 10 years ago
Yuri Kunde Schlesner eda30c36ee Added missing include in common_funcs.h 11 years ago
Yuri Kunde Schlesner 8a681cdf3d Remove redundant include from common_funcs.h 11 years ago
Tony Wasserka 0cd27a511e Some code cleanup. 11 years ago
Tony Wasserka 27280f178b Fix some headers to include their dependencies properly. 11 years ago
Rohit Nirmal 8a62423970 Change NULLs to nullptrs. 11 years ago
darkf 459502e48c Fix MinGW build 11 years ago
Emmanuel Gil Peyrot f5d38649c7 Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generated 11 years ago
Lioncash 90e994471a Common: Move header guards over to pragma once
Also replaced C headers with the C++ equivalent ones
11 years ago
bunnei 43bc2ac724 added MIN, MAX, and CLAMP macros to common_funcs 11 years ago
bunnei 535947a0e1 fix for issue Linux build #9, not sure why this is broken but its unused code I'm just getting rid of it 11 years ago
bunnei 63e46abdb8 got rid of 'src' folders in each sub-project 11 years ago