You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's an (arguably ugly) way to do statically unrolled loops, but which could be very useful in practice:
Define a new preprocessor macro:
#for i (min, max, step)
body
#endfor i
This is expanded by the preprocessor into:
#define i min
#line original
body
#undef i
#define i (min + step)
#line original
body
...
#undef i
#define i (min + ((max - min) / step) * step)
#line original
body
#undef i
The text was updated successfully, but these errors were encountered:
In the interest of tidying up the set of active issues on the P4 specification repository, I'm marking this as "stalled" and closing it. Of course, we can always re-open it in the future if there is interest in resurrecting it.
Also, we have other issues like #1261 addressing finer-grained proposals.
Personnel
Design
Implementation
p4-spec
:p4c
:Process
p4-spec
:p4c
:Here's an (arguably ugly) way to do statically unrolled loops, but which could be very useful in practice:
Define a new preprocessor macro:
This is expanded by the preprocessor into:
The text was updated successfully, but these errors were encountered: