6.4.8. Copy sign functions (copysign, copysignf)

These functions replace the sign bit of x with the sign bit of y.

double copysign(double x, double y);
float copysignf(float x, float y);

These functions treat all floating-point numbers as signed (including zeros and NaNs) and do not cause any errors or exceptions.

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0205G
Non-Confidential