looper/subprojects/mpg123/src/libmpg123/check_neon.S

36 lines
617 B
ArmAsm
Raw Normal View History

2024-09-28 10:31:06 -07:00
/*
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__
#ifndef _M_ARM
.code 32
#endif
#ifndef __APPLE__
.fpu neon
#endif
#endif
.text
GLOBAL_SYMBOL ASM_NAME(INT123_check_neon)
#ifdef __ELF__
.type ASM_NAME(INT123_check_neon), %function
#endif
ALIGN4
ASM_NAME(INT123_check_neon):
#ifdef __aarch64__
orr v0.16b, v0.16b, v0.16b
ret
#else
vorr d0, d0, d0
bx lr
#endif
NONEXEC_STACK