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 */
/*===-- absvdi2.c - Implement __absvdi2 -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- absvsi2.c - Implement __absvsi2 -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- absvti2.c - Implement __absvdi2 -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/adddf3.c - Double-precision addition ------------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/addsf3.c - Single-precision addition ------------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/addtf3.c - Quad-precision addition --------------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ====-- ashldi3.c - Implement __ashldi3 -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*===-- ashrdi3.c - Implement __ashrdi3 -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- ashrti3.c - Implement __ashrti3 -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- assembly.h - compiler-rt assembler support macros -----------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- bswapdi2.c - Implement __bswapdi2 ---------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- bswapsi2.c - Implement __bswapsi2 ---------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- clzdi2.c - Implement __clzdi2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- clzsi2.c - Implement __clzsi2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- clzti2.c - Implement __clzti2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- cmpdi2.c - Implement __cmpdi2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- cmpti2.c - Implement __cmpti2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/comparedf2.c - Double-precision comparisons -----------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/comparesf2.c - Single-precision comparisons -----------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- ctzdi2.c - Implement __ctzdi2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- ctzsi2.c - Implement __ctzsi2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- ctzti2.c - Implement __ctzti2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- divdc3.c - Implement __divdc3 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/divdf3.c - Double-precision division ------------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- divdi3.c - Implement __divdi3 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*===-- divmoddi4.c - Implement __divmoddi4 --------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*===-- divmodsi4.c - Implement __divmodsi4 --------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*===-- divsc3.c - Implement __divsc3 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/divsf3.c - Single-precision division ------------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- divsi3.c - Implement __divsi3 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*===-- divtc3.c - Implement __divtc3 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/divtf3.c - Quad-precision division --------------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- divxc3.c - Implement __divxc3 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/extenddftf2.c - double -> quad conversion -------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/extendhfsf2.c - half -> single conversion -------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/extendsfdf2.c - single -> double conversion -----------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/extendsftf2.c - single -> quad conversion -------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- ffsdi2.c - Implement __ffsdi2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- ffssi2.c - Implement __ffssi2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- ffsti2.c - Implement __ffsti2 -------------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixdfdi.c - Implement __fixdfdi -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixdfsi.c - Implement __fixdfsi -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixdfti.c - Implement __fixdfti -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixsfdi.c - Implement __fixsfdi -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixsfsi.c - Implement __fixsfsi -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixsfti.c - Implement __fixsfti -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixtfdi.c - Implement __fixtfdi -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixtfsi.c - Implement __fixtfsi -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixtfti.c - Implement __fixtfti -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunsdfdi.c - Implement __fixunsdfdi -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunsdfsi.c - Implement __fixunsdfsi -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunsdfti.c - Implement __fixunsdfti -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunssfdi.c - Implement __fixunssfdi -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunssfsi.c - Implement __fixunssfsi -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunssfti.c - Implement __fixunssfti -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunstfdi.c - Implement __fixunstfdi -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunstfsi.c - Implement __fixunstfsi -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunstfsi.c - Implement __fixunstfsi -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunsxfdi.c - Implement __fixunsxfdi -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunsxfsi.c - Implement __fixunsxfsi -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixunsxfti.c - Implement __fixunsxfti -----------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixxfdi.c - Implement __fixxfdi -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- fixxfti.c - Implement __fixxfti -----------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*===-- floatdidf.c - Implement __floatdidf -------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*===-- floatdisf.c - Implement __floatdisf -------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floatditf.c - integer -> quad-precision conversion ----*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- floatdixf.c - Implement __floatdixf -------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floatsidf.c - integer -> double-precision conversion --*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floatsisf.c - integer -> single-precision conversion --*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floatsitf.c - integer -> quad-precision conversion ----*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- floattidf.c - Implement __floattidf -------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- floattisf.c - Implement __floattisf -------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floattitf.c - int128 -> quad-precision conversion -----*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- floattixf.c - Implement __floattixf -------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- floatundidf.c - Implement __floatundidf ---------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/*===-- floatundisf.c - Implement __floatundisf ---------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floatunditf.c - uint -> quad-precision conversion -----*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- floatundixf.c - Implement __floatundixf ---------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floatunsidf.c - uint -> double-precision conversion ---*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floatunsisf.c - uint -> single-precision conversion ---*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floatunsitf.c - uint -> quad-precision conversion -----*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- floatuntidf.c - Implement __floatuntidf ---------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- floatuntisf.c - Implement __floatuntisf ---------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/floatuntitf.c - uint128 -> quad-precision conversion --*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- floatuntixf.c - Implement __floatuntixf ---------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===----- lib/fp_add_impl.inc - floaing point addition -----------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-lib/fp_extend.h - low precision -> high precision conversion -*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//=-lib/fp_extend_impl.inc - low precision -> high precision conversion -*-- -//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/fixdfsi.c - Double-precision -> integer conversion ----*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/fixdfsi.c - Double-precision -> integer conversion ----*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===-- lib/fp_lib.h - Floating-point utilities -------------------*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//===---- lib/fp_mul_impl.inc - floating point multiplication -----*- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//= lib/fp_trunc_impl.inc - high precision -> low precision conversion *-*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//=== lib/fp_trunc.h - high precision -> low precision conversion *- C -*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
//= lib/fp_trunc_impl.inc - high precision -> low precision conversion *-*-===//
//
// The LLVM Compiler Infrastructure

View file

@ -35,7 +35,6 @@ asm(".ident\t\"\\n\\n\
Musl libc (MIT License)\\n\
Copyright 2005-2014 Rich Felker, et. al.\"");
asm(".include \"libc/disclaimer.inc\"");
// clang-format off
/**
* Returns log𝑥 exponent part of double.

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- int_endianness.h - configuration header for compiler-rt ------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- int_lib.h - configuration header for compiler-rt -----------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- int_math.h - internal math inlines ---------------------------------===
*
* The LLVM Compiler Infrastructure

View file

@ -1,4 +1,3 @@
/* clang-format off */
/* ===-- int_lib.h - configuration header for compiler-rt -----------------===
*
* The LLVM Compiler Infrastructure

Some files were not shown because too many files have changed in this diff Show more