Changeset b00a2f2 in mainline
- Timestamp:
- 2011-03-09T20:40:23Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8ceba1e
- Parents:
- bb0db564
- Location:
- uspace/srv/fs/minixfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_utils.c
rbb0db564 rb00a2f2 31 31 */ 32 32 33 #include <byteorder.h> 33 34 #include "mfs_utils.h" 34 35 … … 38 39 return n; 39 40 40 return (n << 8) | (n >> 8);41 return uint16_t_byteorder_swap(n); 41 42 } 42 43 … … 46 47 return n; 47 48 48 return conv16(native, n << 16) | conv16(native, n >> 16); 49 return uint32_t_byteorder_swap(n); 50 } 51 52 uint64_t conv64(bool native, uint64_t n) 53 { 54 if (native) 55 return n; 56 57 return uint64_t_byteorder_swap(n); 49 58 } 50 59 -
uspace/srv/fs/minixfs/mfs_utils.h
rbb0db564 rb00a2f2 39 39 uint16_t conv16(bool native, uint16_t n); 40 40 uint32_t conv32(bool native, uint32_t n); 41 uint64_t conv64(bool native, uint64_t n); 41 42 42 43 #endif
Note:
See TracChangeset
for help on using the changeset viewer.