Sha256: 77bd6bbb14e8d48d36a3de82b4b44a67a467b62deded049550bbe2943d9f87df
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
/* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this notice * is preserved. * ==================================================== */ /* * copysign(double x, double y) * copysign(x,y) returns a value with the magnitude of x and * with the sign bit of y. */ #include "math_libm.h" #include "math_private.h" double copysign(double x, double y) { u_int32_t hx,hy; GET_HIGH_WORD(hx,x); GET_HIGH_WORD(hy,y); SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000)); return x; } libm_hidden_def(copysign)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alphatau-0.1.0 | ext/alphatau/native/sdl/src/libm/s_copysign.c |