mbed 5 experimental branch
Fork of dsp by
src/Common/Include/math_helper.h@3:ad02f4ea1fbe, 2017-06-29 (annotated)
- Committer:
- nprobably
- Date:
- Thu Jun 29 06:56:55 2017 +0000
- Revision:
- 3:ad02f4ea1fbe
- Parent:
- 0:1014af42efd9
A hack to make it compile with mbed 5
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
simon | 0:1014af42efd9 | 1 | /* ---------------------------------------------------------------------- |
simon | 0:1014af42efd9 | 2 | * Copyright (C) 2010 ARM Limited. All rights reserved. |
simon | 0:1014af42efd9 | 3 | * |
simon | 0:1014af42efd9 | 4 | * $Date: 29. November 2010 |
simon | 0:1014af42efd9 | 5 | * $Revision: V1.0.3 |
simon | 0:1014af42efd9 | 6 | * |
simon | 0:1014af42efd9 | 7 | * Project: CMSIS DSP Library |
simon | 0:1014af42efd9 | 8 | * |
simon | 0:1014af42efd9 | 9 | * Title: math_helper.h |
simon | 0:1014af42efd9 | 10 | * |
simon | 0:1014af42efd9 | 11 | * |
simon | 0:1014af42efd9 | 12 | * Description: Prototypes of all helper functions required. |
simon | 0:1014af42efd9 | 13 | * |
simon | 0:1014af42efd9 | 14 | * Target Processor: Cortex-M4/Cortex-M3 |
simon | 0:1014af42efd9 | 15 | * |
simon | 0:1014af42efd9 | 16 | * Version 1.0.3 2010/11/29 |
simon | 0:1014af42efd9 | 17 | * Re-organized the CMSIS folders and updated documentation. |
simon | 0:1014af42efd9 | 18 | * |
simon | 0:1014af42efd9 | 19 | * Version 1.0.2 2010/11/11 |
simon | 0:1014af42efd9 | 20 | * Documentation updated. |
simon | 0:1014af42efd9 | 21 | * |
simon | 0:1014af42efd9 | 22 | * Version 1.0.1 2010/10/05 |
simon | 0:1014af42efd9 | 23 | * Production release and review comments incorporated. |
simon | 0:1014af42efd9 | 24 | * |
simon | 0:1014af42efd9 | 25 | * Version 1.0.0 2010/09/20 |
simon | 0:1014af42efd9 | 26 | * Production release and review comments incorporated. |
simon | 0:1014af42efd9 | 27 | * |
simon | 0:1014af42efd9 | 28 | * Version 0.0.7 2010/06/10 |
simon | 0:1014af42efd9 | 29 | * Misra-C changes done |
simon | 0:1014af42efd9 | 30 | * -------------------------------------------------------------------- */ |
simon | 0:1014af42efd9 | 31 | |
simon | 0:1014af42efd9 | 32 | |
simon | 0:1014af42efd9 | 33 | #include "arm_math.h" |
simon | 0:1014af42efd9 | 34 | |
simon | 0:1014af42efd9 | 35 | #ifndef MATH_HELPER_H |
simon | 0:1014af42efd9 | 36 | #define MATH_HELPER_H |
simon | 0:1014af42efd9 | 37 | |
simon | 0:1014af42efd9 | 38 | float arm_snr_f32(float *pRef, float *pTest, uint32_t buffSize); |
simon | 0:1014af42efd9 | 39 | void arm_float_to_q12_20(float *pIn, q31_t * pOut, uint32_t numSamples); |
simon | 0:1014af42efd9 | 40 | void arm_provide_guard_bits_q15(q15_t *input_buf, uint32_t blockSize, uint32_t guard_bits); |
simon | 0:1014af42efd9 | 41 | void arm_provide_guard_bits_q31(q31_t *input_buf, uint32_t blockSize, uint32_t guard_bits); |
simon | 0:1014af42efd9 | 42 | void arm_float_to_q14(float *pIn, q15_t *pOut, uint32_t numSamples); |
simon | 0:1014af42efd9 | 43 | void arm_float_to_q29(float *pIn, q31_t *pOut, uint32_t numSamples); |
simon | 0:1014af42efd9 | 44 | void arm_float_to_q28(float *pIn, q31_t *pOut, uint32_t numSamples); |
simon | 0:1014af42efd9 | 45 | void arm_float_to_q30(float *pIn, q31_t *pOut, uint32_t numSamples); |
simon | 0:1014af42efd9 | 46 | void arm_clip_f32(float *pIn, uint32_t numSamples); |
simon | 0:1014af42efd9 | 47 | uint32_t arm_calc_guard_bits(uint32_t num_adds); |
simon | 0:1014af42efd9 | 48 | void arm_apply_guard_bits (float32_t * pIn, uint32_t numSamples, uint32_t guard_bits); |
simon | 0:1014af42efd9 | 49 | uint32_t arm_compare_fixed_q15(q15_t *pIn, q15_t * pOut, uint32_t numSamples); |
simon | 0:1014af42efd9 | 50 | uint32_t arm_compare_fixed_q31(q31_t *pIn, q31_t *pOut, uint32_t numSamples); |
simon | 0:1014af42efd9 | 51 | uint32_t arm_calc_2pow(uint32_t guard_bits); |
simon | 0:1014af42efd9 | 52 | #endif |
simon | 0:1014af42efd9 | 53 |