Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / __ten_mu.c
blob25af8d0c7ea94572b1b4d9322d387440d76cc3d0
1 /*
2 * [atw] multiply 64 bit accumulator by 10 and add digit.
3 * The KA/CA way to do this should be to use
4 * a 64-bit integer internally and use "adjust" to
5 * convert it to float at the end of processing.
6 */
8 #include <_ansi.h>
9 #include "std.h"
11 int
12 __ten_mul (double *acc,
13 int digit)
16 * [atw] Crude, but effective (at least on a KB)...
19 *acc *= 10;
20 *acc += digit;
22 return 0; /* no overflow */