questzdoom/Projects/Android/jni/SupportLibs/libmpg123/check_neon.S
2021-04-20 21:09:02 +01:00

33 lines
567 B
ArmAsm

/*
check_neon: check NEON availability
copyright 1995-2014 by the mpg123 project - free software under the terms of the LGPL 2.1
see COPYING and AUTHORS files in distribution or http://mpg123.org
initially written by Taihei Momma
*/
#include "mangle.h"
#ifndef __aarch64__
.code 32
#ifndef __APPLE__
.fpu neon
#endif
#endif
.text
.globl ASM_NAME(check_neon)
#ifdef __ELF__
.type ASM_NAME(check_neon), %function
#endif
ALIGN4
ASM_NAME(check_neon):
#ifdef __aarch64__
orr v0.16b, v0.16b, v0.16b
ret
#else
vorr d0, d0, d0
bx lr
#endif
NONEXEC_STACK