summaryrefslogtreecommitdiff
path: root/AK/NumericLimits.h
AgeCommit message (Collapse)Author
2021-11-14AK: Use proper type for bool NumericLimits::min and max specializationAndrew Kaster
We had these declared as returning char, which looks like a copy paste error. Found by clang-tidy.
2021-05-22AK/NumericLimits: Add `lowest()` for floating-point typesJelle Raaijmakers
2021-05-08AK: Add epsilon() to NumericLimits for float, double, long doubleStephan Unverwerth
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2020-09-29AK: Add NumericLimits specialization for char.asynts
This is yet another bug because of the 'char'/'signed char'/'unsigned char' shit.
2020-07-18AK: Use "signed char" as the opposite of "unsigned char"Andreas Kling
I totally forgot about the C++ basics here. There are three distinct types: "char", "signed char" and "unsigned char". Whether "char" is signed or unsigned is implementation specific.
2020-05-23AK: Allow NumericLimits.h to compile in a kernel contextAndreas Kling
We explicitly disallow floating point numbers during kernel compilation so we have to #ifdef out those parts here.
2020-04-15AK: Add a simple NumericLimits<T> templateAndreas Kling
This provides min(), max() and is_signed() for the basic integer types.