half_mv_htoi.c 245 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ////C: '-msoft-fp-half' ////A: '--has-fhalf' //C: '-march=rv64gczfh -mabi=lp64d' #include <stdint.h> int main(void) { half a = 0.125h,b; int z,y; // b = 2.0h*a; z = *((int *)&a); b = *((half *)&z); // y = 5*z+1234; return y; }