version 1.6, 2004/10/08 06:42:55 |
version 1.7, 2005/02/13 16:01:02 |
|
|
#include "base.h" |
#include "base.h" |
#include "inline.h" |
#include "inline.h" |
|
|
inline void _addz(Z n1,Z n2,Z nr); |
#if defined(__GNUC__) |
inline void _subz(Z n1,Z n2,Z nr); |
#define INLINE inline |
inline void _mulz(Z n1,Z n2,Z nr); |
#elif defined(VISUAL) |
inline int _addz_main(unsigned int *m1,int d1,unsigned int *m2,int d2,unsigned int *mr); |
#define INLINE __inline |
inline int _subz_main(unsigned int *m1,int d1,unsigned int *m2,int d2,unsigned int *mr); |
#else |
|
#define INLINE |
|
#endif |
|
|
|
INLINE void _addz(Z n1,Z n2,Z nr); |
|
INLINE void _subz(Z n1,Z n2,Z nr); |
|
INLINE void _mulz(Z n1,Z n2,Z nr); |
|
INLINE int _addz_main(unsigned int *m1,int d1,unsigned int *m2,int d2,unsigned int *mr); |
|
INLINE int _subz_main(unsigned int *m1,int d1,unsigned int *m2,int d2,unsigned int *mr); |
|
|
/* immediate int -> Z */ |
/* immediate int -> Z */ |
#define UTOZ(c,n) (n)=(!((unsigned int)(c))?0:(((unsigned int)(c))<=IMM_MAX?((Z)((((unsigned int)(c))<<1)|1)):utoz((unsigned int)(c)))) |
#define UTOZ(c,n) (n)=(!((unsigned int)(c))?0:(((unsigned int)(c))<=IMM_MAX?((Z)((((unsigned int)(c))<<1)|1)):utoz((unsigned int)(c)))) |