This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C55x - how to detect if an intrisic is with saturation

Dear all,

I am trying to optimize my application to be speedier by using intrinsics, like _sadd or _smac. As I read the relevant documents, the results are saturated depending on settings such as SATA, SATD and some others. However, I can not find where to know if saturation happens or not. I did try with flags ACOVi in the register ST0_55 but it did not work with 16-bit arithmetic operation like _sadd or _ssub. Could anyone here provide a solution or hint? I will appreciate it much

Nguyen Anh Duc