Home
last modified time | relevance | path

Searched refs:nanos_ (Results 1 – 9 of 9) sorted by relevance

/external/llvm/include/llvm/Support/
DTimeValue.h95 TimeValue() : seconds_(0), nanos_(0) {} in TimeValue()
101 : seconds_( seconds ), nanos_( nanos ) { this->normalize(); } in seconds_()
107 : seconds_( 0 ) , nanos_ ( 0 ) { in TimeValue()
110 nanos_ = static_cast<NanoSecondsType>( (new_time - in TimeValue()
129 this->nanos_ += that.nanos_ ;
139 this->nanos_ -= that.nanos_ ;
156 if ( this->nanos_ > that.nanos_ ) return 1;
172 if ( this->nanos_ >= that.nanos_ ) return 1;
181 (this->nanos_ == that.nanos_);
212 NanoSecondsType nanoseconds() const { return nanos_; } in nanoseconds()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DTimeValue.h95 TimeValue() : seconds_(0), nanos_(0) {} in TimeValue()
101 : seconds_( seconds ), nanos_( nanos ) { this->normalize(); } in seconds_()
107 : seconds_( 0 ) , nanos_ ( 0 ) { in TimeValue()
110 nanos_ = static_cast<NanoSecondsType>( (new_time - in TimeValue()
129 this->nanos_ += that.nanos_ ;
139 this->nanos_ -= that.nanos_ ;
156 if ( this->nanos_ > that.nanos_ ) return 1;
172 if ( this->nanos_ >= that.nanos_ ) return 1;
181 (this->nanos_ == that.nanos_);
212 NanoSecondsType nanoseconds() const { return nanos_; } in nanoseconds()
[all …]
/external/llvm/lib/Support/
DTimeValue.cpp27 if ( nanos_ >= NANOSECONDS_PER_SECOND ) { in normalize()
30 nanos_ -= NANOSECONDS_PER_SECOND; in normalize()
31 } while ( nanos_ >= NANOSECONDS_PER_SECOND ); in normalize()
32 } else if (nanos_ <= -NANOSECONDS_PER_SECOND ) { in normalize()
35 nanos_ += NANOSECONDS_PER_SECOND; in normalize()
36 } while (nanos_ <= -NANOSECONDS_PER_SECOND); in normalize()
39 if (seconds_ >= 1 && nanos_ < 0) { in normalize()
41 nanos_ += NANOSECONDS_PER_SECOND; in normalize()
42 } else if (seconds_ < 0 && nanos_ > 0) { in normalize()
44 nanos_ -= NANOSECONDS_PER_SECOND; in normalize()
/external/protobuf/src/google/protobuf/
Dduration.pb.cc49 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Duration, nanos_),
110 static_cast<size_t>(reinterpret_cast<char*>(&nanos_) - in Duration()
111 reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); in Duration()
117 reinterpret_cast<char*>(&nanos_) - in SharedCtor()
118 reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); in SharedCtor()
152 reinterpret_cast<char*>(&nanos_) - in Clear()
153 reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); in Clear()
176 nanos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); in _InternalParse()
229 input, &nanos_))); in MergePartialFromCodedStream()
388 swap(nanos_, other->nanos_); in InternalSwap()
Dtimestamp.pb.cc49 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Timestamp, nanos_),
110 static_cast<size_t>(reinterpret_cast<char*>(&nanos_) - in Timestamp()
111 reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); in Timestamp()
117 reinterpret_cast<char*>(&nanos_) - in SharedCtor()
118 reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); in SharedCtor()
152 reinterpret_cast<char*>(&nanos_) - in Clear()
153 reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); in Clear()
176 nanos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); in _InternalParse()
229 input, &nanos_))); in MergePartialFromCodedStream()
388 swap(nanos_, other->nanos_); in InternalSwap()
Dduration.pb.h224 ::PROTOBUF_NAMESPACE_ID::int32 nanos_;
255 nanos_ = 0; in clear_nanos()
259 return nanos_; in nanos()
263 nanos_ = value; in set_nanos()
Dtimestamp.pb.h224 ::PROTOBUF_NAMESPACE_ID::int32 nanos_;
255 nanos_ = 0; in clear_nanos()
259 return nanos_; in nanos()
263 nanos_ = value; in set_nanos()
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DDuration.cs129 nanos_ = other.nanos_; in Duration()
156 private int nanos_; field in Google.Protobuf.WellKnownTypes.Duration
167 get { return nanos_; }
169 nanos_ = value;
DTimestamp.cs152 nanos_ = other.nanos_; in Timestamp()
179 private int nanos_; field in Google.Protobuf.WellKnownTypes.Timestamp
188 get { return nanos_; }
190 nanos_ = value;