C++ Logo

std-proposals

Advanced search

Re: [std-proposals] A draft for modern switch

From: Zhihao Yuan <zy_at_[hidden]>
Date: Sat, 24 May 2025 06:13:54 +0000
On Friday, May 23rd, 2025 at 7:27 PM, Jason McKesson via Std-Proposals <std-proposals_at_[hidden]> wrote:
>

> I guess that depends on what you mean by "jump table". I've always
> understood that term to refer to an array of pointers to various
> locations in code, with the indices in that table representing
> something in particular.
>

> [...]
>

> The code being jumped into is not the table. It's just code.
>


I apologize. "Multiway branch" seems to be the
right term https://www.researchgate.net/publication/245584786_A_Superoptimizer_Analysis_of_Multiway_Branch_Code_Generation

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
_______________________________________________

Received on 2025-05-24 06:14:05