move SkSqrt32 back into SkMath.h -- was referenced in SkEmbossMask.cpp
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 7 Aug 2012 21:48:01 +0000 (21:48 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 7 Aug 2012 21:48:01 +0000 (21:48 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@5000 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkMath.h
src/core/SkMathPriv.h

index 42f830c..e8d8f76 100644 (file)
@@ -31,6 +31,10 @@ int32_t SkDivBits(int32_t numer, int32_t denom, int shift);
  */
 int32_t SkSqrtBits(int32_t value, int bitBias);
 
+/** Return the integer square root of n, treated as a SkFixed (16.16)
+ */
+#define SkSqrt32(n)         SkSqrtBits(n, 15)
+
 ///////////////////////////////////////////////////////////////////////////////
 
 //! Returns the number of leading zero bits (0...32)
index 055acc4..6fac124 100644 (file)
@@ -53,10 +53,6 @@ static inline unsigned SkClampUMax(unsigned value, unsigned max) {
  */
 int32_t SkMulShift(int32_t a, int32_t b, unsigned shift);
 
-/** Return the integer square root of n, treated as a SkFixed (16.16)
- */
-#define SkSqrt32(n)         SkSqrtBits(n, 15)
-
 /** Return the integer cube root of value, with a bias of bitBias
  */
 int32_t SkCubeRootBits(int32_t value, int bitBias);