summaryrefslogtreecommitdiff
path: root/arm9/lib/libc/src/MSL_Common_arith.c
blob: d4a2e834da38b0919dfff7ef656dcdaf9b182ae7 (plain)
1
2
3
4
5
6
7
#include "MSL_Common_arith.h"
#include "function_target.h"

ARM_FUNC s32 abs(s32 val)
{
    return val < 0 ? -val : val;
}