⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idigitvecmult.c

📁 Arithmetic for integers of almost unlimited size for C and C++. Developed and copyrighted by Ra
💻 C
字号:
/* idigitvecmult.c - inline assembler code for MSVC++6.0 on Intel586 *//* TPf, Sep 1999 */#include <iint.h>#include <idigit.h>#if !defined(USE_C_DIGITVECMULT)DigitType DigitVecMult(res, a, m, l)    DigitType *res, *a, m;    int l; /* res[0..l-1] = a[0..l-1]*m; return CARRY;   */{__asm    {/*	.text	.align 4	.globl USCORE(DigitVecMult)USCORE(DigitVecMult): */	mov ebx, res		; DWORD PTR 20[esp]	mov edi, a		; DWORD PTR 24[esp]	mov esi, m		; DWORD PTR 28[esp]	mov ecx, l		; DWORD PTR 32[esp]	xor ebp,ebp	test ecx,ecx		; 	jz L2			; jump if ecx is zeroL1:	mov eax, DWORD PTR [edi]	add edi, 4	mul esi	add eax, ebp	mov ebp, edx	adc ebp, 0	mov DWORD PTR [ebx], eax	add ebx, 4	dec ecx	jnz L1L2:	mov eax, ebp    }}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -