Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
16 * <<abs>>---integer absolute value (magnitude)
30 * the absolute value of <[i]> (also called the magnitude
31 * of <[i]>). That is, if <[i]> is negative, the result is the opposite
32 * of <[i]>, but if <[i]> is nonnegative the result is <[i]>.
33 * The similar function <<labs>> uses and returns <<long>> rather than <<int>> values.
35 * The result is a nonnegative integer.
38 * No supporting OS subroutines are required.
48 Return absolute value of integer parameter.
49 @return The absolute value of n.
50 @param i Integer value.
52 EXPORT_C int abs (int i)
54 return (i < 0) ? -i : i;