summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/zephyr/platform_internal.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:19:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:53:24 +0000
commitb5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch)
treed4d31289c39fc00da064a825df13a0b98ce95b10 /fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/zephyr/platform_internal.h
parentAdding upstream version 1.44.3. (diff)
downloadnetdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.tar.xz
netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.zip
Adding upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/zephyr/platform_internal.h')
-rw-r--r--fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/zephyr/platform_internal.h149
1 files changed, 0 insertions, 149 deletions
diff --git a/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/zephyr/platform_internal.h b/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/zephyr/platform_internal.h
deleted file mode 100644
index d2a94e4ad..000000000
--- a/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/shared/platform/zephyr/platform_internal.h
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- * Copyright (C) 2019 Intel Corporation. All rights reserved.
- * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- */
-
-#ifndef _PLATFORM_INTERNAL_H
-#define _PLATFORM_INTERNAL_H
-
-#include <autoconf.h>
-#include <version.h>
-
-#if KERNEL_VERSION_NUMBER < 0x030200 /* version 3.2.0 */
-#include <zephyr.h>
-#include <kernel.h>
-#if KERNEL_VERSION_NUMBER >= 0x020200 /* version 2.2.0 */
-#include <sys/printk.h>
-#else
-#include <misc/printk.h>
-#endif
-#else /* else of KERNEL_VERSION_NUMBER < 0x030200 */
-#include <zephyr/kernel.h>
-#include <zephyr/sys/printk.h>
-#endif /* end of KERNEL_VERSION_NUMBER < 0x030200 */
-
-#include <inttypes.h>
-#include <stdarg.h>
-#include <ctype.h>
-#include <limits.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <strings.h>
-
-#ifndef CONFIG_NET_BUF_USER_DATA_SIZE
-#define CONFIG_NET_BUF_USER_DATA_SIZE 0
-#endif
-
-#if KERNEL_VERSION_NUMBER < 0x030200 /* version 3.2.0 */
-#include <net/net_pkt.h>
-#include <net/net_if.h>
-#include <net/net_ip.h>
-#include <net/net_core.h>
-#include <net/net_context.h>
-
-#ifdef CONFIG_ARM_MPU
-#include <arch/arm/aarch32/cortex_m/cmsis.h>
-#endif
-#else /* else of KERNEL_VERSION_NUMBER < 0x030200 */
-#include <zephyr/net/net_pkt.h>
-#include <zephyr/net/net_if.h>
-#include <zephyr/net/net_ip.h>
-#include <zephyr/net/net_core.h>
-#include <zephyr/net/net_context.h>
-
-#ifdef CONFIG_ARM_MPU
-#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
-#endif
-#endif /* end of KERNEL_VERSION_NUMBER < 0x030200 */
-
-#ifndef BH_PLATFORM_ZEPHYR
-#define BH_PLATFORM_ZEPHYR
-#endif
-
-#define BH_APPLET_PRESERVED_STACK_SIZE (2 * BH_KB)
-
-/* Default thread priority */
-#define BH_THREAD_DEFAULT_PRIORITY 7
-
-typedef struct k_thread korp_thread;
-typedef korp_thread *korp_tid;
-typedef struct k_mutex korp_mutex;
-typedef unsigned int korp_sem;
-
-struct os_thread_wait_node;
-typedef struct os_thread_wait_node *os_thread_wait_list;
-typedef struct korp_cond {
- struct k_mutex wait_list_lock;
- os_thread_wait_list thread_wait_list;
-} korp_cond;
-
-#ifndef Z_TIMEOUT_MS
-#define Z_TIMEOUT_MS(ms) ms
-#endif
-
-/* clang-format off */
-void abort(void);
-size_t strspn(const char *s, const char *accept);
-size_t strcspn(const char *s, const char *reject);
-
-/* math functions which are not provided by os */
-double atan(double x);
-double atan2(double y, double x);
-double sqrt(double x);
-double floor(double x);
-double ceil(double x);
-double fmin(double x, double y);
-double fmax(double x, double y);
-double rint(double x);
-double fabs(double x);
-double trunc(double x);
-float sqrtf(float x);
-float floorf(float x);
-float ceilf(float x);
-float fminf(float x, float y);
-float fmaxf(float x, float y);
-float rintf(float x);
-float fabsf(float x);
-float truncf(float x);
-int signbit(double x);
-int isnan(double x);
-double pow(double x, double y);
-double scalbn(double x, int n);
-
-unsigned long long int strtoull(const char *nptr, char **endptr, int base);
-double strtod(const char *nptr, char **endptr);
-float strtof(const char *nptr, char **endptr);
-/* clang-format on */
-
-#if KERNEL_VERSION_NUMBER >= 0x030100 /* version 3.1.0 */
-#define BH_HAS_SQRT
-#define BH_HAS_SQRTF
-#endif
-
-/**
- * @brief Allocate executable memroy
- *
- * @param size size of the memory to be allocated
- *
- * @return the address of the allocated memory if not NULL
- */
-typedef void *(*exec_mem_alloc_func_t)(unsigned int size);
-
-/**
- * @brief Release executable memroy
- *
- * @param the address of the executable memory to be released
- */
-typedef void (*exec_mem_free_func_t)(void *addr);
-
-/* Below function are called by external project to set related function
- * pointers that will be used to malloc/free executable memory. Otherwise
- * default mechanise will be used.
- */
-void
-set_exec_mem_alloc_func(exec_mem_alloc_func_t alloc_func,
- exec_mem_free_func_t free_func);
-
-#endif