version 1.8, 2007/09/15 10:17:07 |
version 1.9, 2009/03/02 16:28:30 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/asm/ddN.c,v 1.7 2007/02/18 05:36:27 ohara Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/asm/ddN.c,v 1.8 2007/09/15 10:17:07 noro Exp $ |
*/ |
*/ |
#ifndef FBASE |
#ifndef FBASE |
#define FBASE |
#define FBASE |
Line 288 void bxprintn(N n) |
|
Line 288 void bxprintn(N n) |
|
} |
} |
} |
} |
|
|
#if defined(VISUAL) || defined(i386) |
#if defined(_M_IX86) || defined(i386) |
void muln(N n1,N n2,N *nr) |
void muln(N n1,N n2,N *nr) |
{ |
{ |
unsigned int tmp,carry,mul; |
unsigned int tmp,carry,mul; |
Line 347 void _muln(N n1,N n2,N nr) |
|
Line 347 void _muln(N n1,N n2,N nr) |
|
void muln_1(unsigned int *p,int s,unsigned int d,unsigned int *r) |
void muln_1(unsigned int *p,int s,unsigned int d,unsigned int *r) |
{ |
{ |
/* esi : p, edi : r, carry : ebx, s : ecx */ |
/* esi : p, edi : r, carry : ebx, s : ecx */ |
#if defined(VISUAL) |
#if defined(_M_IX86) |
__asm { |
__asm { |
push esi |
push esi |
push edi |
push edi |
Line 496 unsigned int divn_1(unsigned int *p,int s,unsigned int |
|
Line 496 unsigned int divn_1(unsigned int *p,int s,unsigned int |
|
return borrow; |
return borrow; |
*/ |
*/ |
/* esi : p, edi : r, borrow : ebx, s : ecx */ |
/* esi : p, edi : r, borrow : ebx, s : ecx */ |
#if defined(VISUAL) |
#if defined(_M_IX86) |
__asm { |
__asm { |
push esi |
push esi |
push edi |
push edi |