vendor/blake3: update 1.3.3 -> 1.5.0

laumann
Dec 18, 2023, 4:39 AM
AXRGU5XERPTOCA7FWEFPQV7R7YPV34V7COLGGRY6BFZ4EVEMNHMQC

Dependencies

  • [2] LZA6NGMK vendor/blake3: update 1.3.1 -> 1.3.3, fixes #1
  • [3] WCBGKFLT vendor/blake3: add missing source and header file

Change contents

  • replacement in vendor/blake3/blake3_impl.h at line 54
    [3.7096][3.7096:7126]()
    #define BLAKE3_USE_NEON 1
    [3.7096]
    [3.7126]
    #if defined(__ARM_BIG_ENDIAN)
    #define BLAKE3_USE_NEON 0
    #else
    #define BLAKE3_USE_NEON 1
    #endif
  • edit in vendor/blake3/blake3_dispatch.c at line 9
    [3.16365]
    [3.16365]
    #include <Windows.h>
  • edit in vendor/blake3/blake3_dispatch.c at line 17
    [3.16476]
    [3.16476]
    #if !defined(BLAKE3_ATOMICS)
    #if defined(__has_include)
    #if __has_include(<stdatomic.h>) && !defined(_MSC_VER)
    #define BLAKE3_ATOMICS 1
    #else
    #define BLAKE3_ATOMICS 0
    #endif /* __has_include(<stdatomic.h>) && !defined(_MSC_VER) */
    #else
    #define BLAKE3_ATOMICS 0
    #endif /* defined(__has_include) */
    #endif /* BLAKE3_ATOMICS */
  • edit in vendor/blake3/blake3_dispatch.c at line 30
    [3.16477]
    [3.16477]
    #if BLAKE3_ATOMICS
    #define ATOMIC_INT _Atomic int
    #define ATOMIC_LOAD(x) x
    #define ATOMIC_STORE(x, y) x = y
    #elif defined(_MSC_VER)
    #define ATOMIC_INT LONG
    #define ATOMIC_LOAD(x) InterlockedOr(&x, 0)
    #define ATOMIC_STORE(x, y) InterlockedExchange(&x, y)
    #else
    #define ATOMIC_INT int
    #define ATOMIC_LOAD(x) x
    #define ATOMIC_STORE(x, y) x = y
    #endif
  • replacement in vendor/blake3/blake3_dispatch.c at line 106
    [3.18180][3.18180:18229]()
    enum cpu_feature g_cpu_features = UNDEFINED;
    [3.18180]
    [3.18229]
    ATOMIC_INT g_cpu_features = UNDEFINED;
  • replacement in vendor/blake3/blake3_dispatch.c at line 114
    [3.18324][3.18324:18388]()
    if (g_cpu_features != UNDEFINED) {
    return g_cpu_features;
    [3.18324]
    [3.18388]
    /* If TSAN detects a data race here, try compiling with -DBLAKE3_ATOMICS=1 */
    enum cpu_feature features = ATOMIC_LOAD(g_cpu_features);
    if (features != UNDEFINED) {
    return features;
  • replacement in vendor/blake3/blake3_dispatch.c at line 123
    [3.18543][3.18543:18578]()
    enum cpu_feature features = 0;
    [3.18543]
    [3.18578]
    features = 0;
  • replacement in vendor/blake3/blake3_dispatch.c at line 156
    [3.19439][3.19439:19470]()
    g_cpu_features = features;
    [3.19439]
    [3.19470]
    ATOMIC_STORE(g_cpu_features, features);
  • replacement in vendor/blake3/blake3.h at line 33
    [3.23923][2.731:769]()
    #define BLAKE3_VERSION_STRING "1.3.3"
    [3.23923]
    [3.23961]
    #define BLAKE3_VERSION_STRING "1.5.0"
  • replacement in vendor/blake3/blake3.c at line 257
    [3.35669][3.35669:35748]()
    // wouldn't be able to implement exendable output.) Note that this function is
    [3.35669]
    [3.35748]
    // wouldn't be able to implement extendable output.) Note that this function is