X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fapi_5g%2Fsource%2Finclude%2Fnr5g_fapi_memory.h;h=4f3ce6515dbbc2c9a72560e3934c14cb16dc20ad;hp=0b877df414d102261af8a8a2a2112a94357552a6;hb=892daba4c616407f16506415d5a69549519ef11d;hpb=76b4495d593ccf45d712db1a3ec96fa9d2d8f5f5 diff --git a/fapi_5g/source/include/nr5g_fapi_memory.h b/fapi_5g/source/include/nr5g_fapi_memory.h index 0b877df..4f3ce65 100644 --- a/fapi_5g/source/include/nr5g_fapi_memory.h +++ b/fapi_5g/source/include/nr5g_fapi_memory.h @@ -1,6 +1,6 @@ /****************************************************************************** * -* Copyright (c) 2019 Intel. +* Copyright (c) 2021 Intel. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,20 +28,23 @@ #define NR5G_FAPI_MEMSET(s, x, c, n) nr5g_fapi_memset_bound_check(s, x, c, n) #define NR5G_FAPI_STRCPY(d, x, s, n) nr5g_fapi_strcpy_bound_check(d, x, s, n) -inline uint8_t nr5g_fapi_memcpy_bound_check( - void *d, +#include +#include + +uint8_t nr5g_fapi_memcpy_bound_check( + void * const d, size_t x, - const void *s, + const void * const s, size_t n); -inline uint8_t nr5g_fapi_memset_bound_check( - void *s, +uint8_t nr5g_fapi_memset_bound_check( + void * const s, size_t x, const int32_t c, size_t n); -inline uint8_t nr5g_fapi_strcpy_bound_check( - char *d, +uint8_t nr5g_fapi_strcpy_bound_check( + char * const d, size_t x, - const char *s, + const char * const s, size_t n); #endif // NR5G_FAPI_MEM_H_