Files
TeslaRel410/sda4/DPL3/VRENDER/MINIMAX.C
T
CydandClaude Fable 5 db7745fcd0 sda4: commit the Glaze developer hard-drive dump
Un-ignored: the dev drive is the ground truth the restoration and
emulator work constantly reference (DPL3/LIBDPL + VRENDER i860 renderer
source, BT/RP live+dev game trees, VGL_LABS pod boot, scene/audio
content). Kept in-repo for the pod-owner community.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 19:41:15 -05:00

39 lines
550 B
C++

if (x0 < x1) {
if (x0 < x2) {
/* x0 is min */
if (x1 < x2) {
min=x0;
max=x2;
}
else {
min=x0;
max=x1;
}
}
else {
/* x2 is min, x0 < x1, so x1 is max */
min=x2;
max=x1;
}
}
else {
/* x1 < x0 */
if (x1 < x2) {
/* x1 is min , what is max */
if (x2 < x0) {
min=x1;
max=x0;
}
else {
min=x1;
max=x2;
}
}
else {
/* we know x1 < x0, x2 < x1, so x2 is min, x0 is max */
min=x2;
max=x0;
}
}