This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/789] HP_TIMING_ACCUM broken on ia32 ?
- From: "castet dot matthieu at free dot fr" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 15 Mar 2005 08:28:53 -0000
- Subject: [Bug libc/789] HP_TIMING_ACCUM broken on ia32 ?
- References: <20050314140930.789.castet.matthieu@free.fr>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- 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.