Code: Select all
program MyProject;
// comparison of simple math efficiency, score's are in cpu-cycles
var r_a,r_b,r_c : real;
begin // P18 P33 P32MX
r_a := 1.23456; // 10 15 3
r_b := 98765.4321* tmr2; // 116 229 55
r_c := r_a / r_b; // 50 400 36
r_c := r_a * r_b; // 48 128 35
r_c := tan(r_a); // 10932 9208 3195
end.