Just had an autism attack over this shit

i fucking hate cs

Attached: Screenshot_20181220_113057.png (1920x1080, 582K)

Other urls found in this thread:

en.wikipedia.org/wiki/Fast_inverse_square_root
twitter.com/AnonBabble

it's not even real you fucktard

()
{

}

Attached: 1524202843656.jpg (489x488, 41K)

(){

}
ftfy

> if(a > b && b < a)

Attached: eb8d53c6-8e36-4b29-ab7d-1ce261cd849c.png (545x440, 58K)

that's how you are supposed to write functions

that is used for loops

who else
() {

}
else {

}

here?

(){};

Attached: ps1540_2.gif (650x450, 70K)

calm down satan

// Hey guys :D
// Hope you're enjoying my code
// This is a simple (else) if statement, to check whether a condition is true or not
// if it's true, it will return true
// if it's false, it will return false
// if you have any questions, feel free to contact me on facebook. I promise I won't bite XD

// Here it goes!

// check if the condition is true
if (condition == true)
{
// make sure the condition is true, by checking if it's not false
// always be safe :)
// != means not equal fyi ;)
if (condition != false)
{
// create boolean x
// a boolean can be true or false
bool x;
// set x to true, because the condition is true
x = true;
// return x, which is true
return x;
}
}
// check if the condition is false
// only checks, if the condition isn't true
// after all, we want our code to be optimized :)
else if (condition == false)
{
// make sure the condition is false, by checking if it's not true
if (condition != true)
{
// create boolean y
// be sure to use another letter
// we don't want others to mix it up with x
bool y;
// set y to false, because the condition is false
y = false;
// return y, which is false
return y;
}
}

#define MAX(A,B) (((A)>(B))?(A):(B))

post the original code at least...
en.wikipedia.org/wiki/Fast_inverse_square_root
float Q_rsqrt( float number )
{
long i;
float x2, y;
const float threehalfs = 1.5F;

x2 = number * 0.5F;
y = number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
// y = y * ( threehalfs - ( x2 * y * y ) ); // 2nd iteration, this can be removed

return y;
}

(){} else {}
>Jow Forums setup threads
>fags with 4 wide monitors side to side
>not coding the obvious way

Attached: 1538342197917.png (581x480, 318K)

Just do it like any sane person, nigger.
void foo()
{
for(int i=0; i < 10; i++) {
printf("Hello World\n");
}
return 0;
}

I had to review a PR the other week that was nothing but the change from
if (true) {
// ...
}
else {
// ...
}
to
if (true) {
// ...
} else {
// ...
}
repeated across 80 files.

itt: incels in mt. stupid sperg over faked shit code

Attached: stupid.png (613x481, 36K)

>This function returns an int ;D
kill it with fire

FUCKING THIS!

Why would you need a macro for such trivial shit?

we need to standardize return code 5

A sane person won't use {} on a single statement

thats pretty bad, I consistently do top

These.
>inb4 no one cares and thread fills up with circle jerk.

its quakes inverse square root approximation function and its the most legendary algorithm in all of CG history you retards

talking about the "klossy" kode and the recreation op wrote in his autism
also it's not the most legendary lol

A single statement can easily grow into multiple statements. Better safe than sorry.

astyle for C lang formats both
if (foo)
doFoo();
else
doElse();

and
if (foo) {
doFoo();
}
else {
doElse();
}

to
if (foo) {
doFoo();
} else {
doElse();
}

eewwww
if (is_faggot(OP)){
post("OP sucks cocks");
}else{
post("Disregard that, I suck cocks");
}

disgusting.
if(is_faggot(OP)){post("OP sucks cocks");}else{post("Disregard that, I suck cocks");}

only if ur coding is cock

() {

}

because it's such trivial shit you dip

bow before my code style you cretins
Fag op = new Fag();
if ( op.isGettingAssFucked() )
{
op.dieOfAids();
}
else { return op.face.accept(new Cumshot()) }

Attached: 1512606847287.jpg (736x936, 116K)

Try playing some Battle Royale instead, senpai.

its a bit to compact to my liking
spaces are not the enemy, user

use allman style FGJ...