/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
// Store 8 16 bit values. If the destination is 32 bits then sign extend the // values by multiplying by 1. staticinlinevoid store_tran_low(__m128i a, tran_low_t *b) {
__m128i a_1, a_2;
unpack_trans(a, &a_1, &a_2);
_mm_store_si128((__m128i *)(b), a_1);
_mm_store_si128((__m128i *)(b + 4), a_2);
} // Stores the second result at an offset of 8 (instead of 4) to match the output // with that of AVX2 implementation and the function is similar to // store_tran_low(). staticinlinevoid store_tran_low_offset_4(__m128i a, tran_low_t *b) {
__m128i a_1, a_2;
unpack_trans(a, &a_1, &a_2);
_mm_store_si128((__m128i *)(b), a_1);
_mm_store_si128((__m128i *)(b + 8), a_2);
}
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.