Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
3fdc01dcd0
[common] Use U8 for colour of RB-tree instead of integer to save space
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2025-08-09 02:11:52 +01:00

View file

@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2002 Niels Provos <provos@citi.umich.edu>
// SPDX-License-Identifier: BSD-2-Clause
@ -21,9 +23,11 @@
* The maximum height of a red-black tree is 2lg (n+1).
*/
#include <cstdint>
namespace Common::freebsd {
enum class RBColor {
enum class RBColor : std::uint8_t {
RB_BLACK = 0,
RB_RED = 1,
};