Changeset 5f4cf872 in mainline for uspace/app/bithenge/linux/os.h


Ignore:
Timestamp:
2012-07-18T22:43:55Z (13 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ff788c3
Parents:
ae49252
Message:

Bithenge: add more uint transforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bithenge/linux/os.h

    rae49252 r5f4cf872  
    100100}
    101101
     102static inline uint16_t uint16_t_le2host(uint16_t val)
     103{
     104        return le16toh(val);
     105}
     106
     107static inline uint16_t uint16_t_be2host(uint16_t val)
     108{
     109        return be16toh(val);
     110}
     111
    102112static inline uint32_t uint32_t_le2host(uint32_t val)
    103113{
     
    110120}
    111121
     122static inline uint64_t uint64_t_le2host(uint64_t val)
     123{
     124        return le64toh(val);
     125}
     126
     127static inline uint64_t uint64_t_be2host(uint64_t val)
     128{
     129        return be64toh(val);
     130}
     131
    112132#endif
Note: See TracChangeset for help on using the changeset viewer.