[m-dev.] gcc abort on runtime/mercury_atomic_ops.c
Peter Wang
novalazy at gmail.com
Thu Oct 25 10:53:06 AEST 2007
On 2007-10-24, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>
> On another matter related to the atomic ops module (this is for PeterW),
> why is the signature of MR_compare_and_swap_word
>
> MR_bool
> MR_compare_and_swap_word(volatile MR_Integer *, MR_Integer, MR_Integer)
>
> rather than:
>
> MR_bool
> MR_compare_and_swap_word(volatile MR_Word *, MR_Word, MR_Word)
>
> ?
No particular reason I can remember. Probably just because I was
comparing and swapping indices into arrays.
Peter
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions: mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the developers
mailing list