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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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".

Leave a Comment

Please sign in to add a comment. Not a member? Join today