X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libgcc%2Fdivmod.c;h=4e3c2cb174c026b73a9f4caa00187fb2a88ecdf7;hb=2aad20c094b9ec47c678b4ca219a7342f4f22376;hp=eda57a9bf4dd5a135b6687363ac4d738308a9587;hpb=5d5bf77569cea0d401a74a3411e4a9c32b28b3ac;p=gcc.git diff --git a/libgcc/divmod.c b/libgcc/divmod.c index eda57a9bf4d..4e3c2cb174c 100644 --- a/libgcc/divmod.c +++ b/libgcc/divmod.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000-2013 Free Software Foundation, Inc. +/* Copyright (C) 2000-2020 Free Software Foundation, Inc. This file is part of GCC. @@ -21,7 +21,8 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -long udivmodsi4 (); +extern unsigned long __udivmodsi4(unsigned long num, unsigned long den, + int modwanted); long __divsi3 (long a, long b) @@ -41,7 +42,7 @@ __divsi3 (long a, long b) neg = !neg; } - res = udivmodsi4 (a, b, 0); + res = __udivmodsi4 (a, b, 0); if (neg) res = -res; @@ -64,7 +65,7 @@ __modsi3 (long a, long b) if (b < 0) b = -b; - res = udivmodsi4 (a, b, 1); + res = __udivmodsi4 (a, b, 1); if (neg) res = -res;