eal: introduce big and little endian types
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>
Thu, 15 Jun 2017 15:48:57 +0000 (17:48 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 16 Jun 2017 14:07:56 +0000 (16:07 +0200)
commit637cfb2e32d37f5f29a5f9d9de10a8af2921bc54
tree837820b81f9d21e48c8d57bf622933b6a5a7c29c
parent50c4440ee89bf1fe1303baa86f5b8f9e99b35361
eal: introduce big and little endian types

This commit introduces new rte_{le,be}{16,32,64}_t types and updates
rte_{le,be,cpu}_to_{le,be,cpu}_*() accordingly.

These types are added for documentation purposes, mainly to clarify the
byte ordering to use for storage when not CPU order. Doing so eliminates
uncertainty and conversion mistakes.

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
lib/librte_eal/common/include/generic/rte_byteorder.h