ntoab: Use __mesabi_uldiv only for arm.
* lib/mes/ntoab.c (ntoab)[__MESC__ && __arm__]: Use __mesabi_uldiv. * build-aux/check-mescc.sh (XFAIL_TESTS): 70-printf-simple.c and 70-printf.c now pass for x86_64 mescc.
This commit is contained in:
parent
08774a9c74
commit
49aff4ec1c
|
@ -255,9 +255,7 @@ fi
|
|||
|
||||
if test $mes_cpu = x86_64; then
|
||||
XFAIL_TESTS="$XFAIL_TESTS
|
||||
lib/tests/stdio/70-printf-simple.c
|
||||
lib/tests/stdio/70-printf-stdarg.c
|
||||
lib/tests/stdio/70-printf.c
|
||||
"
|
||||
fi
|
||||
|
||||
|
@ -273,6 +271,8 @@ if test $compiler = gcc; then
|
|||
if test $mes_cpu = x86_64; then
|
||||
XFAIL_TESTS="$XFAIL_TESTS
|
||||
lib/tests/stdio/70-printf-hello.c
|
||||
lib/tests/stdio/70-printf-simple.c
|
||||
lib/tests/stdio/70-printf.c
|
||||
lib/tests/scaffold/70-extern.c
|
||||
lib/tests/stdio/80-sscanf.c
|
||||
lib/tests/mes/90-abtod.c
|
||||
|
|
|
@ -42,8 +42,8 @@ ntoab (long x, int base, int signed_p)
|
|||
do
|
||||
{
|
||||
unsigned long i;
|
||||
#if __MESC__
|
||||
u = __mesabi_uldiv(u, (unsigned long) base, &i);
|
||||
#if __MESC__ && __arm__
|
||||
u = __mesabi_uldiv (u, (unsigned long) base, &i);
|
||||
#else
|
||||
i = u % base;
|
||||
u = u / base;
|
||||
|
|
Loading…
Reference in a new issue