code: update vendors vol.2

isolation_bkp/dynres
Dominik Madarász 2021-01-15 01:34:08 +01:00
parent 86d4151cdc
commit 1ac29b8dce
2 changed files with 14 additions and 12 deletions

13
code/vendors/librg.h vendored
View File

@ -299,7 +299,7 @@ Version History:
#define ZPL_VERSION_MAJOR 10 #define ZPL_VERSION_MAJOR 10
#define ZPL_VERSION_MINOR 13 #define ZPL_VERSION_MINOR 13
#define ZPL_VERSION_PATCH 0 #define ZPL_VERSION_PATCH 1
#define ZPL_VERSION_PRE "" #define ZPL_VERSION_PRE ""
// file: zpl_hedley.h // file: zpl_hedley.h
@ -2252,8 +2252,8 @@ ZPL_DIAGNOSTIC_POP
#endif #endif
/* Architecture-specific overrides */ /* Architecture-specific overrides */
#if defined(__ARM_ARCH) #if defined(__ARM_ARCH) && !defined(__cplusplus)
// #define ZPL_DISABLE_THREADING #define ZPL_DISABLE_THREADING
#endif #endif
/* Distributions */ /* Distributions */
@ -2506,7 +2506,7 @@ defined(__ppc64__) || defined(__aarch64__)
/* Platform CPU */ /* Platform CPU */
#if defined(__arm__) || defined(__aarch64__) #if defined(__arm__) || defined(__aarch64__) || defined(__ARM_ARCH)
#ifndef ZPL_CPU_ARM #ifndef ZPL_CPU_ARM
#define ZPL_CPU_ARM 1 #define ZPL_CPU_ARM 1
#endif #endif
@ -7094,7 +7094,7 @@ ZPL_END_C_DECLS
// TODO: Be specific with memory order? // TODO: Be specific with memory order?
// e.g. relaxed, acquire, release, acquire_release // e.g. relaxed, acquire, release, acquire_release
#if !defined(__STDC_NO_ATOMICS__) && !defined(__cplusplus) #if !defined(__STDC_NO_ATOMICS__) && !defined(__cplusplus) && !defined(ZPL_COMPILER_MSVC)
# include <stdatomic.h> # include <stdatomic.h>
# define zpl_atomic(X) volatile _Atomic(X) # define zpl_atomic(X) volatile _Atomic(X)
#else #else
@ -7575,6 +7575,7 @@ ZPL_END_C_DECLS
#pragma GCC diagnostic ignored "-Wmissing-braces" #pragma GCC diagnostic ignored "-Wmissing-braces"
#pragma GCC diagnostic ignored "-Wmissing-field-initializers" #pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
#endif #endif
#if defined(_MSC_VER) #if defined(_MSC_VER)
@ -16056,7 +16057,7 @@ ZPL_END_C_DECLS
#endif #endif
} }
#elif !defined(__STDC_NO_ATOMICS__) && !defined(__cplusplus) #elif !defined(__STDC_NO_ATOMICS__) && !defined(__cplusplus) && !defined(ZPL_COMPILER_MSVC)
zpl_i32 zpl_atomic32_load (zpl_atomic32 const *a) { return a->value; } zpl_i32 zpl_atomic32_load (zpl_atomic32 const *a) { return a->value; }
void zpl_atomic32_store(zpl_atomic32 *a, zpl_atomicarg(zpl_i32) value) { a->value = value; } void zpl_atomic32_store(zpl_atomic32 *a, zpl_atomicarg(zpl_i32) value) { a->value = value; }

13
code/vendors/zpl.h vendored
View File

@ -299,7 +299,7 @@ Version History:
#define ZPL_VERSION_MAJOR 10 #define ZPL_VERSION_MAJOR 10
#define ZPL_VERSION_MINOR 13 #define ZPL_VERSION_MINOR 13
#define ZPL_VERSION_PATCH 0 #define ZPL_VERSION_PATCH 1
#define ZPL_VERSION_PRE "" #define ZPL_VERSION_PRE ""
// file: zpl_hedley.h // file: zpl_hedley.h
@ -2252,8 +2252,8 @@ ZPL_DIAGNOSTIC_POP
#endif #endif
/* Architecture-specific overrides */ /* Architecture-specific overrides */
#if defined(__ARM_ARCH) #if defined(__ARM_ARCH) && !defined(__cplusplus)
// #define ZPL_DISABLE_THREADING #define ZPL_DISABLE_THREADING
#endif #endif
/* Distributions */ /* Distributions */
@ -2506,7 +2506,7 @@ defined(__ppc64__) || defined(__aarch64__)
/* Platform CPU */ /* Platform CPU */
#if defined(__arm__) || defined(__aarch64__) #if defined(__arm__) || defined(__aarch64__) || defined(__ARM_ARCH)
#ifndef ZPL_CPU_ARM #ifndef ZPL_CPU_ARM
#define ZPL_CPU_ARM 1 #define ZPL_CPU_ARM 1
#endif #endif
@ -7094,7 +7094,7 @@ ZPL_END_C_DECLS
// TODO: Be specific with memory order? // TODO: Be specific with memory order?
// e.g. relaxed, acquire, release, acquire_release // e.g. relaxed, acquire, release, acquire_release
#if !defined(__STDC_NO_ATOMICS__) && !defined(__cplusplus) #if !defined(__STDC_NO_ATOMICS__) && !defined(__cplusplus) && !defined(ZPL_COMPILER_MSVC)
# include <stdatomic.h> # include <stdatomic.h>
# define zpl_atomic(X) volatile _Atomic(X) # define zpl_atomic(X) volatile _Atomic(X)
#else #else
@ -7575,6 +7575,7 @@ ZPL_END_C_DECLS
#pragma GCC diagnostic ignored "-Wmissing-braces" #pragma GCC diagnostic ignored "-Wmissing-braces"
#pragma GCC diagnostic ignored "-Wmissing-field-initializers" #pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
#endif #endif
#if defined(_MSC_VER) #if defined(_MSC_VER)
@ -16056,7 +16057,7 @@ ZPL_END_C_DECLS
#endif #endif
} }
#elif !defined(__STDC_NO_ATOMICS__) && !defined(__cplusplus) #elif !defined(__STDC_NO_ATOMICS__) && !defined(__cplusplus) && !defined(ZPL_COMPILER_MSVC)
zpl_i32 zpl_atomic32_load (zpl_atomic32 const *a) { return a->value; } zpl_i32 zpl_atomic32_load (zpl_atomic32 const *a) { return a->value; }
void zpl_atomic32_store(zpl_atomic32 *a, zpl_atomicarg(zpl_i32) value) { a->value = value; } void zpl_atomic32_store(zpl_atomic32 *a, zpl_atomicarg(zpl_i32) value) { a->value = value; }