Re: [rtl] Problems with RDTSC examples posted here recently

2001-11-03 Thread Chunky Kibbles
On Sat, Nov 03, 2001 at 02:03:12AM +, [EMAIL PROTECTED] wrote: Method2 is broken because it gives erroneous results. In my original post I presented a small program that called three different versions of a RDTSC functions (1,2,2A) and only method 1 gave results that were in any

Re: [rtl] Problems with RDTSC examples posted here recently

2001-11-02 Thread Chunky Kibbles
On Thu, Nov 01, 2001 at 02:54:37PM -0700, John Regehr wrote: Don't forget to make sure it's __volatile__, elsewise this is the very epitome of what would produce dodgy results... Right. So method2 and method2A seem to be broken in multiple ways - forget you ever saw them. Rather, look

Re: [rtl] Problems with RDTSC examples posted here recently

2001-11-02 Thread Der Herr Hofrat
On Thu, Nov 01, 2001 at 02:54:37PM -0700, John Regehr wrote: Don't forget to make sure it's __volatile__, elsewise this is the very epitome of what would produce dodgy results... Right. So method2 and method2A seem to be broken in multiple ways - forget you ever saw them.

Re: [rtl] Problems with RDTSC examples posted here recently

2001-11-02 Thread ndrez
Method2 is broken because it gives erroneous results. In my original post I presented a small program that called three different versions of a RDTSC functions (1,2,2A) and only method 1 gave results that were in any posssible way correct. Since these are three different functions, there

Re: [rtl] Problems with RDTSC examples posted here recently

2001-11-01 Thread Chunky Kibbles
On Wed, Oct 31, 2001 at 05:37:18PM -0700, John Regehr wrote: method1 : 23573589435592- 23573353927542 = 235508050 method2 : 23573353927556- 23573353927556 = 0 method2A : 23573353927607- 23573353927607 = 0 -- also m2_1 - m1_1 = 14 -- and

Re: [rtl] Problems with RDTSC examples posted here recently

2001-11-01 Thread John Regehr
Don't forget to make sure it's __volatile__, elsewise this is the very epitome of what would produce dodgy results... Right. So method2 and method2A seem to be broken in multiple ways - forget you ever saw them. Rather, look at this page:

[rtl] Problems with RDTSC examples posted here recently

2001-10-29 Thread Norm Dresner
There were (at least) three sample implementations of a C-function to read the Pentium's time-stamp counter. I originally implemented two and when I discovered a problem with the results of one, I implemented the third which was supposed to be an improved version of the second. The results of