Research Article

On the Feasibility and Limitations of Just-in-Time Instruction Set Extension for FPGA-Based Reconfigurable Processors

Listing 1

Part of the raytracing source code.
(1) bool hitSphere (const ray &r, const sphere& s..)
(2) {
(3)
(4) vecteur dist = s.pos - r.start;
(5) float B = rdx * dx + rdy * dy + rdz * dz;
(6) float D = B * B dist * dist + s.size * s.size;
(7) if (D < 0.0f) return false;
(8)
(9) }