MCPcopy Create free account
hub / github.com/apache/impala / BitcastToInt64

Function BitcastToInt64

be/src/util/runtime-profile.cc:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110/// a double.
111template <typename T>
112static int64_t BitcastToInt64(T val) {
113 static_assert(std::is_same<T, int64_t>::value || std::is_same<T, double>::value,
114 "Only double and int64_t are supported");
115 int64_t res;
116 memcpy(&res, &val, sizeof(int64_t));
117 return res;
118}
119
120static bool UntimedProfileNode(const string& name) {
121 return name.compare(RuntimeProfile::FRAGMENT_INSTANCE_LIFECYCLE_TIMINGS) == 0

Callers 4

ComputeTimeInProfileMethod · 0.85
UpdateCounterMethod · 0.85
ComputeMeanMethod · 0.85
PrettyPrintImplMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected