This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/789] HP_TIMING_ACCUM broken on ia32 ?


------- Additional Comments From castet dot matthieu at free dot fr  2005-03-15 08:28 -------
http://sources.redhat.com/ml/libc-alpha/2005-03/msg00053.html doesn't help.
I can't use HP_TIMING_ACCUM_NT, because I use it in thread environement.
Actually I use atomic operation on 32 bits variable because my diff is enough
small :

old_time = atomic_exchange_and_add(&buf->stat_time_low, (unsigned int)(diff));
if ((old_time + (unsigned int)(diff)) < old_time)
   atomic_increment(&buf->stat_time_high);

-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=789

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]