if (lasta == 0) {
};
if (lasta == 1) {
Prl += 1;
};
if (lasta == 2) {
Prl += 2;
};
if (lasta == 3) {
Prl += 3;
};
if (lasta == 4) {
Prl += 4;
};
if (lasta == 5) {
Prl += 5;
};
if (lasta == 6) {
Prl += 6;
};
if (lasta == 7) {
Prl += 7;
};
if (lasta == 8) {
Prl += 8;
};
if (lasta == 9) {
Prl += 9;
};
if (lasta == 10) {
Prl += 10;
};
you want to have fun with the branch predictor (?
I saw people doing that and I wonder why
Actually, compiler will likely optimize this to be one check and addition
Yes , because they smart in thier own way , i am joking , that is simpler than for and dont add counter , if you want realy efficient program you will use that.
I don't understand why it's faster
Or even more efficient
It is cheaper because you do nit need for counter , and you dont need jump command Only if you write super duper effcient you will do that
it's a lot more instructions
I am not assembly guy.
Обсуждают сегодня