13b921b29Sopenharmony_ci/*
23b921b29Sopenharmony_ci * Copyright (C) 2020, D. R. Commander.  All Rights Reserved.
33b921b29Sopenharmony_ci * Copyright (C) 2020-2021, Arm Limited.  All Rights Reserved.
43b921b29Sopenharmony_ci *
53b921b29Sopenharmony_ci * This software is provided 'as-is', without any express or implied
63b921b29Sopenharmony_ci * warranty.  In no event will the authors be held liable for any damages
73b921b29Sopenharmony_ci * arising from the use of this software.
83b921b29Sopenharmony_ci *
93b921b29Sopenharmony_ci * Permission is granted to anyone to use this software for any purpose,
103b921b29Sopenharmony_ci * including commercial applications, and to alter it and redistribute it
113b921b29Sopenharmony_ci * freely, subject to the following restrictions:
123b921b29Sopenharmony_ci *
133b921b29Sopenharmony_ci * 1. The origin of this software must not be misrepresented; you must not
143b921b29Sopenharmony_ci *    claim that you wrote the original software. If you use this software
153b921b29Sopenharmony_ci *    in a product, an acknowledgment in the product documentation would be
163b921b29Sopenharmony_ci *    appreciated but is not required.
173b921b29Sopenharmony_ci * 2. Altered source versions must be plainly marked as such, and must not be
183b921b29Sopenharmony_ci *    misrepresented as being the original software.
193b921b29Sopenharmony_ci * 3. This notice may not be removed or altered from any source distribution.
203b921b29Sopenharmony_ci */
213b921b29Sopenharmony_ci
223b921b29Sopenharmony_ci#define HAVE_VLD1_S16_X3
233b921b29Sopenharmony_ci#define HAVE_VLD1_U16_X2
243b921b29Sopenharmony_ci#define HAVE_VLD1Q_U8_X4
253b921b29Sopenharmony_ci
263b921b29Sopenharmony_ci/* Define compiler-independent count-leading-zeros and byte-swap macros */
273b921b29Sopenharmony_ci#if defined(_MSC_VER) && !defined(__clang__)
283b921b29Sopenharmony_ci#define BUILTIN_CLZ(x)  _CountLeadingZeros(x)
293b921b29Sopenharmony_ci#define BUILTIN_CLZLL(x)  _CountLeadingZeros64(x)
303b921b29Sopenharmony_ci#define BUILTIN_BSWAP64(x)  _byteswap_uint64(x)
313b921b29Sopenharmony_ci#elif defined(__clang__) || defined(__GNUC__)
323b921b29Sopenharmony_ci#define BUILTIN_CLZ(x)  __builtin_clz(x)
333b921b29Sopenharmony_ci#define BUILTIN_CLZLL(x)  __builtin_clzll(x)
343b921b29Sopenharmony_ci#define BUILTIN_BSWAP64(x)  __builtin_bswap64(x)
353b921b29Sopenharmony_ci#else
363b921b29Sopenharmony_ci#error "Unknown compiler"
373b921b29Sopenharmony_ci#endif
38