Fork of mbed-dsp. CMSIS-DSP library of supporting NEON
Dependents: mbed-os-example-cmsis_dsp_neon
Fork of mbed-dsp by
Information
Japanese version is available in lower part of this page.
このページの後半に日本語版が用意されています.
CMSIS-DSP of supporting NEON
What is this ?
A library for CMSIS-DSP of supporting NEON.
We supported the NEON to CMSIS-DSP Ver1.4.3(CMSIS V4.1) that ARM supplied, has achieved the processing speed improvement.
If you use the mbed-dsp library, you can use to replace this library.
CMSIS-DSP of supporting NEON is provied as a library.
Library Creation environment
CMSIS-DSP library of supporting NEON was created by the following environment.
- Compiler
ARMCC Version 5.03 - Compile option switch[C Compiler]
-DARM_MATH_MATRIX_CHECK -DARM_MATH_ROUNDING -O3 -Otime --cpu=Cortex-A9 --littleend --arm --apcs=/interwork --no_unaligned_access --fpu=vfpv3_fp16 --fpmode=fast --apcs=/hardfp --vectorize --asm
- Compile option switch[Assembler]
--cpreproc --cpu=Cortex-A9 --littleend --arm --apcs=/interwork --no_unaligned_access --fpu=vfpv3_fp16 --fpmode=fast --apcs=/hardfp
Effects of NEON support
In the data which passes to each function, large size will be expected more effective than small size.
Also if the data is a multiple of 16, effect will be expected in every function in the CMSIS-DSP.
NEON対応CMSIS-DSP
概要
NEON対応したCMSIS-DSPのライブラリです。
ARM社提供のCMSIS-DSP Ver1.4.3(CMSIS V4.1)をターゲットにNEON対応を行ない、処理速度向上を実現しております。
mbed-dspライブラリを使用している場合は、本ライブラリに置き換えて使用することができます。
NEON対応したCMSIS-DSPはライブラリで提供します。
ライブラリ作成環境
NEON対応CMSIS-DSPライブラリは、以下の環境で作成しています。
- コンパイラ
ARMCC Version 5.03 - コンパイルオプションスイッチ[C Compiler]
-DARM_MATH_MATRIX_CHECK -DARM_MATH_ROUNDING -O3 -Otime --cpu=Cortex-A9 --littleend --arm --apcs=/interwork --no_unaligned_access --fpu=vfpv3_fp16 --fpmode=fast --apcs=/hardfp --vectorize --asm
- コンパイルオプションスイッチ[Assembler]
--cpreproc --cpu=Cortex-A9 --littleend --arm --apcs=/interwork --no_unaligned_access --fpu=vfpv3_fp16 --fpmode=fast --apcs=/hardfp
NEON対応による効果について
CMSIS-DSP内の各関数へ渡すデータは、小さいサイズよりも大きいサイズの方が効果が見込めます。
また、16の倍数のデータであれば、CMSIS-DSP内のどの関数でも効果が見込めます。
cmsis_dsp/arm_const_structs.h@5:a912b042151f, 2015-06-23 (annotated)
- Committer:
- 1050186
- Date:
- Tue Jun 23 06:23:42 2015 +0000
- Revision:
- 5:a912b042151f
first commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
1050186 | 5:a912b042151f | 1 | /* ---------------------------------------------------------------------- |
1050186 | 5:a912b042151f | 2 | * Copyright (C) 2010-20134 ARM Limited. All rights reserved. |
1050186 | 5:a912b042151f | 3 | * |
1050186 | 5:a912b042151f | 4 | * $Date: 12. March 2014 |
1050186 | 5:a912b042151f | 5 | * $Revision: V1.4.3 |
1050186 | 5:a912b042151f | 6 | * |
1050186 | 5:a912b042151f | 7 | * Project: CMSIS DSP Library |
1050186 | 5:a912b042151f | 8 | * Title: arm_const_structs.h |
1050186 | 5:a912b042151f | 9 | * |
1050186 | 5:a912b042151f | 10 | * Description: This file has constant structs that are initialized for |
1050186 | 5:a912b042151f | 11 | * user convenience. For example, some can be given as |
1050186 | 5:a912b042151f | 12 | * arguments to the arm_cfft_f32() function. |
1050186 | 5:a912b042151f | 13 | * |
1050186 | 5:a912b042151f | 14 | * Target Processor: Cortex-M4/Cortex-M3 |
1050186 | 5:a912b042151f | 15 | * |
1050186 | 5:a912b042151f | 16 | * Redistribution and use in source and binary forms, with or without |
1050186 | 5:a912b042151f | 17 | * modification, are permitted provided that the following conditions |
1050186 | 5:a912b042151f | 18 | * are met: |
1050186 | 5:a912b042151f | 19 | * - Redistributions of source code must retain the above copyright |
1050186 | 5:a912b042151f | 20 | * notice, this list of conditions and the following disclaimer. |
1050186 | 5:a912b042151f | 21 | * - Redistributions in binary form must reproduce the above copyright |
1050186 | 5:a912b042151f | 22 | * notice, this list of conditions and the following disclaimer in |
1050186 | 5:a912b042151f | 23 | * the documentation and/or other materials provided with the |
1050186 | 5:a912b042151f | 24 | * distribution. |
1050186 | 5:a912b042151f | 25 | * - Neither the name of ARM LIMITED nor the names of its contributors |
1050186 | 5:a912b042151f | 26 | * may be used to endorse or promote products derived from this |
1050186 | 5:a912b042151f | 27 | * software without specific prior written permission. |
1050186 | 5:a912b042151f | 28 | * |
1050186 | 5:a912b042151f | 29 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
1050186 | 5:a912b042151f | 30 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
1050186 | 5:a912b042151f | 31 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
1050186 | 5:a912b042151f | 32 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
1050186 | 5:a912b042151f | 33 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
1050186 | 5:a912b042151f | 34 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
1050186 | 5:a912b042151f | 35 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
1050186 | 5:a912b042151f | 36 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
1050186 | 5:a912b042151f | 37 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
1050186 | 5:a912b042151f | 38 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
1050186 | 5:a912b042151f | 39 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
1050186 | 5:a912b042151f | 40 | * POSSIBILITY OF SUCH DAMAGE. |
1050186 | 5:a912b042151f | 41 | * -------------------------------------------------------------------- */ |
1050186 | 5:a912b042151f | 42 | |
1050186 | 5:a912b042151f | 43 | #ifndef _ARM_CONST_STRUCTS_H |
1050186 | 5:a912b042151f | 44 | #define _ARM_CONST_STRUCTS_H |
1050186 | 5:a912b042151f | 45 | |
1050186 | 5:a912b042151f | 46 | #include "arm_math.h" |
1050186 | 5:a912b042151f | 47 | #include "arm_common_tables.h" |
1050186 | 5:a912b042151f | 48 | |
1050186 | 5:a912b042151f | 49 | extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len16; |
1050186 | 5:a912b042151f | 50 | extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len32; |
1050186 | 5:a912b042151f | 51 | extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len64; |
1050186 | 5:a912b042151f | 52 | extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len128; |
1050186 | 5:a912b042151f | 53 | extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len256; |
1050186 | 5:a912b042151f | 54 | extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len512; |
1050186 | 5:a912b042151f | 55 | extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len1024; |
1050186 | 5:a912b042151f | 56 | extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len2048; |
1050186 | 5:a912b042151f | 57 | extern const arm_cfft_instance_f32 arm_cfft_sR_f32_len4096; |
1050186 | 5:a912b042151f | 58 | |
1050186 | 5:a912b042151f | 59 | #endif |