Lines Matching full:negative
134 // any of the operands is negative. Here we try to enforce C++11's "rounded in RoundTowardZero()
207 bool negative = (value[0] == '-'); in FromString() local
208 int sign_length = (negative ? 1 : 0); in FromString()
230 if (negative) { in FromString()
231 // If a Duration is negative, both seconds and nanos should be negative. in FromString()
382 void ToUint128(const Duration& value, uint128* result, bool* negative) { in ToUint128() argument
384 *negative = true; in ToUint128()
388 *negative = false; in ToUint128()
394 void ToDuration(const uint128& value, bool negative, Duration* duration) { in ToDuration() argument
398 if (negative) { in ToDuration()
420 bool negative; in operator *=() local
422 ToUint128(d, &value, &negative); in operator *=()
426 negative = !negative; in operator *=()
429 ToDuration(value, negative, &d); in operator *=()
446 bool negative; in operator /=() local
448 ToUint128(d, &value, &negative); in operator /=()
452 negative = !negative; in operator /=()
455 ToDuration(value, negative, &d); in operator /=()
469 // When negative values are involved in division, we round the division in operator %=()