On Tue, 20 May 2008, Benoit Boissinot wrote:Sorry to disturb you again. But i tested my code against Akinobu's one and the test result shows my code takes less cpu time than that of Akinobu's. Here is the code i used to determine performance -- #include<stdio.h> #include<time.h> int main() { int i = 100000000; printf("%ld\n", (long)clock()); for(; i>0; i--) { bitrev32(0x00face32); } printf("%ld", (long)clock()); } -- OUTPUT: [using Akinobu's bitrev32()] 0 6010000 [using my bitrev32()] 0 3990000 And using bitrev8() instead of bitrev32() the result gives the output like this: [using Akinobu's bitrev8()] 0 770000 [using my bitrev8()] 0 2360000 My processor is 1.4 GHz one. I am not forcing you to review my code( or i've no expectation of inclusion of it ) but its just a curiousity: what is truth behind the output. Regards, Soumya -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --
| Dave Hansen | [RFC][PATCH 0/4] kernel-based checkpoint restart |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Eric Paris | [RFC 0/5] [TALPA] Intro to a linux interface for on access scanning |
git: | |
| David Miller | Re: [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
