Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Go to the source code of this file.
Macros | |
#define | LIKELY(expr) __builtin_expect(!!(expr), 1) |
#define | UNLIKELY(expr) __builtin_expect(!!(expr), 0) |
#define | PREFETCH(addr) __builtin_prefetch(addr) |
#define LIKELY | ( | expr | ) | __builtin_expect(!!(expr), 1) |
Compiler hint that this branch is likely or unlikely to be taken. Take from the "What all programmers should know about memory" paper. example: if (LIKELY(size > 0)) { ... } example: if (UNLIKELY(!status.ok())) { ... }
Definition at line 32 of file compiler-util.h.
Referenced by impala::BufferedTupleStream::AddRow(), impala::PartitionedHashJoinNode::AppendRow(), AtoiCased(), AtoiUnrolled(), impala::BufferedTupleStream::DeepCopyInternal(), impala::RleDecoder::Get(), impala::BitReader::GetAligned(), impala::ScannerContext::Stream::GetBytes(), impala::DecimalUtil::GetScaleMultiplier(), impala::BitReader::GetValue(), impala::HashUtil::Hash(), impala::HashTable::Insert(), impala::StringParser::IsAllWhitespace(), impala::PartitionedHashJoinNode::NextSpilledProbeRowBatch(), impala::HdfsAvroScanner::ScopedAvroSchemaT::operator=(), impala::Status::operator=(), impala::TimestampParser::Parse(), impala::DelimitedTextParser::ParseSingleTuple(), impala::DelimitedTextParser::ParseSse(), impala::BitUtil::Popcount(), impala::RawValue::PrintValue(), impala::HashTable::Probe(), impala::PartitionedHashJoinNode::ProcessProbeBatch(), impala::DictEncoder< T >::Put(), impala::RleEncoder::Put(), impala::StringSearchSSE::Search(), impala::RowBatch::Serialize(), impala::StringParser::StringToBool(), impala::StringParser::StringToBoolInternal(), impala::StringParser::StringToDecimal(), impala::StringParser::StringToFloat(), impala::StringParser::StringToFloatInternal(), impala::StringParser::StringToInt(), impala::StringParser::StringToIntInternal(), impala::StringParser::StringToIntNoOverflow(), impala::TimestampValue::ToSubsecondUnixTime(), impala::RuntimeProfile::HighWaterMarkCounter::TryAdd(), impala::AtomicInt< int >::UpdateMax(), and impala::AtomicInt< int >::UpdateMin().
#define PREFETCH | ( | addr | ) | __builtin_prefetch(addr) |
Definition at line 35 of file compiler-util.h.
#define UNLIKELY | ( | expr | ) | __builtin_expect(!!(expr), 0) |
Definition at line 33 of file compiler-util.h.
Referenced by impala::DataStreamSender::Channel::AddRow(), impala::AnalyticEvalNode::AddRow(), impala::BitReader_8byte::Align(), impala::BufferedTupleStream::AllocateRow(), impala::HdfsParquetTableWriter::BaseColumnWriter::AppendRow(), impala::DictEncoderBase::bit_width(), impala::PartitionedHashJoinNode::Partition::BuildHashTableInternal(), impala::MemTracker::Consume(), impala::MemTracker::ConsumeLocal(), impala::AggregateFunctions::DecimalAvgGetValue(), impala::MathFunctions::DecimalInBaseToDecimal(), impala::BufferedTupleStream::DeepCopyInternal(), impala::HdfsParquetTableWriter::ColumnWriter< T >::EncodeValue(), impala::RleDecoder::Get(), impala::BitReader_8byte::GetAligned(), impala::BitReader::GetAligned(), impala::ScannerContext::Stream::GetBytes(), impala::PartitionedHashJoinNode::GetNext(), impala::BitWriter_8byte::GetNextBytePtr(), impala::BufferedTupleStream::GetNextInternal(), impala::HashTable::Iterator::GetRow(), impala::HashTable::GetRow(), impala::HashTable::Iterator::GetTuple(), impala::BitReader_8byte::GetValue(), impala::BitReader::GetValue(), impala::OldHashTable::Insert(), impala::HashTable::InsertDuplicateNode(), impala::OldHashTable::InsertImpl(), impala::HashTable::InsertInternal(), impala::StringParser::IsWhitespace(), impala::MemTracker::LimitExceeded(), impala::GzipCompressor::MaxOutputLen(), impala::DecimalValue< int128_t >::Multiply(), impala::Sorter::TupleSorter::TupleIterator::Next(), impala::TimestampParser::Parse(), impala::TimestampParser::ParseDateTime(), impala::TimestampParser::ParseFormatTokens(), impala::DelimitedTextParser::ParseSse(), impala::AggregateFunctions::PcsaUpdate(), impala::AggregateFunctions::PcUpdate(), impala::Sorter::TupleSorter::TupleIterator::Prev(), impala::HdfsTextTableWriter::PrintEscaped(), impala::Codec::ProcessBlock32(), impala::PartitionedHashJoinNode::ProcessBuildBatch(), impala::AnalyticEvalNode::ProcessChildBatch(), impala::HdfsSequenceScanner::ProcessDecompressedBlock(), impala::HdfsParquetScanner::ProcessFooter(), impala::CrossJoinNode::ProcessLeftChildBatch(), impala::HashJoinNode::ProcessProbeBatch(), impala::PartitionedHashJoinNode::ProcessProbeBatch(), impala::HdfsSequenceScanner::ProcessRange(), impala::DictEncoder< T >::Put(), impala::RleEncoder::Put(), impala::BitWriter::PutValue(), impala::BitWriter_8byte::PutValue(), impala::ReadWriteUtil::Read(), impala::ScannerContext::Stream::ReadBytes(), impala::MemTracker::Release(), impala::StringSearchSSE::Search(), impala::ReadWriteUtil::SkipBytes(), impala::ScannerContext::Stream::SkipBytes(), impala::Sorter::TupleSorter::SortHelper(), impala::PartitionedAggregationNode::Partition::Spill(), impala::StringParser::StringToDecimal(), impala::StringParser::StringToFloatInternal(), impala::StringParser::StringToIntInternal(), impala::StringParser::StringToIntNoOverflow(), impala::BitUtil::TrailingBits(), impala::MemTracker::TryConsume(), impala::Sorter::TupleSorter::TupleIterator::TupleIterator(), impala::TimestampValue::UnixTimeToPtime(), impala::TimestampValue::UtcToLocal(), impala::HdfsScanner::WriteAlignedTuples(), impala::HdfsScanner::WriteCompleteTuple(), impala::HdfsParquetTableWriter::BaseColumnWriter::WriteDictDataPage(), and impala::HdfsTextScanner::WriteFields().