/* SCE CONFIDENTIAL
PLAYSTATION(R)3 Programmer Tool Runtime Library 154.001
* Copyright (C) 2004 Sony Computer Entertainment Inc. 
* All Rights Reserved.
*/
// absi4 - for each of four integer slots, compute absolute value.

_FUNC_DEF(
    vec_int4,
    absi4,
    ( vec_int4 x ))
{
   vec_int4 neg;
   neg = spu_sub( 0, x );
   return spu_sel( neg, x, spu_cmpgt( x, -1 ) );
}

