I'm trying to read single precision floating point numbers from a binary (.segy) file on windows, using C++. These numbers follow the IBM floating point architecture, so I need to convert them into IEEE-754 floats after reading.
I have found this C code:
Unfortunately it does not compile on windows.
I also found this code:
https://www.codeproject.com/Articles/12363/Transform-between-IEEE-IBM-or-VAX-floating-point-n
This solution seems a bit too complicated for me, and I'm not sure how to change it to read (IBM format) binary data directly.
Is there a simple C++ code available to solve this problem?