STM32F1 CMSIS DSP Basic Math Functions

Started by tha, July 13, 2021, 01:28:14 PM

Previous topic - Next topic

tha

file:///D:/System%20Workbench/STM32CubeF1-master/Drivers/CMSIS/docs/DSP/html/group__BasicAbs.html



Description

หา the absolute value ของ a vector บน an element-by-element basis.

    pDst[n] = abs(pSrc[n]),   0 <= n < blockSize.

The functions รองรับการคำนวณแบบแทนที่ยอมให้ the source and destination pointers อ้างอิงไปยัง the same memory buffer. มีฟั่งชั่นที่แยกกันสำหรับ floating-point, Q7, Q15, and Q31 data types.

tha


tha



Scaling and Overflow Behavior:

The function ใช้ saturating arithmetic. The Q15 ค่า -1 (0x8000) จะถูกทำให้อิ่มตัวไปยัง the maximum allowable positive value 0x7FFF.

References __PKHBT, __QSUB16(), __SIMD32_CONST, and blockSize.


tha



Scaling and Overflow Behavior:

The function ใช้ saturating arithmetic. The Q31 ค่า -1 (0x80000000) จะถูกทำให้อิ่มตัวไปยัง the maximum allowable positive value 0x7FFFFFFF.

References __QSUB(), and blockSize.

tha



Conditions for optimum performance

Input and output buffers ควรถูกวางแนวโดย 32-bit

Scaling and Overflow Behavior:

The function ใช้ saturating arithmetic. The Q7 ค่า -1 (0x80) จะถูกทำให้อิ่มตัวไปยัง the maximum allowable positive value 0x7F

References __QSUB8(), and blockSize..


tha


tha



Scaling and Overflow Behavior:

The function ใช้ saturating arithmetic. ผลลัพธ์ที่อยู่นอกย่าน Q15 ที่ยอมได้ [0x8000 0x7FFF] จะถูกทำให้อิ่มตัว.

References __QADD16(), __SIMD32, and blockSize.