/****************************************************************************
 *
 * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/abs.c,v $
 * $Date: 2001/01/29 15:10:18 $
 * $Revision: 1.2 $
 * $State: Exp $
 * $Author: admin $
 *
 ***************************************************************************/

#ifdef EMBED_RCSID
static const char rcs_id[] = "$Id: abs.c,v 1.2 2001/01/29 15:10:18 admin Exp $";
#endif

#include <stdlib.h>

int
abs (register int x)

{
  return ((x < 0) ? -x : x);
}

long
labs (register long x)

{
  return ((x < 0) ? -x : x);
}
