Using _Generic, create LE2H which will generically convert uintXX_t
types from little endian to host, regardless of the size.
USE jhb's suggested name
Sponsored by: Netflix
Differential D44649
nvmecontrol: Create letoh generically convert to host order imp on Apr 6 2024, 6:55 PM. Authored by Tags None Referenced Files
Subscribers
Details Using _Generic, create LE2H which will generically convert uintXX_t USE jhb's suggested name Sponsored by: Netflix
Diff Detail
Event TimelineComment Actions I kind of wonder if we'd like to just have this in <sys/endian.h> as letoh, but then you'd want the full complement of betoh, htobe, etc.
Comment Actions I'll convert to letoh, but leave the others for now because the be ones aren't needed and htole is harder as a macro and I'm not quite ready for it. |