fpneg_abs_mul - 2023.2 English

Vitis Tutorials: AI Engine (XD100)

Document ID
XD100
Release Date
2024-03-05
Version
2023.2 English

Only for real arguments. Signature is identical to fpmul:

vector<float,8> fpneg_mul(vector<float,32> xbuf, int xstart, unsigned int xoffs, vector<float,8> zbuf, int zstart, unsigned int zoffs)

It returns the opposite value of the product:

for (i = 0 ; i < 8 ; i++)
 ret[i] =  - xbuf[xstart + xoffs[i]] * zbuf[zstart + zoffs[i]]