OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:half_max
(Results
1 - 2
of
2
) sorted by null
/external/google-fruit/examples/simple_injection/
checked_adder.cpp
28
const int
half_max
= INT_MAX / 2;
local
30
if (x >
half_max
) {
32
if (y >
half_max
)
36
// x <= INT_MAX && y <=
half_max
,
37
// so: x + y <= INT_MAX +
half_max
38
// so: x -
half_max
+ y <= INT_MAX
39
// so: (x -
half_max
+ y) doesn't overflow.
40
// (x + y) > INT_MAX iff (x -
half_max
+ y) > (INT_MAX -
half_max
)
41
return (x -
half_max
+ y) > (INT_MAX - half_max)
[
all
...]
/external/tensorflow/tensorflow/compiler/xla/tests/
convert_test.cc
435
float
half_max
= 65504.0f;
local
438
{-infinity, -(
half_max
* 2 + 1), -
half_max
, -42.0f, -1.0f,
441
half_max_subnormal, half_min_positive_normal, 1.0f, 42.0f,
half_max
,
442
(
half_max
* 2 + 1), infinity});
Completed in 700 milliseconds