2 ms·
In the C backend at least, it appears to cast to an int, perform the bitwise operations, and then cast back. Just trying it out now, the function: int foo(i
by _delirium 17y ago
In the C backend at least, it appears to cast to an int, perform the bitwise operations, and then cast back.
Just trying it out now, the function:
int foo(int bar)
{
return bar & 0x01;
}
compiles to:
clue_real_t _foo(clue_real_t fp, clue_optr_t stack, clue_real_t FLOAT0) {
clue_real_t sp;
clue_real_t FLOAT1;
clue_real_t FLOAT2;
sp = 0;
sp = fp + sp;
FLOAT1 = 1;
FLOAT2 = (clue_realint_t) FLOAT0 & (clue_realint_t) FLOAT1;
return FLOAT2;
}