1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-23 00:00:01 +01:00
VILLASnode/clients/opal/models/send_receive/src/compat.c
Steffen Vogel 02a2aa4f94 Apply clang-format changes
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2023-09-08 11:37:42 +02:00

29 lines
806 B
C

/* Compatibility code for GCC.
*
* OPAL-RT's libSystem.a links against some Intel
*
* Author: Steffen Vogel <post@steffenvogel.de>
* SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
* SPDX-License-Identifier: Apache-2.0
*/
#include <string.h>
size_t __intel_sse2_strlen(const char *s) { return strlen(s); }
void *_intel_fast_memset(void *b, int c, size_t len) {
return memset(b, c, len);
}
void *_intel_fast_memcpy(void *restrict dst, const void *restrict src,
size_t n) {
return memcpy(dst, src, n);
}
int _intel_fast_memcmp(const void *s1, const void *s2, size_t n) {
return memcmp(s1, s2, n);
}
void *_intel_fast_memmove(void *dest, const void *src, size_t num) {
return memmove(dest, src, num);
}