#include <stdio.h>
float funky_float_abs(float a);
int main(void) {
float temp = -1.333;
temp = funky_float_abs(temp);
return 0;
}
float funky_float_abs(float a)
{
unsigned int temp = *(unsigned int*)&a;
temp = temp & 0x7fffffff;
return *(float*)&temp;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpmbG9hdCBmdW5reV9mbG9hdF9hYnMoZmxvYXQgYSk7CgppbnQgbWFpbih2b2lkKSB7CgoJZmxvYXQgdGVtcCA9IC0xLjMzMzsKCQoJdGVtcCA9IGZ1bmt5X2Zsb2F0X2Ficyh0ZW1wKTsKCXByaW50ZigiJWYiLCB0ZW1wKTsKCQoJcmV0dXJuIDA7Cn0KCgoKZmxvYXQgZnVua3lfZmxvYXRfYWJzKGZsb2F0IGEpCnsKCXVuc2lnbmVkIGludCB0ZW1wID0gKih1bnNpZ25lZCBpbnQqKSZhOwoJdGVtcCA9IHRlbXAgJiAweDdmZmZmZmZmOwoJcmV0dXJuICooZmxvYXQqKSZ0ZW1wOwp9