/*
  Copyright (c) 2014, Alexey Frunze
  2-clause BSD license.
*/
int abs(int n)
{
  return (n >= 0) ? n : -n;
}
