Hi,

Could you please provide a function that acts on int8_t aka signed char?
Right now, you provide stats_uchar_mean(), which acts on unsigned chars (uint8_t), and stats_char_mean(), which acts on char(), and depending on the architecture, it can be signed or unsigned, but considering that it receives a pointer, even if it were signed, an assignment from int8_t would require a cast.

I think you should provide functions for fixed width types, but at least you could provide functions for signed chars.

Plain char should only be used for text.

Thanks,

Alex


--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/

Reply via email to