[libc][NFC] split standalone_cpp into single headersPreviously, the entire support/CPP folder was in one header library,which meant that a lot of headers were included where they shouldn't be.Thi
[libc][NFC] split standalone_cpp into single headersPreviously, the entire support/CPP folder was in one header library,which meant that a lot of headers were included where they shouldn't be.This patch splits each header into its own target, as well as adjustingeach place they were included to only include what is used.Reviewed By: sivachandra, lntueDifferential Revision: https://reviews.llvm.org/D121237
show more ...
[libc] apply new lint rulesThis patch applies the lint rules described in the previous patch. Therewas also a significant amount of effort put into manually fixing things,since all of the templat
[libc] apply new lint rulesThis patch applies the lint rules described in the previous patch. Therewas also a significant amount of effort put into manually fixing things,since all of the templated functions, or structs defined in /spec, werenot updated and had to be handled manually.Reviewed By: sivachandra, lntueDifferential Revision: https://reviews.llvm.org/D114302
[libc][Obvious][NFC] A bunch of cosmetic cleanup.* Added missing header guards.* Fixed license header format in a few files.* Renamed files to more suitable names.
[libc][NFC] Move utils/CPP to src/__support/CPP.The idea is to move all pieces related to the actual libc sources to the"src" directory. This allows downstream users to ship and build just the"sr
[libc][NFC] Move utils/CPP to src/__support/CPP.The idea is to move all pieces related to the actual libc sources to the"src" directory. This allows downstream users to ship and build just the"src" directory.Reviewed By: michaelrjDifferential Revision: https://reviews.llvm.org/D112653
[libc][nfc] move ctype_utils and FPUtils to __supportSome ctype functions are called from other libc functions (e.g. isspaceis used in atoi). By moving ctype_utils.h to __support it becomes easier
[libc][nfc] move ctype_utils and FPUtils to __supportSome ctype functions are called from other libc functions (e.g. isspaceis used in atoi). By moving ctype_utils.h to __support it becomes easierto include just the implementations of these functions. For thesereasons the implementation for isspace was moved intoctype_utils as well.FPUtils was moved to simplify the build order, and to clarify whichfiles are a part of the actual libc.Many files were modified to accomodate these changes, mostly changingthe #include paths.Reviewed By: sivachandraDifferential Revision: https://reviews.llvm.org/D107600
[libc] Make FPBits a union.This helps us avoid the uncomfortable reinterpret-casts. Avoiding thereinterpret casts prevents us from tripping the sanitizers as well.Reviewed By: lntueDifferentia
[libc] Make FPBits a union.This helps us avoid the uncomfortable reinterpret-casts. Avoiding thereinterpret casts prevents us from tripping the sanitizers as well.Reviewed By: lntueDifferential Revision: https://reviews.llvm.org/D100360
[libc] Add implementations of nextafter[f|l] functions.A differential fuzzer for these functions has also been added.Along the way, a small correction has been done to the normal/subnormallimits
[libc] Add implementations of nextafter[f|l] functions.A differential fuzzer for these functions has also been added.Along the way, a small correction has been done to the normal/subnormallimits of x86 long double values.Reviewed By: lntueDifferential Revision: https://reviews.llvm.org/D94109
[libc] Combine all math differential fuzzers into one target.Also added diffing of a few more math functions. Combining the diff checkfor all of these functions helps us meet the OSS fuzz bar of a
[libc] Combine all math differential fuzzers into one target.Also added diffing of a few more math functions. Combining the diff checkfor all of these functions helps us meet the OSS fuzz bar of a minimum of100 program edges.Reviewed By: lntueDifferential Revision: https://reviews.llvm.org/D91817
[libc] Add differential fuzzers for ldexp and remquo.Reviewed By: lntueDifferential Revision: https://reviews.llvm.org/D91763