![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 #include <byteswap.h> 0003 #include "memswap.h" 0004 #include <linux/types.h> 0005 0006 void mem_bswap_32(void *src, int byte_size) 0007 { 0008 u32 *m = src; 0009 while (byte_size > 0) { 0010 *m = bswap_32(*m); 0011 byte_size -= sizeof(u32); 0012 ++m; 0013 } 0014 } 0015 0016 void mem_bswap_64(void *src, int byte_size) 0017 { 0018 u64 *m = src; 0019 0020 while (byte_size > 0) { 0021 *m = bswap_64(*m); 0022 byte_size -= sizeof(u64); 0023 ++m; 0024 } 0025 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |