Implementation of bitcast

static __inline int toint(float x) {
const union {
float f;
int i;
} rep = {.f = x};
return rep.i;
}

Supongo que te gusta

Origin blog.csdn.net/qq_41372644/article/details/128846041
Recomendado
Clasificación