PSI sics-cvs-psi-complete-tree-post-site-support

This commit is contained in:
2004-03-09 15:18:11 +00:00
committed by Douglas Clowes
parent 6373f6b0fb
commit ae77364de2
196 changed files with 8344 additions and 3485 deletions

View File

@@ -18,8 +18,6 @@
#include "HistMem.h"
#include "sicsdata.h"
#define INTTYPE 0
#define FLOATTYPE 1
/*--------------------------------------------------------------------*/
static void KillSICSData(void *pData){
pSICSData self = NULL;
@@ -110,6 +108,10 @@ static void assignType(pSICSData self, int start, int end, int type){
self->dataType[i] = type;
}
}
/*-----------------------------------------------------------------------*/
void assignSICSType(pSICSData self, int start, int end, int type){
assignType(self,start,end,type);
}
/*------------------------------------------------------------------------
netEncode transforms the data in the array into network format.
- int become ints in network byte order
@@ -126,7 +128,7 @@ static void netEncode(pSICSData self){
}
if(self->dataType[i] == FLOATTYPE){
memcpy(&fVal,self->data + i,sizeof(float));
fVal /= 65536.;
fVal *= 65536.;
self->data[i] = htonl((int)fVal);
}
}