/* * AltiVec optimizations for libjpeg-turbo * * Copyright (C) 2014-2015, D. R. Commander. All Rights Reserved. * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution.
*/
#ifndef min #define min(a, b) ((a) < (b) ? (a) : (b)) #endif
/* Macros to abstract big/little endian bit twiddling */
#if __BIG_ENDIAN__
#define VEC_LD(a, b) vec_ld(a, b) #define VEC_ST(a, b, c) vec_st(a, b, c) #define VEC_UNPACKHU(a) vec_mergeh(pb_zero, a) #define VEC_UNPACKLU(a) vec_mergel(pb_zero, a)
#else
#define VEC_LD(a, b) vec_vsx_ld(a, b) #define VEC_ST(a, b, c) vec_vsx_st(a, b, c) #define VEC_UNPACKHU(a) vec_mergeh(a, pb_zero) #define VEC_UNPACKLU(a) vec_mergel(a, pb_zero)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.