__ten_mu.c
来自「KPIT GNU Tools is a set of GNU developme」· C语言 代码 · 共 24 行
C
24 行
/* * [atw] multiply 64 bit accumulator by 10 and add digit. * The KA/CA way to do this should be to use * a 64-bit integer internally and use "adjust" to * convert it to float at the end of processing. */#include <_ansi.h>int_DEFUN (__ten_mul, (acc, digit), double *acc _AND int digit){ /* * [atw] Crude, but effective (at least on a KB)... */ *acc *= 10; *acc += digit; return 0; /* no overflow */}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?