blob: 47ab37e44e5845e947f5e4209726b5c302a0d850 (
plain) (
tree)
|
|
#include "libm.h"
float copysignf(float x, float y) {
union fshape ux, uy;
ux.value = x;
uy.value = y;
ux.bits &= (uint32_t)-1>>1;
ux.bits |= uy.bits & (uint32_t)1<<31;
return ux.value;
}
|