tp/libs/MSL_C/MSL_Common/Src/arith.c

21 lines
494 B
C

#include "MSL_C/MSL_Common/Src/arith.h"
#include "MSL_C/math.h"
/* 80365078-803650D0 35F9B8 0058+00 0/0 1/1 0/0 .text div */
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm div_t div(int numerator, int denominator) {
nofralloc
#include "asm/MSL_C/MSL_Common/Src/arith/div.s"
}
#pragma pop
/* 803650D0-803650E0 35FA10 0010+00 0/0 66/66 225/225 .text abs */
int abs(int n) {
if (n < 0)
return (-n);
else
return (n);
}