On Mar 13, 2007, at 8:18 AM, Ignatios Souvatzis wrote:
Hm, if it is compare-and-swap, then great... but I thought it was
compare-and-set. Anyway, if you could double-check for me, that would
be great -- m68k is one of the platforms I was thinking of when I went
with "compare-and-store"
The API will specify that behavior is undefined if access is
unaligned. So we won't have to worry about fixing up unaligned access.
Sure, you could always do a cas-as-ras as the base primitive and put
everything on top of that (that's what I did for ARM). But if you can
do it in a short sequence of instructions, then that's probably faster
and thus preferable, yes?
-- thorpej