version 1.1.1.1, 1999/10/08 02:12:05 |
version 1.3, 1999/11/18 00:54:17 |
|
|
|
/*$OpenXM$ */ |
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#include <netinet/in.h> |
/* #include <netinet/in.h> */ |
#include "datatype.h" |
#include "datatype.h" |
#include "stackm.h" |
#include "stackm.h" |
#include "extern.h" |
#include "extern.h" |
Line 161 static int myfgetc(struct cmoBuffer *cb) |
|
Line 162 static int myfgetc(struct cmoBuffer *cb) |
|
cb->rpos--; |
cb->rpos--; |
errorCmo(" cmo-gmp.c : myfgetc(): no data in the buffer."); |
errorCmo(" cmo-gmp.c : myfgetc(): no data in the buffer."); |
} |
} |
return(k); |
|
} |
} |
|
return(k); |
} |
} |
static int getRawInt32(struct cmoBuffer *cb) |
static int getRawInt32(struct cmoBuffer *cb) |
{ |
{ |
char d[4]; |
char d[4]; |
int i; |
int i; |
|
int r; |
for (i=0; i<4; i++) { |
for (i=0; i<4; i++) { |
d[i] = myfgetc(cb); |
d[i] = myfgetc(cb); |
} |
} |
return(ntohl(* ( (int *)d))); |
return( ntohl(* ( (int *)d))); |
} |
} |
|
|
cmoGetGMPCoeff_old(MP_INT *x, struct cmoBuffer *cb) |
cmoGetGMPCoeff_old(MP_INT *x, struct cmoBuffer *cb) |