Please help me understand this code

I would probably use an FPGA