Lioncash
c9f5ae4fcc
common_funcs: Remove ARRAY_SIZE macro
C++17 has non-member size() which we can just call where necessary.
8 years ago
bunnei
5e11c12766
core: Refactor MakeMagic usage and remove dead code.
8 years ago
Yuri Kunde Schlesner
8b55ffb74a
Common: Fix some out-of-style includes
9 years ago
Emmanuel Gil Peyrot
1138ec0d49
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
1e4a5da9f4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
628ed4376a
Sources: Run clang-format on everything.
9 years ago
MerryMage
b7b02d0177
common_funcs: Provide rotr and rotl for MSVC
10 years ago
Emmanuel Gil Peyrot
c39a267974
VideoCore: Run include-what-you-use and fix most includes.
10 years ago
Lioncash
f932c2f4ac
Common: Get rid of alignment macros
The gl rasterizer already uses alignas,
so we may as well move everything over.
10 years ago
bunnei
2fd9b1999f
gl_rasterizer: Use MMH3 hash for shader cache hey.
- Includes a check to confirm no hash collisions.
10 years ago
bunnei
eefabd6b7d
renderer_opengl: Refactor shader generation/caching to be more organized + various cleanups.
10 years ago
darkf
8d212ff881
Fix building under MinGW
11 years ago
bunnei
4ffc095fa3
Rename ARCHITECTURE_X64 definition to ARCHITECTURE_x86_64.
11 years ago
bunnei
f9e3228caa
x64: Refactor to remove fake interfaces and general cleanups.
11 years ago
bunnei
3d35d53b8d
Common: Ported over boilerplate x86 JIT code from Dolphin/PPSSPP.
11 years ago
archshift
58e2d19f08
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
Apology11
af18572491
don´t define snprintf on Visual Studio 2015
Visual Studio 2015 defines this in stdio now
11 years ago
Emmanuel Gil Peyrot
1775adc34c
Common: Remove unused ROUND_UP_POW2 macro.
11 years ago
Emmanuel Gil Peyrot
2d044a67c9
Common: Cleanup memory and misc includes.
11 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.
11 years ago
Yuri Kunde Schlesner
326ec51261
Common: Add BIT macro
11 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 .
11 years ago
Yuri Kunde Schlesner
1bd1a13a02
Common: Move alignment macros to common_funcs.h
11 years ago
Yuri Kunde Schlesner
a594fdb66e
Common: Remove more unused compatibility defines
11 years ago
Yuri Kunde Schlesner
f3c096951b
Common: Move IO-specific compatibility macros to file_util.cpp
11 years ago
Yuri Kunde Schlesner
bf12f270b3
Common: Remove many unnecessary cross-platform compatibility macros
11 years ago
archshift
e011acaa84
Removed swap code redundancy and moved common swap code to swap.h
11 years ago
archshift
0420a4d1de
Added information reporting from ThrowFatalError
This was RE'd from the errdisp applet.
11 years ago
archshift
4fb75d220a
Misc cleanup of common and related functions
11 years ago
archshift
302f0b32f5
Remove duplication of INSERT_PADDING_WORDS between pica.h and gpu.h
11 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
11 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.
11 years ago
Yuri Kunde Schlesner
fc11aff955
Common: Fix SCOPE_EXIT to actually create unique identifiers.
11 years ago
purpasmart96
ebfd831ccb
License change
11 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
12 years ago
bunnei
43bc2ac724
added MIN, MAX, and CLAMP macros to common_funcs
12 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
12 years ago
bunnei
63e46abdb8
got rid of 'src' folders in each sub-project
12 years ago
bunnei
c9b5b89e21
convert tabs to spaces
12 years ago
ShizZy
62d873da3e
start of 3DS memory map
12 years ago
ShizZy
7564d28faf
replaced common code with dolphin common
12 years ago