A question about the i386 double type memory layout
Posted: Wed Apr 04, 2007 2:27 pm
Hi everyone:
First a little about me. I have been reading these forums for quite some time (>2 years I think). Until now have never had a reason to post. I started a hobby os once a while back. It progressed to the point of booting (with GRUB's help) and writing text to the screen with vga memory. Perhaps some time in the future I will have time to work on it again.
Now to my question. I am implementing a c library for communicating in a binary udp protocol. The protocol relies on sending double precision floating point numbers. It specifies it's own standard for their transmittal. The line in the documentation is
Thank you in advance,
Skan
First a little about me. I have been reading these forums for quite some time (>2 years I think). Until now have never had a reason to post. I started a hobby os once a while back. It progressed to the point of booting (with GRUB's help) and writing text to the screen with vga memory. Perhaps some time in the future I will have time to work on it again.
Now to my question. I am implementing a c library for communicating in a binary udp protocol. The protocol relies on sending double precision floating point numbers. It specifies it's own standard for their transmittal. The line in the documentation is
So that would be IEEE doubles stored with the least significant 32bits of the significant first and then the sign, exponent and rest of the significant in the second 32bits. Could someone either correct me or confirm that as fact?Floating point values are IEEE doubles stored in the representation as on the i386.
Thank you in advance,
Skan