Sha256: 4510e79c3bb63a800a05ce937f5b9e0e7bae06eed20368d6eecde2682e45c750

Contents?: true

Size: 848 Bytes

Versions: 16

Compression:

Stored size: 848 Bytes

Contents

#include "upstream/xxhash.h"
#include <stdio.h>

int main() {
    unsigned char buf[4096];
    for (int i = 0; i < 4096; i++) {
        buf[i] = (unsigned char)((i+1)%251);
    }

    printf("var testVecs64 = []uint64{\n");
    for (int i = 0; i < 4096; i++) {
        if (i % 4 == 0) {
            printf("\t");
        }

        uint64_t h = XXH3_64bits(buf, (size_t)i);
        printf("0x%lx, ", h);

        if (i % 4 == 3) {
            printf("\n\t");
        }
    }
    printf("}\n\n");

    printf("var testVecs128 = [][2]uint64{\n");
    for (int i = 0; i < 4096; i++) {
        if (i % 4 == 0) {
            printf("\t");
        }

        XXH128_hash_t h = XXH3_128bits(buf, (size_t)i);
        printf("{0x%lx, 0x%lx}, ", h.high64, h.low64);

        if (i % 4 == 3) {
            printf("\n");
        }
    }
    printf("}\n\n");
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby_snowflake_client-1.3.7 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.3.6 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.3.5 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.3.4 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.3.4.pre.debug ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.3.3.pre.debug ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.3.2 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.3.1 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.3.0 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.2.1 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.2.0 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.1.1 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.1.0 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.0.2 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.0.1 ext/vendor/github.com/zeebo/xxh3/_compat.c
ruby_snowflake_client-1.0.0 ext/vendor/github.com/zeebo/xxh3/_compat.c