mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Add used attribute in order to make NEON detection working with -flto.
This commit is contained in:
parent
df7b189ecb
commit
d8d4904e71
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ AC_MSG_CHECKING(for ARM NEON support in current arch/CFLAGS)
|
||||||
AC_LINK_IFELSE([
|
AC_LINK_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
#include <arm_neon.h>
|
#include <arm_neon.h>
|
||||||
int32x4_t testfunc(int16_t *a, int16_t *b) {
|
int32x4_t __attribute__((used)) testfunc(int16_t *a, int16_t *b) {
|
||||||
asm volatile ("vmull.s16 q0, d0, d0" : : : "q0");
|
asm volatile ("vmull.s16 q0, d0, d0" : : : "q0");
|
||||||
return vmull_s16(vld1_s16(a), vld1_s16(b));
|
return vmull_s16(vld1_s16(a), vld1_s16(b));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue