vec_addec_u128

Purpose

Gets the carry bit of the 128-bit addition of two quadword values with carry bit from the previous operation.

The function operates on vectors as 128-bit unsigned integers.

Note: This built-in function is valid when the -mcpu option is set to target POWER8 processors, or higher.

Syntax

d=vec_addec_u128(a, b, c)

Result and argument types

The type of d, a, and b must be vector unsigned char.

Result value

Returns the carry out of a + b + (c & 1).