Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C++ question

Name: Anonymous 2013-05-09 18:42

I feel like I want to write
i *= 2;
rather than
i << 1;

Is this natural for young kids my age? (+18)

Name: Anonymous 2013-05-09 18:45

i *= 2 is always faster than i << 1, proved in SICP, Satori Edition at page 53.

Name: Anonymous 2013-05-09 18:46

But i << 1 does nothing.

Name: OP 2013-05-09 18:55

i = i << 1;

That's what I meant.

Name: Anonymous 2013-05-09 18:57

>>4
Dumbass! i<<=1

Name: Anonymous 2013-05-09 21:18

Also, if N is a power of two,
n &= (N-1);
might be faster than
n %= N;
or, in languages like C99 where the sign of modulo is that of the dividend, which is completely stupid and counter-intuitive:
n = -((n % N) % -N)

Name: Anonymous 2013-05-09 21:26

>>6
my balls are a power of two

Name: Anonymous 2013-05-09 21:53

Is this natural for young kids my age? (+18)
When did you stop masturbating? Do you masturbate to filmed porn (as opposed to (eastern) drawn porn)? This is very important, please respond.

Name: Anonymous 2013-05-09 21:59

>>8
I meant "start masturbating", sorry!

Name: Anonymous 2013-05-09 22:24

LLLLLLLLEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLL
>POUNDING A PILLOW WITH A FLESHLIGHT
>OMG MFW LLEELLLLL EGGIINNNNN!!!!!

Name: Anonymous 2013-05-09 22:24

>>10
Wrong thread dude.

Name: Anonymous 2013-05-09 22:29

LLLLLLLLEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLL
>POUNDING A PILLOW WITH A FLESHLIGHT
>OMG MFW LLEELLLLL EGGIINNNNN!!!!!

Name: Anonymous 2013-05-09 22:29

>>11
suck my cock dude

Name: Anonymous 2013-05-09 22:31

>>13
Where do you want to do this?

Name: OP 2013-05-09 22:32

>>8
Started very young, have only recently started masturbating to filmed porn.
Is it bad, doc?

Name: Anonymous 2013-05-09 22:36

>>15
Then yes, if you're masturbating to filmed porn, you're slowly deteriorating your programming skills. The earlier you started, the worse it will be. If you continue, you will start liking sepples, and even worse, if you get addicted, you will like PHP or Javashit!

Please masturbate less frequently and get those hentai doujinshi ready.

Name: Anonymous 2013-05-09 22:42

>>16
 LLLLLLLLEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLL
>POUNDING A PILLOW WITH A FLESHLIGHT
>OMG MFW LLEELLLLL EGGIINNNNN!!!!!

Name: Anonymous 2013-05-09 23:01

>>6
Strength reduction has been a standard feature of C compilers for years. If I see something like this in production code today I expect there to be a comment explaining why the optimizer can't handle it.

Name: Anonymous 2013-05-09 23:06

Use monads, wiselguy.

do i >>= -1; while(0);

Name: Anonymous 2013-05-09 23:37

>>19
monads are for gonads

Don't change these.
Name: Email:
Entire Thread Thread List