1
0
Fork 0

Fix whitespace and indentation errors.

This commit is contained in:
John Preston 2020-01-02 14:20:14 +03:00
parent 4490667520
commit b087501d66
2 changed files with 19 additions and 19 deletions

View file

@ -19,7 +19,7 @@ int __clock_gettime_glibc_old(clockid_t clk_id, struct timespec *tp);
__asm__(".symver __clock_gettime_glibc_old,clock_gettime@GLIBC_" GETTIME_GLIBC_VERSION); __asm__(".symver __clock_gettime_glibc_old,clock_gettime@GLIBC_" GETTIME_GLIBC_VERSION);
int __wrap_clock_gettime(clockid_t clk_id, struct timespec *tp) { int __wrap_clock_gettime(clockid_t clk_id, struct timespec *tp) {
return __clock_gettime_glibc_old(clk_id, tp); return __clock_gettime_glibc_old(clk_id, tp);
} }
uint64_t __udivmoddi4(uint64_t num, uint64_t den, uint64_t *rem_p); uint64_t __udivmoddi4(uint64_t num, uint64_t den, uint64_t *rem_p);

View file

@ -22,31 +22,31 @@ __asm__(".symver __clock_gettime_glibc_old,clock_gettime@GLIBC_" GETTIME_GLIBC_V
int __wrap_clock_gettime(clockid_t clk_id, struct timespec *tp) { int __wrap_clock_gettime(clockid_t clk_id, struct timespec *tp) {
return __clock_gettime_glibc_old(clk_id, tp); return __clock_gettime_glibc_old(clk_id, tp);
} }
UTItype __udivmodti4(UTItype num, UTItype den, UTItype *rem_p); UTItype __udivmodti4(UTItype num, UTItype den, UTItype *rem_p);
TItype __wrap___divmodti4(TItype num, TItype den, TItype *rem_p) { TItype __wrap___divmodti4(TItype num, TItype den, TItype *rem_p) {
int minus = 0; int minus = 0;
TItype v; TItype v;
if (num < 0) { if (num < 0) {
num = -num; num = -num;
minus = 1; minus = 1;
} }
if (den < 0) { if (den < 0) {
den = -den; den = -den;
minus ^= 1; minus ^= 1;
} }
v = __udivmodti4(num, den, (UTItype *)rem_p); v = __udivmodti4(num, den, (UTItype *)rem_p);
if (minus) { if (minus) {
v = -v; v = -v;
if (rem_p) if (rem_p)
*rem_p = -(*rem_p); *rem_p = -(*rem_p);
} }
return v; return v;
} }