half_float icon indicating copy to clipboard operation
half_float copied to clipboard

Add support for Float24

Open TheNicker opened this issue 8 years ago • 2 comments

24 bit precision floating point is also not supported natively by the CPU. The code may be generalized using templates to create a custom precision floating point. e.g.

template <int MANTISSA, int EXPONENT> class Float;

typedef Float<10, 5>   Float16;
typedef Float<16, 7>   Float24;
typedef Float<23, 8>   Float32;
typedef Float<52, 11>  Float64;

TheNicker avatar May 24 '17 20:05 TheNicker

Belated reply: would love to, but don't currently have the time. Do you want to have a stab at it?

acgessler avatar Oct 17 '17 19:10 acgessler

I would love to have this class implemented but it's on a low priority right now. it's needed for reading 24 bit Float TIF images. Moreover I am not completely familiar with the code or the theory behind it so it'll be an effort so currently I believe that you'll do a better job faster

TheNicker avatar Oct 18 '17 07:10 TheNicker