pike.git / src / modules / _WhiteFish / whitefish.c

version» Context lines:

pike.git/src/modules/_WhiteFish/whitefish.c:1:   #include <math.h>      #include "global.h"   #include "stralloc.h"   #include "global.h" - RCSID("$Id: whitefish.c,v 1.12 2001/05/25 12:13:07 per Exp $"); + RCSID("$Id: whitefish.c,v 1.13 2001/05/25 12:48:04 per Exp $");   #include "pike_macros.h"   #include "interpret.h"   #include "program.h"   #include "program_id.h"   #include "object.h"   #include "operators.h"   #include "array.h"   #include "module_support.h"      #include "config.h"
pike.git/src/modules/_WhiteFish/whitefish.c:72:    {    MEMSET( pos, 0, nblobs );    for( j = 0; j<nhits[i]; j++ )    {    hits[i] = wf_blob_hit( blobs[i], j );       /* forward the other positions */    for( k = 0; k<nblobs; k++ )    if( k != j && pos[ k ] < nhits[ k ] )    { -  while( hits[k].u.raw < hits[i].u.raw ) +  while( (hits[k].u.raw < hits[i].u.raw) && (pos[ k ] < nhits[ k ]))    hits[k] = wf_blob_hit( blobs[k], pos[k]++ ); -  if( hits[k].type == hits[i].type ) +  if( (pos[ k ] < nhits[ k ]) && hits[k].type == hits[i].type )    matrix[MOFF(hits[i])][DOFF(OFFSET(hits[i])-OFFSET(hits[k]))]++;    }    }    }          /* Now we have our nice matrix. Time to do some multiplication */       {    double accum = 0.0, fc, pc;