Ejemplo n.º 1
0
void outputdeque( ) 
{ 
	int option; 
	do 
	{  
		printf("\n\n OUTPUT RESTRICTED DEQUE");  
		printf("\n 1.Insert at right");  
		printf("\n 2.Insert at left");  
		printf("\n 3.Delete from left");  
		printf("\n 4.Display");  
		printf("\n 5.Quit");  
		printf("\n Enter your option : ");  
	
		scanf("%d",&option);  
		switch(option)  
			{   
				case 1 : insertright();
				  	     break;   
				case 2 : insertleft();    
						 break;   
				case 3 : deleteleft(); 
				   		 break;   
				case 4 : display();    
					     break;  
			}
	} while (option!=5); 
} 
Ejemplo n.º 2
0
        KFR_INTRIN vec<T, width> operator()(cinput_t, size_t index, vec_t<T, width> t) const
        {
            const vec<T, width> in = this->argument_first(index, t);
            vec<T, width> out;

            KFR_LOOP_UNROLL
            for (size_t i = 0; i < width; i++)
            {
                bq.out = process(bq, insertleft(in[i], bq.out));
                out(i) = bq.out[filters - 1];
            }

            return out;
        }