Re: Is safe to memset to zero a structure with doubles?

2019-01-14 Thread Martin Husemann
On Mon, Jan 14, 2019 at 10:42:22PM +0100, Jose Luis Rodriguez Garcia wrote: > Is safe to memset to zero a structure with double types in the archs > supported by NetBSD? Yes, that works for all our supported architectures. Martin

Is safe to memset to zero a structure with doubles?

2019-01-14 Thread Jose Luis Rodriguez Garcia
Is safe to memset to zero a structure with double types in the archs supported by NetBSD? I have read that it isn't guaranteed to work according to C specification, although if IEEE 754 is supported, then it works. Vax isn't IEEE 754, but hasn't problems if a double is set to 0 with memset. It se