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

abs()

Name: Anonymous 2008-09-27 21:40

which is faster, /prog/?

const int SIZE_OF_DOUBLE = sizeof(double) * 8;
double absoluteValue = (double)(bitset<SIZE_OF_DOUBLE>((unsigned long)value).set(SIZE_OF_DOUBLE - 1, 0).to_ulong());


VS.

double absoluteValue = abs(value);

OR

is there an easier way to unset a double-precision value's sign bit?

Name: Anonymous 2008-09-30 14:31

>>39
YHBT

Name: Anonymous 2008-09-30 18:08

Use XOR for "EXTREME PERFORMANCE''.

Name: Anonymous 2008-10-01 10:21

>>40
Hot

Name: Anonymous 2008-10-01 23:45

>>42
EXTREME OR

Name: Anonymous 2008-10-02 4:38

>>44
HAX OR

Name: Anonymous 2008-10-02 10:32

>>45
HAXOR MY ANUS

Name: Anonymous 2008-10-02 10:56

I could swear I've seen this movie already.

Name: Anonymous 2008-10-02 11:18

>>1
Wow. This is truely expert programmer quality. Always treat the compiler designers as incompetent shitnuggets and write your own OMG OPTIMIZED solutions. Paying attention to the efficiency and complexity of your own code is secondary. You guys should start writing malloc() and new implementations of your own to keep yourselves as far as possible from any real work.

Name: Anonymous 2008-10-02 15:08

>>48
OP will be an asset to the Anonix development effort.

Name: Anonymous 2008-10-02 15:25

>>49
Negative, the OP uses bloated C++ standard library.

Name: Anonymous 2008-10-02 16:40

>>50
you just proved >>49's point

Name: Anonymous 2008-10-02 16:44

>>48
B-but writing a custom malloc can improve performance a lot!

Name: Anonymous 2008-10-03 18:40

>>48
Delivers both lulz and truth

Name: Anonymous 2008-10-03 23:20

In machine language we determine signs of numbers with one instruction.

Name: Anonymous 2008-10-04 2:21

>>54
most instructions will tell you the sign of its results, for x86 anyway

Name: Anonymous 2008-10-04 2:45

>>37
moar famous transsexuals than famous women, lol

Name: Anonymous 2011-02-03 7:18

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