add support for slists

Dmitry Timoshkov dmitry at codeweavers.com
Wed Jan 24 03:18:21 CST 2007


And one more...

"Damjan Jovanovic" <damjan.jov at gmail.com> wrote:

> +__int64 interlocked_cmpxchg64( __int64 **dest, __int64 *xchg, __int64 *compare )
> +{
> +    _lwp_mutex_lock( &interlocked_mutex );
> +    if (memcmp(*dest, compare, 8) == 0)
> +        memcpy(*dest, xchg, 8);
> +    else
> +        memcpy(compare, *dest);
> +    _lwp_mutex_unlock( &interlocked_mutex );
> +    return compare;
> +}

Is there any particular reason that you use memcmp/memcpy instead of
directly manipulating 64-bit values?

-- 
Dmitry.



More information about the wine-devel mailing list