Optimised version of Weiler-Atherton for rectangular clipping presented by
[AK87] A. Kilgour. Unifying vector and polygon algorithms for scan conversion and clipping. Proceedings of Eurographics '87, pages 363—375. 8/1987.
[PM92] Patrick-Gilles Maillot. A New, Fast Method For 2D Polygon Clipping: Analysis and Software Implementation. ACM Transactions on Graphics, 11(3):276—290, 3/7/1992.
According to Eric Haines in Ray Tracing News Vol 10 No 3, Dr David Rogers mentions in his book Procedural Elements for Computer Graphics (2nd ed.) that Liang-Barsky is a special case of Cyrus-Beck.
No dynamic memory allocation required.