XCORE SDK
XCORE Software Development Kit
Public Attributes | List of all members
xs3_split_acc_s32_t Struct Reference

Holds a set of sixteen 32-bit accumulators in the XS3 VPU's internal format. More...

#include <xs3_math_types.h>

Public Attributes

int16_t vD [16]
 Most significant 16 bits of accumulators.
 
uint16_t vR [16]
 Least significant 16 bits of accumulators.
 

Detailed Description

Holds a set of sixteen 32-bit accumulators in the XS3 VPU's internal format.

The XS3 VPU stores 32-bit accumulators with the most significant 16-bits stored in one 256-bit vector register (called vD), and the least significant 16-bit stored in another 256-bit register (called vR). This struct reflects that internal format, and is occasionally used to store intermediate results.

Note
vR is unsigned. This reflects the fact that a signed 16-bit integer 0xSTUVWXYZ is always exactly 0x0000WXYZ larger than 0xSTUV0000. To combine the upper and lower 16-bits of an accumulator, use (((int32_t)vD[k]) << 16) + vR[k].

The documentation for this struct was generated from the following file: