Thread: onwall and such
View Single Post
  #46  
Old 05-27-2006, 01:56 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Alright well, you're just getting annoying so I will have to present some cold hard facts.

PHP Code:
bool Ret(bool b) {
    return 
b;
}

int main(int argcchar *argv[]) {
    
int a;

    if(
Ret(true)) {
        
10;
    }

    return 
0;

This code (which is C), when compiled (without optimizations) and dissassembled, produces the EXACT same assembly as this code:

PHP Code:
bool Ret(bool b) {
    return 
b;
}

int main(int argcchar *argv[]) {
    
int a;

    if(
Ret(true) == true) {
        
10;
    }

    return 
0;

There is no redundant checking going on. Stop posting here.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")