S
Spiros Bousbouras
In a different post ([1]) I suggested the possibility of using
memcpy() to copy regions of memory (to be) used by other
processes. It would be useful for this sort of thing to know
that the regions will match bit for bit but I don't think that
the standard guarantees that. For example 6.2.6.2. p3 says
It is unspecified whether these cases actually
generate a negative zero or a normal zero, and
whether a negative zero becomes a normal zero when
stored in an object.
The part that worries me is what comes after the comma.
Unitialised memory might contain a negative zero which might
become normal zero and I imagine the difference might be
important for some other programme. So what are your views?
[1] Link is http://tinyurl.com/9t9mmd but you have to click on
my name, or at least that's how it works for me.
memcpy() to copy regions of memory (to be) used by other
processes. It would be useful for this sort of thing to know
that the regions will match bit for bit but I don't think that
the standard guarantees that. For example 6.2.6.2. p3 says
It is unspecified whether these cases actually
generate a negative zero or a normal zero, and
whether a negative zero becomes a normal zero when
stored in an object.
The part that worries me is what comes after the comma.
Unitialised memory might contain a negative zero which might
become normal zero and I imagine the difference might be
important for some other programme. So what are your views?
[1] Link is http://tinyurl.com/9t9mmd but you have to click on
my name, or at least that's how it works for me.