summaryrefslogtreecommitdiff
path: root/AK/BuiltinWrappers.h
AgeCommit message (Collapse)Author
2022-12-13AK: Fix build with !USING_AK_GLOBALLYAli Mohammad Pur
A couple headers expected names to be in the global namespace, qualify those names to make sure they're resolved even when the names are not exported. One header placed its functions in the global namespace, move those to the AK namespace to make the concepts resolve.
2022-12-02AK: Implement FloatExtractor<f128>Steffen Rusitschka
This patch adds support for 128-bit floating points in FloatExtractor. This is required to build SerenityOS on MacOS/aarch64. It might break building for Raspberry Pi.
2022-10-04AK+Everywhere: Add AK_COMPILER_{GCC,CLANG} and use them most placesNico Weber
Doesn't use them in libc headers so that those don't have to pull in AK/Platform.h. AK_COMPILER_GCC is set _only_ for gcc, not for clang too. (__GNUC__ is defined in clang builds as well.) Using AK_COMPILER_GCC simplifies things some. AK_COMPILER_CLANG isn't as much of a win, other than that it's consistent with AK_COMPILER_GCC.
2022-07-31AK: Fix usage of undefined variablesFiliph Sandström
The commit that introduced BuiltinWrappers (548529a) accidentally used `val` instead of `value` in the non `__GNUC__` and `__clang__` versions of the functions.
2021-12-21AK+Everywhere: Replace __builtin bit functionsNick Johnson
In order to reduce our reliance on __builtin_{ffs, clz, ctz, popcount}, this commit removes all calls to these functions and replaces them with the equivalent functions in AK/BuiltinWrappers.h.
2021-12-18AK: Add BuiltinWrappers.hNick Johnson
The goal of this file is to enable C++ overloaded functions for standard builtin functions that we use. It contains fallback implementations for systems that do not have the builtins available.