1*4d9fdb46SRobert Mustacchi /* 2*4d9fdb46SRobert Mustacchi Copyright (C) 2018 David Anderson. All Rights Reserved. 3*4d9fdb46SRobert Mustacchi 4*4d9fdb46SRobert Mustacchi This program is free software; you can redistribute it 5*4d9fdb46SRobert Mustacchi and/or modify it under the terms of version 2.1 of the 6*4d9fdb46SRobert Mustacchi GNU Lesser General Public License as published by the 7*4d9fdb46SRobert Mustacchi Free Software Foundation. 8*4d9fdb46SRobert Mustacchi 9*4d9fdb46SRobert Mustacchi This program is distributed in the hope that it would 10*4d9fdb46SRobert Mustacchi be useful, but WITHOUT ANY WARRANTY; without even the 11*4d9fdb46SRobert Mustacchi implied warranty of MERCHANTABILITY or FITNESS FOR A 12*4d9fdb46SRobert Mustacchi PARTICULAR PURPOSE. 13*4d9fdb46SRobert Mustacchi 14*4d9fdb46SRobert Mustacchi Further, this software is distributed without any warranty 15*4d9fdb46SRobert Mustacchi that it is free of the rightful claim of any third person 16*4d9fdb46SRobert Mustacchi regarding infringement or the like. Any license provided 17*4d9fdb46SRobert Mustacchi herein, whether implied or otherwise, applies only to 18*4d9fdb46SRobert Mustacchi this software file. Patent licenses, if any, provided 19*4d9fdb46SRobert Mustacchi herein do not apply to combinations of this program with 20*4d9fdb46SRobert Mustacchi other software, or any other product whatsoever. 21*4d9fdb46SRobert Mustacchi 22*4d9fdb46SRobert Mustacchi You should have received a copy of the GNU Lesser General 23*4d9fdb46SRobert Mustacchi Public License along with this program; if not, write 24*4d9fdb46SRobert Mustacchi the Free Software Foundation, Inc., 51 Franklin Street - 25*4d9fdb46SRobert Mustacchi Fifth Floor, Boston MA 02110-1301, USA. 26*4d9fdb46SRobert Mustacchi */ 27*4d9fdb46SRobert Mustacchi 28*4d9fdb46SRobert Mustacchi #ifndef MEMCPY_SWAP_H 29*4d9fdb46SRobert Mustacchi #define MEMCPY_SWAP_H 30*4d9fdb46SRobert Mustacchi 31*4d9fdb46SRobert Mustacchi #ifdef __cplusplus 32*4d9fdb46SRobert Mustacchi extern "C" { 33*4d9fdb46SRobert Mustacchi #endif /* __cplusplus */ 34*4d9fdb46SRobert Mustacchi 35*4d9fdb46SRobert Mustacchi void _dwarf_memcpy_swap_bytes(void *s1, const void *s2, unsigned long len); 36*4d9fdb46SRobert Mustacchi /* It's inconvenient to use memcpy directly as it 37*4d9fdb46SRobert Mustacchi uses size_t and that requires <stddef.h> */ 38*4d9fdb46SRobert Mustacchi void _dwarf_memcpy_noswap_bytes(void *s1, const void *s2, unsigned long len); 39*4d9fdb46SRobert Mustacchi 40*4d9fdb46SRobert Mustacchi #ifdef __cplusplus 41*4d9fdb46SRobert Mustacchi } 42*4d9fdb46SRobert Mustacchi #endif /* __cplusplus */ 43*4d9fdb46SRobert Mustacchi #endif /* MEMCPY_SWAP_H */ 44