Mingyang Sun | c4b5d8d | 2019-07-16 17:57:52 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef __TFM_LIBSPRT_C_H__ |
| 9 | #define __TFM_LIBSPRT_C_H__ |
| 10 | |
| 11 | #include <stddef.h> |
| 12 | |
| 13 | /** |
| 14 | * \brief This function moves 'n' bytes from 'src' to 'dest'. |
| 15 | * |
| 16 | * \param[out] dest Destination address |
| 17 | * \param[in] src Source address |
| 18 | * \param[in] n Number of bytes to be moved |
| 19 | * |
| 20 | * \retval dest Destination address |
| 21 | * \note Memory overlap has been taken into consideration |
| 22 | * and processed properly in the function. |
| 23 | */ |
| 24 | void *tfm_sprt_c_memmove(void *dest, const void *src, size_t n); |
| 25 | |
| 26 | /** |
| 27 | * \brief This function copies 'n' bytes from 'src' to 'dest'. |
| 28 | * |
| 29 | * \param[out] dest Destination address |
| 30 | * \param[in] src Source address |
| 31 | * \param[in] n Number of bytes to be copied |
| 32 | * |
| 33 | * \retval dest Destination address |
| 34 | * \note It has the same effect as tfm_sprt_c_memmove(). |
| 35 | */ |
| 36 | void *tfm_sprt_c_memcpy(void *dest, const void *src, size_t n); |
| 37 | |
| 38 | #endif /* __TFM_LIBSPRT_C_H__ */ |