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

Subversion Repositories 1664

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

Compare with Previous | Blame | View Log

#include "lista.h"
 
struct lista* lista_nova__crese(nN cuantia, nN crese)
{
 crese+=0x10; crese&=-0x10;
 nN nova_cuantia = (cuantia > lista_minima_cuantia) ? cuantia : lista_minima_cuantia;
 struct lista *esta = (struct lista *)memoria_nova(sizeof(struct lista));
 esta->datos=(n1 *)memoria_nova(nova_cuantia);
 esta->capasia=nova_cuantia;
 esta->contador=0;
 esta->crese=(crese > lista_minima_crese) ? crese : lista_minima_crese;
 return esta;
}
 
 

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.