Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2318)

Unified Diff: experimental/Intersection/IntersectionUtilities.cpp

Issue 867213004: remove prototype pathops code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/Intersection/IntersectionUtilities.h ('k') | experimental/Intersection/Intersection_Tests.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/Intersection/IntersectionUtilities.cpp
diff --git a/experimental/Intersection/IntersectionUtilities.cpp b/experimental/Intersection/IntersectionUtilities.cpp
deleted file mode 100644
index e6c4abc59039550dea231d0ecb278010faadd2db..0000000000000000000000000000000000000000
--- a/experimental/Intersection/IntersectionUtilities.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#if 0
-// snippets that one day may be useful, unused for now...
-
-// get sign, exponent, mantissa from double
-// Translate the double into sign, exponent and mantissa.
- long bits = BitConverter.DoubleToInt64Bits(d);
- // Note that the shift is sign-extended, hence the test against -1 not 1
- bool negative = (bits < 0);
- int exponent = (int) ((bits >> 52) & 0x7ffL);
- long mantissa = bits & 0xfffffffffffffL;
-
- // Subnormal numbers; exponent is effectively one higher,
- // but there's no extra normalisation bit in the mantissa
- if (exponent==0)
- {
- exponent++;
- }
- // Normal numbers; leave exponent as it is but add extra
- // bit to the front of the mantissa
- else
- {
- mantissa = mantissa | (1L<<52);
- }
-
- // Bias the exponent. It's actually biased by 1023, but we're
- // treating the mantissa as m.0 rather than 0.m, so we need
- // to subtract another 52 from it.
- exponent -= 1075;
-
- if (mantissa == 0)
- {
- return "0";
- }
-
- /* Normalize */
- while((mantissa & 1) == 0)
- { /* i.e., Mantissa is even */
- mantissa >>= 1;
- exponent++;
- }
-#endif
« no previous file with comments | « experimental/Intersection/IntersectionUtilities.h ('k') | experimental/Intersection/Intersection_Tests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698