mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-08 01:36:47 +08:00
[AArch64] Add Neon DotProduct and I8MM extensions when building
This should allow us to use the two extensions in the existing Neon inline assembly code for kernels like ARGBToY. Bug: libyuv:977 Change-Id: I5274b188771bcfbe927cb323f499ecb676a7c6ba Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5383442 Reviewed-by: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
parent
f94b8cf7a3
commit
6406179063
4
BUILD.gn
4
BUILD.gn
@ -232,7 +232,9 @@ if (libyuv_use_neon) {
|
||||
configs += [ "//build/config/compiler:optimize_max" ]
|
||||
}
|
||||
|
||||
if (current_cpu != "arm64") {
|
||||
if (current_cpu == "arm64") {
|
||||
cflags = [ "-march=armv8-a+dotprod+i8mm" ]
|
||||
} else {
|
||||
configs -= [ "//build/config/compiler:compiler_arm_fpu" ]
|
||||
cflags = [ "-mfpu=neon" ]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user