search for: have_imaxdiv

Displaying 2 results from an estimated 2 matches for "have_imaxdiv".

2012 Jul 02
0
[klibc:master] [ARITH] Avoid imaxdiv when only one of the results is wanted
...9 deletions(-) diff --git a/usr/dash/arith_yacc.c b/usr/dash/arith_yacc.c index bf21830..1a087c3 100644 --- a/usr/dash/arith_yacc.c +++ b/usr/dash/arith_yacc.c @@ -94,22 +94,13 @@ static inline int higher_prec(int op1, int op2) static intmax_t do_binop(int op, intmax_t a, intmax_t b) { -#ifdef HAVE_IMAXDIV - imaxdiv_t div; -#endif - switch (op) { default: case ARITH_REM: case ARITH_DIV: if (!b) yyerror("division by zero"); -#ifdef HAVE_IMAXDIV - div = imaxdiv(a, b); - return op == ARITH_REM ? div.rem : div.quot; -#else return op == ARITH_REM ? a % b : a / b; -#endif ca...
2012 Jul 02
0
[klibc:master] dash: sync with latest git
...diff --git a/usr/dash/config.h b/usr/dash/config.h index ebd98f9..35230c7 100644 --- a/usr/dash/config.h +++ b/usr/dash/config.h @@ -29,9 +29,6 @@ /* Define to 1 if you have the `glob' function. */ /* #undef HAVE_GLOB */ -/* Define to 1 if you have the `imaxdiv' function. */ -/* #undef HAVE_IMAXDIV */ - /* Define to 1 if you have the <inttypes.h> header file. */ #define HAVE_INTTYPES_H 1 @@ -105,7 +102,7 @@ #define PACKAGE_NAME "dash" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "dash 0.5.6" +#define PACKAGE_STRING "...