1 | begin[,end[,increment[,type]]] |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | char *defaulttimelist = "4,4,1,0"; char *defaultthreadlist = "1,1,1,0"; getlist(defaulttimelist, &timelist); getlist(defaultthreadlist, &threadlist); ================================================= else if(equaln(av[1], "-t",2)) { if(av[1][2]) { getlist(&av[1][2],&threadlist); } else { ac--; av++; getlist(av[1],&threadlist); } ac--; av++; } ================================================= |
1 2 3 4 5 6 7 8 9 10 11 12 | nthreads = next_list(&threadlist); if(nthreads == 0) { return 0; // exiting from main. } =========================================== restart_list(&timelist); for(;;) { timedtestflag = 0; nseconds = next_list(&timelist); if(nseconds == 0) break; =========================================== |
1 | fract4b -s -t 1,256,2,1 1,32,2,1 |
1 2 3 4 5 6 7 8 9 10 11 | INT64 ull; x = a; y = b; for(ull = 0; timedtestflag == 1 ; ull++) { x1 = x*x - y*y; y1 = -2 * x * y; if( (x1*x1 + y1*y1) > 1.0) break; x = x1 + c; y = y1 + d; } |
1 | fract4b -s -t 1,256,2,1 8 |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |