make/gcc.mk@dfc0ddd9571e
make/gcc.mk
Sun, 23 Nov 2025 13:15:19 +0100
- author
- Mike Becker <universe@uap-core.de>
- date
- Sun, 23 Nov 2025 13:15:19 +0100
- changeset 1508
- dfc0ddd9571e
- parent 1311
-
7072b20aa51f
- permissions
- -rw-r--r--
optimize sorted insertion by using the infimum instead of the supremum
The reason is that the supremum returns the equal element with the smallest index, and we want the largest.
Therefore, we use the infimum, which already gives us the largest index when there are equal elements, and increase the index by one. The infimum is also guaranteed to exist in that case.
#
# gcc toolchain config
#
CFLAGS =
CXXFLAGS = -fpermissive
DEBUG_CFLAGS = -g -Wall -Wextra -pedantic
RELEASE_CFLAGS = -O3 -DNDEBUG
LDFLAGS =
SHLIB_CFLAGS = -fPIC
SHLIB_LDFLAGS = -shared
COVERAGE_CFLAGS = --coverage -DNDEBUG
COVERAGE_LDFLAGS = --coverage