ladybird/Kernel/Devices
Lenny Maiorani 5751327195 Kernel: static vs non-static constexpr variables
Problem:
- `static` variables consume memory and sometimes are less
  optimizable.
- `static const` variables can be `constexpr`, usually.
- `static` function-local variables require an initialization check
  every time the function is run.

Solution:
- If a global `static` variable is only used in a single function then
  move it into the function and make it non-`static` and `constexpr`.
- Make all global `static` variables `constexpr` instead of `const`.
- Change function-local `static const[expr]` variables to be just
  `constexpr`.
2021-05-19 21:21:47 +01:00
..
HID Kernel: static vs non-static constexpr variables 2021-05-19 21:21:47 +01:00
USB Kernel: Fix UHCIController singleton startup null-deref race condition. 2021-05-15 09:46:41 +02:00
AsyncDeviceRequest.cpp Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
AsyncDeviceRequest.h Kernel: Make UserOrKernelBuffer R/W helpers return KResultOr<size_t> 2021-05-13 23:28:40 +02:00
BlockDevice.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
BlockDevice.h Kernel: Mark AsyncBlockDeviceRequest + AnonymousVMObject as final 2021-05-03 16:03:17 +02:00
CharacterDevice.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CharacterDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Device.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Device.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
FullDevice.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FullDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
MemoryDevice.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
MemoryDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
NullDevice.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
NullDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PCISerialDevice.cpp Kernel: Add support for multiple serial ports per device 2021-05-18 16:31:39 +02:00
PCISerialDevice.h Kernel: Add support for QEMU's emulated pci serial (-pci-serial option) 2021-05-17 19:45:35 +01:00
PCSpeaker.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PCSpeaker.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
RandomDevice.cpp Kernel: Make UserOrKernelBuffer R/W helpers return KResultOr<size_t> 2021-05-13 23:28:40 +02:00
RandomDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
SB16.cpp Kernel: Make AnonymousVMObject physical page APIs OOM safe 2021-05-15 09:01:32 +02:00
SB16.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
SerialDevice.cpp Kernel: Fix subtle race condition in sys$write implementation 2021-05-18 16:33:15 +02:00
SerialDevice.h Kernel: Fix subtle race condition in sys$write implementation 2021-05-18 16:33:15 +02:00
VMWareBackdoor.cpp Kernel: Remove unused header includes from various files. 2021-05-03 16:03:17 +02:00
VMWareBackdoor.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ZeroDevice.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ZeroDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00