Skip to content

Commit

Permalink
Fix __UQADD8 and __UADD8 return value descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePLMonster authored and JonatanAntoni committed May 15, 2024
1 parent 6266f58 commit b3141b2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMSIS/Documentation/Doxygen/Core/src/ref_cm4_simd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ uint32_t __SHADD8(uint32_t val1, uint32_t val2);
\param val2 second four 8-bit summands for each addition.

\returns
\li the halved addition of the first bytes from each operand, in the first byte of the return value.
\li the halved addition of the second bytes from each operand, in the second byte of the return value.
\li the halved addition of the third bytes from each operand, in the third byte of the return value.
\li the halved addition of the fourth bytes from each operand, in the fourth byte of the return value.
\li the addition of the first bytes from each operand, in the first byte of the return value.
\li the addition of the second bytes from each operand, in the second byte of the return value.
\li the addition of the third bytes from each operand, in the third byte of the return value.
\li the addition of the fourth bytes from each operand, in the fourth byte of the return value.

\par
Each bit in APSR.GE is set or cleared for each byte in the return value, depending on the results of the operation.
Expand Down Expand Up @@ -191,10 +191,10 @@ uint32_t __UADD8(uint32_t val1, uint32_t val2);
\param val2 second four 8-bit summands.

\returns
\li the halved addition of the first bytes in each operand, in the first byte of the return value.
\li the halved addition of the second bytes in each operand, in the second byte of the return value.
\li the halved addition of the third bytes in each operand, in the third byte of the return value.
\li the halved addition of the fourth bytes in each operand, in the fourth byte of the return value.
\li the saturated addition of the first bytes in each operand, in the first byte of the return value.
\li the saturated addition of the second bytes in each operand, in the second byte of the return value.
\li the saturated addition of the third bytes in each operand, in the third byte of the return value.
\li the saturated addition of the fourth bytes in each operand, in the fourth byte of the return value.

\par
The results are saturated to the 8-bit unsigned integer range 0 \< x \< 2<sup>8</sup> - 1.
Expand Down

0 comments on commit b3141b2

Please sign in to comment.