Read binary data IBM_r4 instead of IEEE_r4

Read binary data IBM_r4 instead of IEEE_r4

Hello!

I'm reading 4-bytes seismic trace values from a SEGY file. Ifort reads the 4 bytes using the IEEE_r4 floating point standard to translate the values. I need to translate this values to the format IBM_r4 floating point format.

DDoes anybody know how to do this???

Thanks

hugo

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Do you need to convert from IEEE FP to IBM FP or the other way round? I'm not aware of an Intel library, but I've found this one:
http://www.codeproject.com/Articles/12363/Transform-between-IEEE-IBM-or-...

However, it shouldn't be too hard to code your own conversion using integer "shifts" and "or".

Inicie sesión para dejar un comentario.