On Thu, Jul 26, 2001 at 02:43:24PM -0700, John Baldwin wrote:
> {
>         int val;
> 
>         do {
>                 val = *(int *)addr;
>         } while (atomic_cmpset_int(addr, val, val | (1 << nr) == 0);
>         return (val & (1 << nr));
> }

Thanks! I think that'd work. But code using BTS would be
more efficient (fewer cycles).

Many people asked me this question: the code I'm porting is:

http://www.intel.com/research/mrl/orp/

Please see my messages to [EMAIL PROTECTED] about the port.

        -Arun


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to