mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 14:42:33 +01:00
byuu says: Changelog: - added 30 new PAL games to icarus (courtesy of Mikerochip) - new version of libco no longer requires mprotect nor W|X permissions - nall: default C compiler to -std=c11 instead of -std=c99 - nall: use `-fno-strict-aliasing` during compilation - updated nall/certificates (hopefully for the last time) - updated nall/http to newer coding conventions - nall: improve handling of range() function I didn't really work on higan at all, this is mostly just a release because lots of other things have changed. The most interesting is `-fno-strict-aliasing` ... basically, it joins `-fwrapv` as being "stop the GCC developers from doing *really* evil shit that could lead to security vulnerabilities or instabilities." For the most part, it's a ~2% speed penalty for higan. Except for the Sega Genesis, where it's a ~10% speedup. I have no idea how that's possible, but clearly something's going very wrong with strict aliasing on the Genesis core. So ... it is what it is. If you need the performance for the non-Genesis cores, you can turn it off in your builds. But I'm getting quite sick of C++'s "surprises" and clever compiler developers, so I'm keeping it on in all of my software going forward.
37 lines
820 B
C
37 lines
820 B
C
#ifdef LIBCO_C
|
|
|
|
/*[amd64, arm, ppc, x86]:
|
|
by default, co_swap_function is marked as a text (code) section
|
|
if not supported, uncomment the below line to use mprotect instead */
|
|
/* #define LIBCO_MPROTECT */
|
|
|
|
/*[amd64]:
|
|
Win64 only: provides a substantial speed-up, but will thrash XMM regs
|
|
do not use this unless you are certain your application won't use SSE */
|
|
/* #define LIBCO_NO_SSE */
|
|
|
|
#ifdef LIBCO_C
|
|
#ifdef LIBCO_MP
|
|
#define thread_local __thread
|
|
#else
|
|
#define thread_local
|
|
#endif
|
|
#endif
|
|
|
|
#if __STDC_VERSION__ >= 201112L
|
|
#ifndef _MSC_VER
|
|
#include <stdalign.h>
|
|
#endif
|
|
#else
|
|
#define alignas(bytes)
|
|
#endif
|
|
|
|
#ifndef _MSC_VER
|
|
#define section(name) __attribute__((section("." #name "#")))
|
|
#else
|
|
#define section(name) __declspec(allocate("." #name))
|
|
#endif
|
|
|
|
/* ifdef LIBCO_C */
|
|
#endif
|