Changeset 39f1c86 in mainline for uspace/lib/pcm/src/format.c


Ignore:
Timestamp:
2018-02-24T19:51:28Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e0a5d4c
Parents:
5ef3afd
git-author:
Ondřej Hlavatý <aearsis@…> (2018-02-24 18:43:51)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-02-24 19:51:28)
Message:

byteorder: move also int variants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcm/src/format.c

    r5ef3afd r39f1c86  
    4141
    4242#include "format.h"
    43 
    44 #define int8_t_le2host(x) (x)
    45 #define host2int8_t_le(x) (x)
    46 
    47 #define int16_t_le2host(x) uint16_t_le2host(x)
    48 #define host2int16_t_le(x) host2uint16_t_le(x)
    49 
    50 #define int32_t_le2host(x) uint32_t_le2host(x)
    51 #define host2int32_t_le(x) host2uint32_t_le(x)
    52 
    53 #define int8_t_be2host(x) (x)
    54 #define host2int8_t_be(x) (x)
    55 
    56 #define int16_t_be2host(x) uint16_t_be2host(x)
    57 #define host2int16_t_be(x) host2uint16_t_be(x)
    58 
    59 #define int32_t_be2host(x) uint32_t_be2host(x)
    60 #define host2int32_t_be(x) host2uint32_t_be(x)
    6143
    6244// TODO float endian?
Note: See TracChangeset for help on using the changeset viewer.