<commit_before>LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := retro

ifeq ($(TARGET_ARCH),arm)
ANDROID_FLAGS := -DANDROID_ARM

#arm speedups
#default to thumb because its smaller and more can fit in the cpu cache
LOCAL_ARM_MODE := thumb
#switch to arm or thumb instruction set per function based on speed(dont restrict to only arm or thumb use both)
LOCAL_CFLAGS += -mthumb-interwork

#enable/disable optimization
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
   LOCAL_CFLAGS += -munaligned-access
   V7NEONOPTIMIZATION ?= 0
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
#neon is a requirement for armv8 so just enable it
   LOCAL_CFLAGS += -munaligned-access
   LOCAL_ARM_NEON := true
endif

#armv7+ optimizations
ifeq ($(V7NEONOPTIMIZATION),1)
   LOCAL_ARM_NEON := true
endif
endif

ifeq ($(TARGET_ARCH),x86)
ANDROID_FLAGS :=  -DANDROID_X86
endif

ifeq ($(TARGET_ARCH),mips)
ANDROID_FLAGS := -DANDROID_MIPS -D__mips__ -D__MIPSEL__
endif

CORE_DIR := ..
WANT_ZLIB=1
WANT_LUALIB=1

include $(CORE_DIR)/Makefile.common

LOCAL_SRC_FILES    += $(SOURCES_C)

LOCAL_C_INCLUDES    = $(INCFLAGS)

COMMON_DEFINES = -ffast-math -funroll-loops -DLSB_FIRST -DINLINE=inline -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DLUA_USE_POSIX -DNDEBUG
LOCAL_CFLAGS   += -std=gnu99 $(COMMON_DEFINES) $(INCFLAGS) $(ANDROID_FLAGS)
LOCAL_CXXFLAGS += $(COMMON_DEFINES) $(ANDROID_FLAGS)

include $(BUILD_SHARED_LIBRARY)<commit_msg>(JNI) Add NDEBUG<commit_after>LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := retro

ifeq ($(TARGET_ARCH),arm)
ANDROID_FLAGS := -DANDROID_ARM

#arm speedups
#default to thumb because its smaller and more can fit in the cpu cache
LOCAL_ARM_MODE := thumb
#switch to arm or thumb instruction set per function based on speed(dont restrict to only arm or thumb use both)
LOCAL_CFLAGS += -mthumb-interwork

#enable/disable optimization
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
   LOCAL_CFLAGS += -munaligned-access
   V7NEONOPTIMIZATION ?= 0
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
#neon is a requirement for armv8 so just enable it
   LOCAL_CFLAGS += -munaligned-access
   LOCAL_ARM_NEON := true
endif

#armv7+ optimizations
ifeq ($(V7NEONOPTIMIZATION),1)
   LOCAL_ARM_NEON := true
endif
endif

ifeq ($(TARGET_ARCH),x86)
ANDROID_FLAGS :=  -DANDROID_X86
endif

ifeq ($(TARGET_ARCH),mips)
ANDROID_FLAGS := -DANDROID_MIPS -D__mips__ -D__MIPSEL__
endif

CORE_DIR := ..
WANT_ZLIB=1
WANT_LUALIB=1

include $(CORE_DIR)/Makefile.common

LOCAL_SRC_FILES    += $(SOURCES_C)

LOCAL_C_INCLUDES    = $(INCFLAGS)

COMMON_DEFINES = -ffast-math -funroll-loops -DLSB_FIRST -DINLINE=inline -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DLUA_USE_POSIX
LOCAL_CFLAGS   += -std=gnu99 $(COMMON_DEFINES) $(INCFLAGS) $(ANDROID_FLAGS)
LOCAL_CXXFLAGS += $(COMMON_DEFINES) $(ANDROID_FLAGS)

include $(BUILD_SHARED_LIBRARY)
{'fraction_non_alphanumeric': 0.10595322466335932, 'fraction_numerical': 0.014883061658398299, 'mean_word_length': 5.580419580419581, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3045533', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1077, 'n_words': 250}