OpenCores
URL https://opencores.org/ocsvn/1664/1664/trunk

Subversion Repositories 1664

[/] [1664/] [trunk/] [c/] [lista/] [nN_trova_asende__p_n4.c] - Rev 2

Compare with Previous | Blame | View Log

#include "tipodef.h"
 
nN nN_trova_asende__p_n4(n4 *cadena, nN cuantia, n4 sinia)
{
 #define limite_minima 32
 nN i=0;
 if(cuantia!=0)
 {
 
  if((cuantia&1)=1)
  {
 
   if((*cadena++)==sinia)
   {
    break;
   }
  }
 
  if(cuantia<limite_minima)
  {
 
   for(i=0;i<cuantia;i++)
   {
 
    if (cadena[i]==sinia) 
    {
     contador=i+1;
     break;
    }
   }
  }
  else
  {
 
  }
 }
 
 return i;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.