summaryrefslogtreecommitdiff
path: root/src/MSL_C.PPCEABI.bare.H/arith.c
blob: a21df7e7abbab39c95f960d891ae3c214f3c142a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdlib.h>

int abs(int n) {
  if (n < 0)
    return (-n);
  else
    return (n);
}

long labs(long n) {
  if (n < 0)
    return (-n);
  else
    return (n);
}