chromium/third_party/webrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_tables_neon_sse2.h

/*
 *  Copyright (c) 2011 The WebRTC 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.
 */

#ifndef MODULES_AUDIO_PROCESSING_UTILITY_OOURA_FFT_TABLES_NEON_SSE2_H_
#define MODULES_AUDIO_PROCESSING_UTILITY_OOURA_FFT_TABLES_NEON_SSE2_H_

#include "common_audio/third_party/ooura/fft_size_128/ooura_fft.h"
#include "rtc_base/system/arch.h"

#ifdef _MSC_VER /* visual c++ */
#define ALIGN16_BEG
#define ALIGN16_END
#else /* gcc or icc */
#define ALIGN16_BEG
#define ALIGN16_END
#endif

namespace webrtc {

// These tables used to be computed at run-time. For example, refer to:
// https://code.google.com/p/webrtc/source/browse/trunk/webrtc/modules/audio_processing/utility/apm_rdft.c?r=6564
// to see the initialization code.
#if defined(WEBRTC_ARCH_X86_FAMILY) || defined(WEBRTC_HAS_NEON)
// Constants used by SSE2 and NEON but initialized in the C path.
const ALIGN16_BEG float ALIGN16_END k_swap_sign[4] =;

ALIGN16_BEG const float ALIGN16_END rdft_wk1r[32] =;
ALIGN16_BEG const float ALIGN16_END rdft_wk2r[32] =;
ALIGN16_BEG const float ALIGN16_END rdft_wk3r[32] =;
ALIGN16_BEG const float ALIGN16_END rdft_wk1i[32] =;
ALIGN16_BEG const float ALIGN16_END rdft_wk2i[32] =;
ALIGN16_BEG const float ALIGN16_END rdft_wk3i[32] =;
ALIGN16_BEG const float ALIGN16_END cftmdl_wk1r[4] =;
#endif

}  // namespace webrtc

#endif  // MODULES_AUDIO_PROCESSING_UTILITY_OOURA_FFT_TABLES_NEON_SSE2_H_