/* * Copyright (c) 2017 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
*quant = _mm_load_si128((const __m128i *)mb_plane->quant);
*dequant = _mm_load_si128((const __m128i *)dequant_ptr);
*shift = _mm_load_si128((const __m128i *)mb_plane->quant_shift); // I suspect this is not technically OK because quant_shift can be up // to 1 << 16 and shifting up again will outrange that, but the test is not // comprehensive enough to catch that and "it's been that way forever"
*shift = _mm_slli_epi16(*shift, 1);
}
// With ssse3 and later abs() and sign() are preferred. staticINLINE __m128i invert_sign_sse2(__m128i a, __m128i sign) {
a = _mm_xor_si128(a, sign); return _mm_sub_epi16(a, sign);
}
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.