ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_freestanding_math.c
Go to the documentation of this file.
1
16
17#include "ra8_freestanding.h"
18
19#if !defined(RA8_OFF_TARGET) || defined(RA8_TEST_FREESTANDING)
20
34int abs(int j)
35{
36 return (j < 0) ? -j : j;
37}
38
39#if defined(__ARM_EABI__)
58int* __errno(void);
59
60int* __errno(void)
61{
62 static int s_ra8_libm_errno;
63 return &s_ra8_libm_errno;
64}
65#endif /* __ARM_EABI__ */
66#endif /* !RA8_OFF_TARGET || RA8_TEST_FREESTANDING */
Project-owned freestanding C runtime ABI primitives.
int abs(int j)
Compute absolute value of integer.