Vivek Tyagi, Hima P. Karanam, et al.
ICPR 2012
Implementors of graphics application programming interfaces (APIs) and algorithms are often required to support a plethora of options for several stages at the back end of the geometry and rasterization pipeline. Implementing these options in high-level programming languages such as C leads to code with many branches and large object modules due to indiscriminate duplication of very similar code. This reduces the speed of execution of the program. This paper examines the problems of branches and code size in detail and presents techniques for transforming typical code sequences in graphics programs to reduce the number of branches and to reduce to the size of the program. A set of branch-free basis functions is defined first. The application of these functions to common geometric queries, geometry pipeline computations, rasterization, and pixel processing algorithms is then discussed.
Vivek Tyagi, Hima P. Karanam, et al.
ICPR 2012
Jehanzeb Mirza, Leonid Karlinsky, et al.
NeurIPS 2023
David B. Mayer, Ashford W. Stalnaker
ACM SIGMIS CPR 1967
Jakud Wejcmeitt, David Haumann
SIGGRAPH 1991