OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:halfSquare
(Results
1 - 8
of
8
) sorted by null
/external/webkit/Source/WebCore/platform/graphics/cairo/
DrawErrorUnderline.h
56
double
halfSquare
= 0.5 * square;
68
cairo_move_to(cr, x -
halfSquare
, top +
halfSquare
); // A
78
cairo_line_to(cr, right +
halfSquare
, top +
halfSquare
); // D
90
cairo_line_to(cr, middle +
halfSquare
, bottom -
halfSquare
); // G
95
cairo_line_to(cr, middle, bottom -
halfSquare
); // F
/external/guava/guava/src/com/google/common/math/
IntMath.java
222
int
halfSquare
= sqrtFloor * sqrtFloor + sqrtFloor;
224
* We wish to test whether or not x <= (sqrtFloor + 0.5)^2 =
halfSquare
+ 0.25.
225
* Since both x and
halfSquare
are integers, this is equivalent to testing whether or not
226
* x <=
halfSquare
. (We have to deal with overflow, though.)
228
return (x <=
halfSquare
|
halfSquare
< 0) ? sqrtFloor : sqrtFloor + 1;
LongMath.java
261
long
halfSquare
= sqrtFloor * sqrtFloor + sqrtFloor;
263
* We wish to test whether or not x <= (sqrtFloor + 0.5)^2 =
halfSquare
+ 0.25. Since both
264
* x and
halfSquare
are integers, this is equivalent to testing whether or not x <=
265
*
halfSquare
. (We have to deal with overflow, though.)
267
return (
halfSquare
>= x |
halfSquare
< 0) ? sqrtFloor : sqrtFloor + 1;
BigIntegerMath.java
200
BigInteger
halfSquare
= sqrtFloor.pow(2).add(sqrtFloor);
202
* We wish to test whether or not x <= (sqrtFloor + 0.5)^2 =
halfSquare
+ 0.25. Since both
203
* x and
halfSquare
are integers, this is equivalent to testing whether or not x <=
204
*
halfSquare
.
206
return (
halfSquare
.compareTo(x) >= 0) ? sqrtFloor : sqrtFloor.add(BigInteger.ONE);
/prebuilts/devtools/tools/lib/
guava-13.0.1.jar
/prebuilts/tools/common/gradle-plugins/repository/com/google/guava/guava/14.0/
guava-14.0.jar
/prebuilts/tools/common/guava-tools/
guava-13.0.1.jar
/prebuilts/tools/common/m2/repository/com/google/guava/guava/13.0.1/
guava-13.0.1.jar
Completed in 140 milliseconds