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

long doubles

Name: Anonymous 2011-08-13 11:42


int main(void)
{
    long double test = 1;
    test <<= 1E1L;
    return 0;
}

test@test:~/test$ gcc -ansi -pedantic -Wall -O0 -o test test.c
test.c: In function ‘main’:
test.c:35:7: error: invalid operands to binary << (have ‘long double’ and ‘long double’)


So there is no way I can bit-shift the damn long double's?

Name: Anonymous 2011-08-13 15:10

>>8
If you're trying to take advantage of your architecture's extra-long floating-point registers that's a fucking fail on so many levels. Two things you want to avoid is writing the value out to memory, and manipulating the values using the integer instructions (in integer registers).

You're a long way off from attempting any kinds of architecture-specific optimizations. You're not even ready to crawl, stuck in the shitting-your-pants phase.

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