commit
40854fbf31
|
@ -83,7 +83,7 @@ endif
|
||||||
ifdef FOR_PANDORA
|
ifdef FOR_PANDORA
|
||||||
RZDCY_CFLAGS := \
|
RZDCY_CFLAGS := \
|
||||||
$(CFLAGS) -c -O3 \
|
$(CFLAGS) -c -O3 \
|
||||||
-DRELEASE -DPANDORA\
|
-DNDEBUG -DPANDORA\
|
||||||
-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp \
|
-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp \
|
||||||
-frename-registers -fsingle-precision-constant -ffast-math \
|
-frename-registers -fsingle-precision-constant -ffast-math \
|
||||||
-ftree-vectorize -fomit-frame-pointer
|
-ftree-vectorize -fomit-frame-pointer
|
||||||
|
@ -93,7 +93,7 @@ else
|
||||||
ifdef FOR_ANDROID
|
ifdef FOR_ANDROID
|
||||||
RZDCY_CFLAGS := \
|
RZDCY_CFLAGS := \
|
||||||
$(CFLAGS) -c -O3 \
|
$(CFLAGS) -c -O3 \
|
||||||
-D_ANDROID -DRELEASE \
|
-D_ANDROID -DNDEBUG \
|
||||||
-frename-registers -fsingle-precision-constant -ffast-math \
|
-frename-registers -fsingle-precision-constant -ffast-math \
|
||||||
-ftree-vectorize -fomit-frame-pointer
|
-ftree-vectorize -fomit-frame-pointer
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#define TIME_PRESCALE
|
#define TIME_PRESCALE
|
||||||
#define PICO_SUPPORT_THREADING
|
#define PICO_SUPPORT_THREADING
|
||||||
*/
|
*/
|
||||||
#if defined(RELEASE) && !defined(DEBUGFAST)
|
#if defined(NDEBUG) && !defined(DEBUGFAST)
|
||||||
#define dbg(...)
|
#define dbg(...)
|
||||||
#else
|
#else
|
||||||
#define dbg printf
|
#define dbg printf
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
#ifndef XBRZ_CONFIG_HEADER_284578425345
|
#ifndef XBRZ_CONFIG_HEADER_284578425345
|
||||||
#define XBRZ_CONFIG_HEADER_284578425345
|
#define XBRZ_CONFIG_HEADER_284578425345
|
||||||
|
|
||||||
#define NDEBUG
|
|
||||||
|
|
||||||
//do NOT include any headers here! used by xBRZ_dll!!!
|
//do NOT include any headers here! used by xBRZ_dll!!!
|
||||||
|
|
||||||
namespace xbrz
|
namespace xbrz
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#if FEAT_DSPREC != DYNAREC_JIT
|
#if FEAT_DSPREC != DYNAREC_JIT
|
||||||
|
|
||||||
#ifdef RELEASE
|
#ifdef NDEBUG
|
||||||
#undef verify
|
#undef verify
|
||||||
#define verify(...)
|
#define verify(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -124,7 +124,7 @@ static void DSPTestEnd();
|
||||||
static u64 last_dial_time;
|
static u64 last_dial_time;
|
||||||
static u64 connected_time;
|
static u64 connected_time;
|
||||||
|
|
||||||
#ifndef RELEASE
|
#ifndef NDEBUG
|
||||||
static double last_comm_stats;
|
static double last_comm_stats;
|
||||||
static int sent_bytes;
|
static int sent_bytes;
|
||||||
static int recvd_bytes;
|
static int recvd_bytes;
|
||||||
|
@ -134,7 +134,7 @@ static FILE *sent_fp;
|
||||||
|
|
||||||
static int modem_sched_func(int tag, int cycles, int jitter)
|
static int modem_sched_func(int tag, int cycles, int jitter)
|
||||||
{
|
{
|
||||||
#ifndef RELEASE
|
#ifndef NDEBUG
|
||||||
if (os_GetSeconds() - last_comm_stats >= 2)
|
if (os_GetSeconds() - last_comm_stats >= 2)
|
||||||
{
|
{
|
||||||
if (last_comm_stats != 0)
|
if (last_comm_stats != 0)
|
||||||
|
@ -272,7 +272,7 @@ static int modem_sched_func(int tag, int cycles, int jitter)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CONNECTED:
|
case CONNECTED:
|
||||||
#ifndef RELEASE
|
#ifndef NDEBUG
|
||||||
static bool mem_dumped;
|
static bool mem_dumped;
|
||||||
if (!mem_dumped)
|
if (!mem_dumped)
|
||||||
{
|
{
|
||||||
|
@ -290,7 +290,7 @@ static int modem_sched_func(int tag, int cycles, int jitter)
|
||||||
if (c >= 0 && sh4_sched_now64() - connected_time >= SH4_MAIN_CLOCK / 4)
|
if (c >= 0 && sh4_sched_now64() - connected_time >= SH4_MAIN_CLOCK / 4)
|
||||||
{
|
{
|
||||||
//LOG("pppd received %02x", c);
|
//LOG("pppd received %02x", c);
|
||||||
#ifndef RELEASE
|
#ifndef NDEBUG
|
||||||
recvd_bytes++;
|
recvd_bytes++;
|
||||||
#endif
|
#endif
|
||||||
modem_regs.reg00 = c & 0xFF;
|
modem_regs.reg00 = c & 0xFF;
|
||||||
|
@ -460,7 +460,7 @@ static u8 download_crc;
|
||||||
|
|
||||||
static void ModemNormalWrite(u32 reg, u32 data)
|
static void ModemNormalWrite(u32 reg, u32 data)
|
||||||
{
|
{
|
||||||
#ifndef RELEASE
|
#ifndef NDEBUG
|
||||||
if (recv_fp == NULL)
|
if (recv_fp == NULL)
|
||||||
{
|
{
|
||||||
recv_fp = fopen("ppp_recv.dump", "w");
|
recv_fp = fopen("ppp_recv.dump", "w");
|
||||||
|
@ -512,7 +512,7 @@ static void ModemNormalWrite(u32 reg, u32 data)
|
||||||
else if (connect_state == CONNECTED && modem_regs.reg08.RTS)
|
else if (connect_state == CONNECTED && modem_regs.reg08.RTS)
|
||||||
{
|
{
|
||||||
//LOG("ModemNormalWrite : TBUFFER = %X", data);
|
//LOG("ModemNormalWrite : TBUFFER = %X", data);
|
||||||
#ifndef RELEASE
|
#ifndef NDEBUG
|
||||||
sent_bytes++;
|
sent_bytes++;
|
||||||
if (sent_fp)
|
if (sent_fp)
|
||||||
fputc(data, sent_fp);
|
fputc(data, sent_fp);
|
||||||
|
@ -676,7 +676,7 @@ u32 ModemReadMem_A0_006(u32 addr, u32 size)
|
||||||
modem_regs.reg1e.RDBF = 0;
|
modem_regs.reg1e.RDBF = 0;
|
||||||
SET_STATUS_BIT(0x0c, modem_regs.reg0c.RXFNE, 0);
|
SET_STATUS_BIT(0x0c, modem_regs.reg0c.RXFNE, 0);
|
||||||
SET_STATUS_BIT(0x01, modem_regs.reg01.RXHF, 0);
|
SET_STATUS_BIT(0x01, modem_regs.reg01.RXHF, 0);
|
||||||
#ifndef RELEASE
|
#ifndef NDEBUG
|
||||||
if (connect_state == CONNECTED && recv_fp)
|
if (connect_state == CONNECTED && recv_fp)
|
||||||
fputc(data, recv_fp);
|
fputc(data, recv_fp);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -14,7 +14,7 @@ u32 ta_type_lut[256];
|
||||||
extern int screen_height;
|
extern int screen_height;
|
||||||
|
|
||||||
#define TACALL DYNACALL
|
#define TACALL DYNACALL
|
||||||
#ifdef RELEASE
|
#ifdef NDEBUG
|
||||||
#undef verify
|
#undef verify
|
||||||
#define verify(x)
|
#define verify(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -54,7 +54,7 @@ __attribute__((format(printf, 5, 6)))
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
#if !defined(RELEASE) || defined(DEBUGFAST)
|
#if !defined(NDEBUG) || defined(DEBUGFAST)
|
||||||
#define MAX_LOGLEVEL LogTypes::LOG_LEVELS::LDEBUG
|
#define MAX_LOGLEVEL LogTypes::LOG_LEVELS::LDEBUG
|
||||||
#else
|
#else
|
||||||
#ifndef MAX_LOGLEVEL
|
#ifndef MAX_LOGLEVEL
|
||||||
|
|
|
@ -52,7 +52,7 @@ void VMAllocator::Init(vk::PhysicalDevice physicalDevice, vk::Device device)
|
||||||
|
|
||||||
allocatorInfo.physicalDevice = (VkPhysicalDevice)physicalDevice;
|
allocatorInfo.physicalDevice = (VkPhysicalDevice)physicalDevice;
|
||||||
allocatorInfo.device = (VkDevice)device;
|
allocatorInfo.device = (VkDevice)device;
|
||||||
#if !defined(RELEASE) || defined(DEBUGFAST)
|
#if !defined(NDEBUG) || defined(DEBUGFAST)
|
||||||
allocatorInfo.pDeviceMemoryCallbacks = &memoryCallbacks;
|
allocatorInfo.pDeviceMemoryCallbacks = &memoryCallbacks;
|
||||||
#endif
|
#endif
|
||||||
VkResult rc = vmaCreateAllocator(&allocatorInfo, &allocator);
|
VkResult rc = vmaCreateAllocator(&allocatorInfo, &allocator);
|
||||||
|
|
|
@ -47,7 +47,7 @@ bool XGLGraphicsContext::Init()
|
||||||
{
|
{
|
||||||
GLX_CONTEXT_MAJOR_VERSION_ARB, 4,
|
GLX_CONTEXT_MAJOR_VERSION_ARB, 4,
|
||||||
GLX_CONTEXT_MINOR_VERSION_ARB, 3,
|
GLX_CONTEXT_MINOR_VERSION_ARB, 3,
|
||||||
#ifndef RELEASE
|
#ifndef NDEBUG
|
||||||
GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_DEBUG_BIT_ARB,
|
GLX_CONTEXT_FLAGS_ARB, GLX_CONTEXT_DEBUG_BIT_ARB,
|
||||||
#endif
|
#endif
|
||||||
GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB,
|
GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB,
|
||||||
|
|
|
@ -3097,7 +3097,7 @@
|
||||||
_7ZIP_ST,
|
_7ZIP_ST,
|
||||||
CHD5_FLAC,
|
CHD5_FLAC,
|
||||||
"HAVE_CONFIG_H=1",
|
"HAVE_CONFIG_H=1",
|
||||||
RELEASE,
|
NDEBUG,
|
||||||
"USE_SDL=1",
|
"USE_SDL=1",
|
||||||
XXH_INLINE_ALL,
|
XXH_INLINE_ALL,
|
||||||
VK_USE_PLATFORM_MACOS_MVK,
|
VK_USE_PLATFORM_MACOS_MVK,
|
||||||
|
@ -3414,7 +3414,7 @@
|
||||||
_7ZIP_ST,
|
_7ZIP_ST,
|
||||||
CHD5_FLAC,
|
CHD5_FLAC,
|
||||||
"HAVE_CONFIG_H=1",
|
"HAVE_CONFIG_H=1",
|
||||||
RELEASE,
|
NDEBUG,
|
||||||
XXH_INLINE_ALL,
|
XXH_INLINE_ALL,
|
||||||
"${CFLAGS}",
|
"${CFLAGS}",
|
||||||
);
|
);
|
||||||
|
|
|
@ -42,10 +42,6 @@ else()
|
||||||
set(arch "${CMAKE_SYSTEM_PROCESSOR}")
|
set(arch "${CMAKE_SYSTEM_PROCESSOR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if("${CMAKE_BUILD_TYPE}" STREQUAL Release)
|
|
||||||
add_definitions(-DRELEASE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_definitions(-DUSES_HOMEDIR)
|
add_definitions(-DUSES_HOMEDIR)
|
||||||
add_definitions(-DTARGET_NO_AREC)
|
add_definitions(-DTARGET_NO_AREC)
|
||||||
|
|
||||||
|
|
|
@ -294,7 +294,7 @@ include $(RZDCY_SRC_DIR)/core.mk
|
||||||
|
|
||||||
LDFLAGS += -g -Wl,-Map,$(notdir $@).map,--gc-sections -Wl,-O3 -Wl,--sort-common -fopenmp
|
LDFLAGS += -g -Wl,-Map,$(notdir $@).map,--gc-sections -Wl,-O3 -Wl,--sort-common -fopenmp
|
||||||
|
|
||||||
CFLAGS += $(RZDCY_CFLAGS) -g -O3 -D RELEASE -c -D USES_HOMEDIR -fopenmp #-D NO_REND
|
CFLAGS += $(RZDCY_CFLAGS) -g -O3 -D NDEBUG -c -D USES_HOMEDIR -fopenmp #-D NO_REND
|
||||||
CFLAGS += -frename-registers -fno-strict-aliasing
|
CFLAGS += -frename-registers -fno-strict-aliasing
|
||||||
CFLAGS += -ffast-math -ftree-vectorize -Wno-unused-result
|
CFLAGS += -ffast-math -ftree-vectorize -Wno-unused-result
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue