[bo][un]StarWing83[/un] 在 2008-7-4 08:54 的发言:[/bo]
看看这份代码,会改变你对switch的认识:
register n = (count + 7) / 8; /* count > 0 assumed */
switch (count % 8)
{
case 0: do { *to = *from++;
case 7: *to = *from++;
case 6: *to = *from++;
c ...
看看这份代码,会改变你对switch的认识:
register n = (count + 7) / 8; /* count > 0 assumed */
switch (count % 8)
{
case 0: do { *to = *from++;
case 7: *to = *from++;
case 6: *to = *from++;
c ...
这段代码速率比for(i=0;i<count;i++) *to=*from++; 快吧?
My Blog: www.aiexp.info
虽然我的路是从这里开始的,但是这里不再是乐土.感谢曾经影响过,引导过,帮助过我的董凯,飞燕,leeco,starwing,Rockcarry,soft_wind等等等等.别了,BCCN.