Reduce header complexity

- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
This commit is contained in:
Justine Tunney 2023-11-28 14:24:28 -08:00
parent 96f979dfc5
commit fa20edc44d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3057 changed files with 410 additions and 4398 deletions

View file

@ -1,4 +1,3 @@
// clang-format off
xxHash Library
Copyright (c) 2012-2021 Yann Collet
All rights reserved.

View file

@ -1,4 +1,3 @@
// clang-format off
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

View file

@ -1,4 +1,3 @@
// clang-format off
This directory contains source code dedicated to the `xxhsum` command line utility,
which is a user program of `libxxhash`.

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxhsum - Command line interface for xxhash algorithms
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xsum_bench - Benchmark functions for xxhsum
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xsum_bench - Benchmark functions for xxhsum
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxhsum - Command line interface for xxhash algorithms
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxhsum - Command line interface for xxhash algorithms
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxhsum - Command line interface for xxhash algorithms
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxhsum - Command line interface for xxhash algorithms
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxhsum - Command line interface for xxhash algorithms
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxhsum - Command line interface for xxhash algorithms
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxhsum - Command line interface for xxhash algorithms
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
.TH "XXHSUM" "1" "December 2021" "xxhsum 0.8.1" "User Commands"
.SH "NAME"
\fBxxhsum\fR \- print or check xxHash non\-cryptographic checksums

View file

@ -1,4 +1,3 @@
// clang-format off
xxhsum(1) -- print or check xxHash non-cryptographic checksums
==============================================================

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxhsum - Command line interface for xxhash algorithms
* Copyright (C) 2013-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
# ################################################################
# xxHash Makefile
# Copyright (C) 2012-2021 Yann Collet

View file

@ -1,2 +1 @@
// clang-format off
-I../..

View file

@ -1,4 +1,3 @@
// clang-format off
# build artifacts
*.o

View file

@ -1,4 +1,3 @@
// clang-format off
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

View file

@ -1,4 +1,3 @@
// clang-format off
# ################################################################
# xxHash benchHash Makefile
# Copyright (C) 2019-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Hash benchmark module
* Part of the xxHash project

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Hash benchmark module
* Part of the xxHash project

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Copyright (C) 2016-2021 Yann Collet, Facebook, Inc.
* All rights reserved.

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Copyright (C) 2016-2021 Yann Collet, Facebook, Inc.
* All rights reserved.

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* CSV Display module for the hash benchmark program
* Part of the xxHash project

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* CSV Display module for the hash benchmark program
* Part of the xxHash project

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* List hash algorithms to benchmark
* Part of xxHash project

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Main program to benchmark hash functions
* Part of the xxHash project

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Copyright (C) 2019-2021 Yann Collet, Facebook, Inc.
* All rights reserved.

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Copyright (c) 2016-2021 Yann Collet, Facebook, Inc.
* All rights reserved.

View file

@ -1,4 +1,3 @@
// clang-format off
#!/bin/bash
# Exit immediately if any command fails.

View file

@ -1,3 +1,2 @@
// clang-format off
#build artefacts
collisionsTest

View file

@ -1,4 +1,3 @@
// clang-format off
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

View file

@ -1,4 +1,3 @@
// clang-format off
# Brute force collision tester for 64-bit hashes
# Part of xxHash project
# Copyright (C) 2019-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
__collisionsTest__ is a brute force hash analyzer
which will measure a 64-bit hash algorithm's collision rate

View file

@ -1,2 +1 @@
// clang-format off
Put in this directory all hash algorithms to test

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* dummy.c, a fake hash algorithm, just to test integration capabilities.
* Part of the xxHash project

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* dummy.c,
* A fake hash algorithm, just to test integration capabilities.

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* List of hashes for the brute force collision tester
* Part of xxHash project

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Brute force collision tester for 64-bit hashes
* Part of the xxHash project

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Copyright (C) 2016-2021 Yann Collet, Facebook, Inc.
* All rights reserved.

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Copyright (c) 2016-2021 Yann Collet, Facebook, Inc.
* All rights reserved.

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* sort.cc - C++ sort functions
* Copyright (C) 2019-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* sort.hh - headers for C++ sort functions
* Copyright (C) 2019-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/**
* Copyright (c) 2016 Tino Reichardt
* All rights reserved.

View file

@ -1,4 +1,3 @@
// clang-format off
/**
* Copyright (c) 2016 Tino Reichardt
* All rights reserved.

View file

@ -1,4 +1,3 @@
// clang-format off
#!/bin/bash
# Exit immediately if any command fails.

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Generates a Unicode test for xxhsum without using Unicode in the source files.
*

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Multi-include test program
* Validates that xxhash.h can be included multiple times and in any order

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* Multi-include test program
* ensure that pixel, bool and vector are not redefined

View file

@ -1,4 +1,3 @@
// clang-format off
// xxHash/tests/sanity_test.c
// SPDX-License-Identifier: GPL-2.0-only
//

View file

@ -1,4 +1,3 @@
// clang-format off
typedef struct {
XSUM_U32 len;
XSUM_U32 seed;

View file

@ -1,4 +1,3 @@
// clang-format off
// xxHash/tests/sanity_test_vectors_generator.c
// SPDX-License-Identifier: GPL-2.0-only
//

View file

@ -1,4 +1,3 @@
// clang-format off
#!/bin/bash
# `unicode_lint.sh' determines whether source files under ${dirs} directories

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxHash - Extremely Fast Hash algorithm
* Development source file for `xxh3`

View file

@ -1,4 +1,3 @@
// clang-format off
#ifdef __x86_64__
/*

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxHash - XXH3 Dispatcher for x86-based targets
* Copyright (C) 2020-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxHash - Extremely Fast Hash algorithm
* Copyright (C) 2012-2021 Yann Collet

View file

@ -1,4 +1,3 @@
// clang-format off
/*
* xxHash - Extremely Fast Hash algorithm
* Header File