dequantizeb_neon.c 761 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2014 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #include <arm_neon.h>
  11. #include "./vp8_rtcd.h"
  12. #include "vp8/common/blockd.h"
  13. void vp8_dequantize_b_neon(BLOCKD *d, short *DQC) {
  14. int16x8x2_t qQ, qDQC, qDQ;
  15. qQ = vld2q_s16(d->qcoeff);
  16. qDQC = vld2q_s16(DQC);
  17. qDQ.val[0] = vmulq_s16(qQ.val[0], qDQC.val[0]);
  18. qDQ.val[1] = vmulq_s16(qQ.val[1], qDQC.val[1]);
  19. vst2q_s16(d->dqcoeff, qDQ);
  20. }