Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI devel] IB warnings
From: Christopher Yeoh (cyeoh_at_[hidden])
Date: 2010-07-20 20:18:39

On 20 Jul 2010 13:03:57 +0100
"N.M. Maclaren" <nmm1_at_[hidden]> wrote:
> Not on most systems. While this is more clearly illegal, similar
> remarks apply to its safety. If there were any debugging C compilers
> around, it might well get trapped, but those are about as common as
> unicorns.
> It's a horrible coding style, but this is a case of damned if you do,
> and damned if you don't.

Yep the only other way to do it I saw was to create an unsigned version
of OPAL_ATOMIC_CMPSET_32. But this code is *only* used for debug
purposes for so I thought that was excessive. And I agree that
twos complement representation should make this ok, albeit ugly.