View Single Post
Re: Show off your finest piece of code!
Old
  (#8)
Rick
Council Member
 
Rick's Avatar
 
Status: Offline
Posts: 690
Join Date: Dec 2003
Location: Holland
Default Re: Show off your finest piece of code! - 30-12-2004

From a c++ book
Code:
   void send(int* to, int* from, int count)
   {
   	 int n = (count+7)/8;
   	 switch(count%8) {
   		   case 0: do {	 *to++ = *from++;
   		   case 7:		  *to++ = *from++;
   		   case 6:		  *to++ = *from++;
   		   case 5:		  *to++ = *from++;
   		   case 4:		  *to++ = *from++;
   		   case 3:		  *to++ = *from++;
   		   case 2:		  *to++ = *from++;
   		   case 1:		  *to++ = *from++;
 					 } while (--n>0);
   	 }
   }
@asp:
Didn't it know it came from you But 'taskmanager'? Its just time sliced
  
Reply With Quote