mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 08:48:29 +00:00
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:
parent
96f979dfc5
commit
fa20edc44d
3057 changed files with 410 additions and 4398 deletions
1
third_party/xxhash/LICENSE
vendored
1
third_party/xxhash/LICENSE
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
xxHash Library
|
||||
Copyright (c) 2012-2021 Yann Collet
|
||||
All rights reserved.
|
||||
|
|
1
third_party/xxhash/cli/COPYING
vendored
1
third_party/xxhash/cli/COPYING
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
|
|
1
third_party/xxhash/cli/README.md
vendored
1
third_party/xxhash/cli/README.md
vendored
|
@ -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`.
|
||||
|
||||
|
|
1
third_party/xxhash/cli/xsum_arch.h
vendored
1
third_party/xxhash/cli/xsum_arch.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxhsum - Command line interface for xxhash algorithms
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xsum_bench.c
vendored
1
third_party/xxhash/cli/xsum_bench.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xsum_bench - Benchmark functions for xxhsum
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xsum_bench.h
vendored
1
third_party/xxhash/cli/xsum_bench.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xsum_bench - Benchmark functions for xxhsum
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xsum_config.h
vendored
1
third_party/xxhash/cli/xsum_config.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxhsum - Command line interface for xxhash algorithms
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xsum_os_specific.c
vendored
1
third_party/xxhash/cli/xsum_os_specific.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxhsum - Command line interface for xxhash algorithms
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xsum_os_specific.h
vendored
1
third_party/xxhash/cli/xsum_os_specific.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxhsum - Command line interface for xxhash algorithms
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xsum_output.c
vendored
1
third_party/xxhash/cli/xsum_output.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxhsum - Command line interface for xxhash algorithms
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xsum_output.h
vendored
1
third_party/xxhash/cli/xsum_output.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxhsum - Command line interface for xxhash algorithms
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xsum_sanity_check.c
vendored
1
third_party/xxhash/cli/xsum_sanity_check.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxhsum - Command line interface for xxhash algorithms
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xsum_sanity_check.h
vendored
1
third_party/xxhash/cli/xsum_sanity_check.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxhsum - Command line interface for xxhash algorithms
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/cli/xxhsum.1
vendored
1
third_party/xxhash/cli/xxhsum.1
vendored
|
@ -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
|
||||
|
|
1
third_party/xxhash/cli/xxhsum.1.md
vendored
1
third_party/xxhash/cli/xxhsum.1.md
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
xxhsum(1) -- print or check xxHash non-cryptographic checksums
|
||||
==============================================================
|
||||
|
||||
|
|
1
third_party/xxhash/cli/xxhsum.c
vendored
1
third_party/xxhash/cli/xxhsum.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxhsum - Command line interface for xxhash algorithms
|
||||
* Copyright (C) 2013-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/tests/Makefile
vendored
1
third_party/xxhash/tests/Makefile
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
# ################################################################
|
||||
# xxHash Makefile
|
||||
# Copyright (C) 2012-2021 Yann Collet
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
// clang-format off
|
||||
-I../..
|
||||
|
|
1
third_party/xxhash/tests/bench/.gitignore
vendored
1
third_party/xxhash/tests/bench/.gitignore
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
# build artifacts
|
||||
|
||||
*.o
|
||||
|
|
1
third_party/xxhash/tests/bench/LICENSE
vendored
1
third_party/xxhash/tests/bench/LICENSE
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
|
|
1
third_party/xxhash/tests/bench/Makefile
vendored
1
third_party/xxhash/tests/bench/Makefile
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
# ################################################################
|
||||
# xxHash benchHash Makefile
|
||||
# Copyright (C) 2019-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/tests/bench/benchHash.c
vendored
1
third_party/xxhash/tests/bench/benchHash.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Hash benchmark module
|
||||
* Part of the xxHash project
|
||||
|
|
1
third_party/xxhash/tests/bench/benchHash.h
vendored
1
third_party/xxhash/tests/bench/benchHash.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Hash benchmark module
|
||||
* Part of the xxHash project
|
||||
|
|
1
third_party/xxhash/tests/bench/benchfn.c
vendored
1
third_party/xxhash/tests/bench/benchfn.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Copyright (C) 2016-2021 Yann Collet, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
|
|
1
third_party/xxhash/tests/bench/benchfn.h
vendored
1
third_party/xxhash/tests/bench/benchfn.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Copyright (C) 2016-2021 Yann Collet, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
|
|
1
third_party/xxhash/tests/bench/bhDisplay.c
vendored
1
third_party/xxhash/tests/bench/bhDisplay.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* CSV Display module for the hash benchmark program
|
||||
* Part of the xxHash project
|
||||
|
|
1
third_party/xxhash/tests/bench/bhDisplay.h
vendored
1
third_party/xxhash/tests/bench/bhDisplay.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* CSV Display module for the hash benchmark program
|
||||
* Part of the xxHash project
|
||||
|
|
1
third_party/xxhash/tests/bench/hashes.h
vendored
1
third_party/xxhash/tests/bench/hashes.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* List hash algorithms to benchmark
|
||||
* Part of xxHash project
|
||||
|
|
1
third_party/xxhash/tests/bench/main.c
vendored
1
third_party/xxhash/tests/bench/main.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Main program to benchmark hash functions
|
||||
* Part of the xxHash project
|
||||
|
|
1
third_party/xxhash/tests/bench/timefn.c
vendored
1
third_party/xxhash/tests/bench/timefn.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Copyright (C) 2019-2021 Yann Collet, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
|
|
1
third_party/xxhash/tests/bench/timefn.h
vendored
1
third_party/xxhash/tests/bench/timefn.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Copyright (c) 2016-2021 Yann Collet, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
|
|
1
third_party/xxhash/tests/cli-comment-line.sh
vendored
1
third_party/xxhash/tests/cli-comment-line.sh
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
#!/bin/bash
|
||||
|
||||
# Exit immediately if any command fails.
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
// clang-format off
|
||||
#build artefacts
|
||||
collisionsTest
|
||||
|
|
1
third_party/xxhash/tests/collisions/LICENSE
vendored
1
third_party/xxhash/tests/collisions/LICENSE
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
|
|
1
third_party/xxhash/tests/collisions/Makefile
vendored
1
third_party/xxhash/tests/collisions/Makefile
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
// clang-format off
|
||||
Put in this directory all hash algorithms to test
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* dummy.c, a fake hash algorithm, just to test integration capabilities.
|
||||
* Part of the xxHash project
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* dummy.c,
|
||||
* A fake hash algorithm, just to test integration capabilities.
|
||||
|
|
1
third_party/xxhash/tests/collisions/hashes.h
vendored
1
third_party/xxhash/tests/collisions/hashes.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* List of hashes for the brute force collision tester
|
||||
* Part of xxHash project
|
||||
|
|
1
third_party/xxhash/tests/collisions/main.c
vendored
1
third_party/xxhash/tests/collisions/main.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Brute force collision tester for 64-bit hashes
|
||||
* Part of the xxHash project
|
||||
|
|
1
third_party/xxhash/tests/collisions/pool.c
vendored
1
third_party/xxhash/tests/collisions/pool.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Copyright (C) 2016-2021 Yann Collet, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
|
|
1
third_party/xxhash/tests/collisions/pool.h
vendored
1
third_party/xxhash/tests/collisions/pool.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Copyright (c) 2016-2021 Yann Collet, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
|
|
1
third_party/xxhash/tests/collisions/sort.cc
vendored
1
third_party/xxhash/tests/collisions/sort.cc
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* sort.cc - C++ sort functions
|
||||
* Copyright (C) 2019-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/tests/collisions/sort.hh
vendored
1
third_party/xxhash/tests/collisions/sort.hh
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* sort.hh - headers for C++ sort functions
|
||||
* Copyright (C) 2019-2021 Yann Collet
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/**
|
||||
* Copyright (c) 2016 Tino Reichardt
|
||||
* All rights reserved.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/**
|
||||
* Copyright (c) 2016 Tino Reichardt
|
||||
* All rights reserved.
|
||||
|
|
1
third_party/xxhash/tests/filename-escape.sh
vendored
1
third_party/xxhash/tests/filename-escape.sh
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
#!/bin/bash
|
||||
|
||||
# Exit immediately if any command fails.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Generates a Unicode test for xxhsum without using Unicode in the source files.
|
||||
*
|
||||
|
|
1
third_party/xxhash/tests/multiInclude.c
vendored
1
third_party/xxhash/tests/multiInclude.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Multi-include test program
|
||||
* Validates that xxhash.h can be included multiple times and in any order
|
||||
|
|
1
third_party/xxhash/tests/ppc_define.c
vendored
1
third_party/xxhash/tests/ppc_define.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* Multi-include test program
|
||||
* ensure that pixel, bool and vector are not redefined
|
||||
|
|
1
third_party/xxhash/tests/sanity_test.c
vendored
1
third_party/xxhash/tests/sanity_test.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
// xxHash/tests/sanity_test.c
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
//
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
typedef struct {
|
||||
XSUM_U32 len;
|
||||
XSUM_U32 seed;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
// xxHash/tests/sanity_test_vectors_generator.c
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
//
|
||||
|
|
1
third_party/xxhash/tests/unicode_lint.sh
vendored
1
third_party/xxhash/tests/unicode_lint.sh
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
#!/bin/bash
|
||||
|
||||
# `unicode_lint.sh' determines whether source files under ${dirs} directories
|
||||
|
|
1
third_party/xxhash/xxh3.h
vendored
1
third_party/xxhash/xxh3.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxHash - Extremely Fast Hash algorithm
|
||||
* Development source file for `xxh3`
|
||||
|
|
1
third_party/xxhash/xxh_x86dispatch.c
vendored
1
third_party/xxhash/xxh_x86dispatch.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
#ifdef __x86_64__
|
||||
|
||||
/*
|
||||
|
|
1
third_party/xxhash/xxh_x86dispatch.h
vendored
1
third_party/xxhash/xxh_x86dispatch.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxHash - XXH3 Dispatcher for x86-based targets
|
||||
* Copyright (C) 2020-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/xxhash.c
vendored
1
third_party/xxhash/xxhash.c
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxHash - Extremely Fast Hash algorithm
|
||||
* Copyright (C) 2012-2021 Yann Collet
|
||||
|
|
1
third_party/xxhash/xxhash.h
vendored
1
third_party/xxhash/xxhash.h
vendored
|
@ -1,4 +1,3 @@
|
|||
// clang-format off
|
||||
/*
|
||||
* xxHash - Extremely Fast Hash algorithm
|
||||
* Header File
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue