Skip to content

Commit

Permalink
Remove useless neon: clause.
Browse files Browse the repository at this point in the history
There hasn't been a non-neon platform build in years.

Also, remove unused DISABLE_NEONINTR, ARMGCC macro definitions

Bug: 330929681
Test: Builds
Change-Id: Ibf1c8dab90ba77b8725eb623bbee297a43a69bcd
  • Loading branch information
harishdm committed Mar 24, 2024
1 parent 02c1059 commit c8de54c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 deletions.
40 changes: 11 additions & 29 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -86,47 +86,29 @@ cc_library_static {
srcs: [
"common/arm/ideint_function_selector.c",
"decoder/arm/impeg2d_function_selector.c",
"common/arm/icv_sad_a9.s",
"common/arm/icv_variance_a9.s",
"common/arm/ideint_cac_a9.s",
"common/arm/ideint_function_selector_a9.c",
"common/arm/ideint_spatial_filter_a9.s",
"common/arm/impeg2_format_conv.s",
"common/arm/impeg2_idct.s",
"common/arm/impeg2_inter_pred.s",
"common/arm/impeg2_mem_func.s",
"decoder/arm/impeg2d_function_selector_a9q.c",
],

neon: {
srcs: [
"common/arm/icv_sad_a9.s",
"common/arm/icv_variance_a9.s",
"common/arm/ideint_cac_a9.s",
"common/arm/ideint_function_selector_a9.c",
"common/arm/ideint_spatial_filter_a9.s",
"common/arm/impeg2_format_conv.s",
"common/arm/impeg2_idct.s",
"common/arm/impeg2_inter_pred.s",
"common/arm/impeg2_mem_func.s",
"decoder/arm/impeg2d_function_selector_a9q.c",
],
cflags: [
"-UDISABLE_NEON",
"-UDEFAULT_ARCH",
"-DDEFAULT_ARCH=D_ARCH_ARM_A9Q",
],
},

cflags: [
"-DDISABLE_NEONINTR",
"-DARM",
"-DARMGCC",

// These are overriden by armv7_a_neon
"-DDISABLE_NEON",
"-DDEFAULT_ARCH=D_ARCH_ARM_NONEON",
"-DDEFAULT_ARCH=D_ARCH_ARM_A9Q",
],
instruction_set: "arm",
},

arm64: {
cflags: [
"-DARMV8",
"-DDISABLE_NEONINTR",
"-DARM",
"-DARMGCC",

"-DDEFAULT_ARCH=D_ARCH_ARMV8_GENERIC",
],
local_include_dirs: [
Expand Down
3 changes: 1 addition & 2 deletions cmake/utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ function(libmpeg2_add_definitions)
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
add_definitions(-DARMV8 -DDEFAULT_ARCH=D_ARCH_ARMV8_GENERIC -DENABLE_NEON)
elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch32")
add_definitions(-DARMV7 -DDEFAULT_ARCH=D_ARCH_ARM_A9Q -DENABLE_NEON
-DDISABLE_NEONINTR)
add_definitions(-DARMV7 -DDEFAULT_ARCH=D_ARCH_ARM_A9Q -DENABLE_NEON)
else()
add_definitions(-DX86 -DX86_LINUX=1 -DDISABLE_AVX2
-DDEFAULT_ARCH=D_ARCH_X86_SSE42)
Expand Down

0 comments on commit c8de54c

Please sign in to comment.