summaryrefslogtreecommitdiff
path: root/src/common/common_funcs.h
AgeCommit message (Collapse)Author
2018-07-29Port #3732 from Citra: "common: Fix compilation on ARM"Cameron Cawley
2018-07-19Merge pull request #710 from lioncash/unusedbunnei
common/common_funcs: Remove unused rotation functions
2018-07-19common/common_funcs: Remove unused rotation functionsLioncash
These are unused and essentially don't provide much benefit either. If we ever need rotation functions, these can be introduced in a way that they don't sit in a common_* header and require a bunch of ifdefing to simply be available
2018-07-19common/misc: Deduplicate code in GetLastErrorMsg()Lioncash
Android and macOS have supported thread_local for quite a while, but most importantly is that we don't even really need it. Instead of using a thread-local buffer, we can just return a non-static buffer as a std::string, avoiding the need for that quality entirely.
2018-07-07Port #3579 from CitrafearlessTobi
2018-04-20Merge pull request #362 from lioncash/snprintfbunnei
common_funcs: Remove check for VS versions that we don't even support
2018-04-19common_funcs: Remove ARRAY_SIZE macroLioncash
C++17 has non-member size() which we can just call where necessary.
2018-04-19common_funcs: Remove check for VS versions that we don't even supportLioncash
We don't support any VS versions that don't already have snprintf in the standard library implementation.
2017-10-15core: Refactor MakeMagic usage and remove dead code.bunnei
2017-05-27Common: Fix some out-of-style includesYuri Kunde Schlesner
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2016-05-27common_funcs: Provide rotr and rotl for MSVCMerryMage
2016-04-30VideoCore: Run include-what-you-use and fix most includes.Emmanuel Gil Peyrot
2016-03-09Common: Get rid of alignment macrosLioncash
The gl rasterizer already uses alignas, so we may as well move everything over.
2015-08-17Fix building under MinGWdarkf
2015-08-15Rename ARCHITECTURE_X64 definition to ARCHITECTURE_x86_64.bunnei
2015-08-15x64: Refactor to remove fake interfaces and general cleanups.bunnei
2015-08-15Common: Ported over boilerplate x86 JIT code from Dolphin/PPSSPP.bunnei
2015-08-11Stop defining GCC always_inline attributes as __forceinlinearchshift
__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.
2015-07-12don´t define snprintf on Visual Studio 2015Apology11
Visual Studio 2015 defines this in stdio now
2015-06-28Common: Remove unused ROUND_UP_POW2 macro.Emmanuel Gil Peyrot
2015-06-28Common: Cleanup memory and misc includes.Emmanuel Gil Peyrot
2015-05-09Common: Remove the BIT macroYuri Kunde Schlesner
When the macro was introduced in 326ec51261299e48de97592631c02523da9c8118 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.
2015-05-08Common: Add BIT macroYuri Kunde Schlesner
2015-05-07Common: Add proper macros to test for architecture pointer sizeYuri Kunde Schlesner
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 e1fbac3ca13d37d2625c11d30cfdece4327b446b.
2015-05-07Common: Move alignment macros to common_funcs.hYuri Kunde Schlesner
2015-05-07Common: Remove more unused compatibility definesYuri Kunde Schlesner
2015-05-07Common: Move IO-specific compatibility macros to file_util.cppYuri Kunde Schlesner
2015-05-06Common: Remove many unnecessary cross-platform compatibility macrosYuri Kunde Schlesner
2015-03-05Removed swap code redundancy and moved common swap code to swap.harchshift
2015-02-23Merge pull request #581 from archshift/tfebunnei
Added information reporting from ThrowFatalError
2015-02-22Added information reporting from ThrowFatalErrorarchshift
This was RE'd from the errdisp applet.
2015-02-19Misc cleanup of common and related functionsarchshift
2015-02-19Remove duplication of INSERT_PADDING_WORDS between pica.h and gpu.harchshift
2015-02-16ConfigMem: Clean up the Config memory to be more like the shared page and movedpurpasmart96
the helper macro for padding to common_funcs.h
2015-02-10Asserts: break/crash program, fit to style guide; log.h->assert.harchshift
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.
2015-01-30Common: Fix SCOPE_EXIT to actually create unique identifiers.Yuri Kunde Schlesner
2014-12-29Fix merge conflictsdarkf
2014-12-20License changepurpasmart96
2014-12-13Added missing include in common_funcs.hYuri Kunde Schlesner
2014-12-13Remove redundant include from common_funcs.hYuri Kunde Schlesner
2014-12-09Some code cleanup.Tony Wasserka
2014-12-09Fix some headers to include their dependencies properly.Tony Wasserka
2014-12-03Change NULLs to nullptrs.Rohit Nirmal
2014-11-28Fix MinGW builddarkf
2014-11-19Remove trailing spaces in every file but the ones imported from SkyEye, AOSP ↵Emmanuel Gil Peyrot
or generated
2014-08-17Common: Move header guards over to pragma onceLioncash
Also replaced C headers with the C++ equivalent ones
2014-05-17added MIN, MAX, and CLAMP macros to common_funcsbunnei