OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:halfSquare
(Results
1 - 25
of
59
) sorted by null
1
2
3
/external/guava/guava/src/com/google/common/math/
IntMath.java
246
int
halfSquare
= sqrtFloor * sqrtFloor + sqrtFloor;
248
* We wish to test whether or not x <= (sqrtFloor + 0.5)^2 =
halfSquare
+ 0.25. Since both
249
* x and
halfSquare
are integers, this is equivalent to testing whether or not x <=
250
*
halfSquare
. (We have to deal with overflow, though.)
252
* If we treat
halfSquare
as an unsigned int, we know that
254
*
halfSquare
- sqrtFloor <= x <
halfSquare
+ sqrtFloor + 1
255
* so |x -
halfSquare
| <= sqrtFloor. Therefore, it's safe to treat x -
halfSquare
as a
258
return sqrtFloor + lessThanBranchFree(
halfSquare
, x)
[
all
...]
BigIntegerMath.java
229
BigInteger
halfSquare
= sqrtFloor.pow(2).add(sqrtFloor);
231
* We wish to test whether or not x <= (sqrtFloor + 0.5)^2 =
halfSquare
+ 0.25. Since both
232
* x and
halfSquare
are integers, this is equivalent to testing whether or not x <=
233
*
halfSquare
.
235
return (
halfSquare
.compareTo(x) >= 0) ? sqrtFloor : sqrtFloor.add(BigInteger.ONE);
LongMath.java
320
long
halfSquare
= sqrtFloor * sqrtFloor + sqrtFloor;
322
* We wish to test whether or not x <= (sqrtFloor + 0.5)^2 =
halfSquare
+ 0.25. Since both
323
* x and
halfSquare
are integers, this is equivalent to testing whether or not x <=
324
*
halfSquare
. (We have to deal with overflow, though.)
326
* If we treat
halfSquare
as an unsigned long, we know that
328
*
halfSquare
- sqrtFloor <= x <
halfSquare
+ sqrtFloor + 1
329
* so |x -
halfSquare
| <= sqrtFloor. Therefore, it's safe to treat x -
halfSquare
as a
332
return sqrtFloor + lessThanBranchFree(
halfSquare
, x)
[
all
...]
/external/dagger2/lib/
auto-value-1.4.1.jar
google-java-format-0.1-20151017.042846-2.jar
/prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.3/
auto-value-1.3.jar
/prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.3-rc1/
auto-value-1.3-rc1.jar
/prebuilts/tools/common/m2/repository/com/google/auto/value/auto-value/1.5.2/
auto-value-1.5.2.jar
/cts/tests/libcore/javautilcollections/libs/
guava-20.0.jar
/external/annotation-tools/annotation-file-utilities/lib/
guava-20.0.jar
/external/guice/lib/
guava-16.0.1.jar
/external/owasp/sanitizer/distrib/lib/
guava.jar
/external/owasp/sanitizer/lib/guava-libraries/
guava.jar
/packages/apps/Messaging/build/gcheckstyle/
google-style-checker_deploy.jar
/packages/services/Telecomm/libs/
guava.jar
/prebuilts/devtools/tools/lib/
guava-13.0.1.jar
guava-17.0.jar
guava-18.0.jar
guava-22.0.jar
/prebuilts/misc/common/guava/
guava-18.0.jar
guava-21.0.jar
/prebuilts/misc/common/robolectric/3.1.1/lib/
guava-19.0.jar
/prebuilts/misc/common/robolectric/3.4.2/lib/
guava-20.0.jar
/prebuilts/misc/common/robolectric/3.5.1/lib/
guava-20.0.jar
/prebuilts/misc/common/robolectric/3.6.1/lib/
guava-20.0.jar
Completed in 405 milliseconds
1
2
3