add copysign for ints and floats
fix addArc to not wrap around if the sweepAngle is close to 360 but lost
precision when convert to radians (and then to unit vectors ala sin/cos)



git-svn-id: http://skia.googlecode.com/svn/trunk@495 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/core/SkMath.h b/include/core/SkMath.h
index 3f3c660..e0f2361 100644
--- a/include/core/SkMath.h
+++ b/include/core/SkMath.h
@@ -64,6 +64,11 @@
     return (n ^ sign) - sign;
 }
 
+/** Return x with the sign of y */
+static inline int32_t SkCopySign32(int32_t x, int32_t y) {
+    return SkApplySign(x, SkExtractSign(x ^ y));
+}
+
 /** Returns (value < 0 ? 0 : value) efficiently (i.e. no compares or branches)
 */
 static inline int SkClampPos(int value) {