STM32F1 CMSIS DSP Basic Math Functions

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

Previous topic - Next topic

tha



Scaling and Overflow Behavior:

The input data *pSrc และ scaleFract อยู่ใน 1.15 format. เหล่านี้ถูกคูณกันเพื่อให้ได้ a 2.30 intermediate result และสิ่งนี้ถูกเลื่อนพร้อมด้วย saturation ไปยัง 1.15 format.

References __PKHBT, __SIMD32, and blockSize.

tha



Scaling and Overflow Behavior:

The input data *pSrc และ scaleFract อยู่ใน 1.31 format. เหล่านี้ถูกคูณกันเพื่อให้ได้ a 2.62 intermediate result และนี้ถูกเลื่อนพร้อมด้วย saturation ไปยัง 1.31 format.

References blockSize.

Referenced by main().

tha



tha

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



Description

เลื่อน the elements ของ a fixed-point vector โดยจำนวนที่ระบุของ bits. มีฟังชั่นที่แยกกันสำหรับ Q7, Q15, and Q31 data types. The underlying algorithm ถูกใช้ :

    pDst[n] = pSrc[n] << shift,   0 <= n < blockSize.

ถ้า shift เป็นบวกดังนั้น the elements of the vector จะถูกเลื่อนไปทางซ้าย. ถ้า shift เป็นลบดังัน้น the elements of the vector จะถูกเลื่อนไปทางขวา.

The functions รองรับการคำนวณแบบแทนที่ยอมให้ the source and destination pointers อ้างอิงไปยัง the same memory buffer.

tha


tha


tha