MCPcopy Create free account
hub / github.com/apache/arrow / EnableFeature

Method EnableFeature

cpp/src/arrow/util/cpu_info.cc:428–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426void CpuInfo::VerifyCpuRequirements() const { return ArchVerifyCpuRequirements(this); }
427
428void CpuInfo::EnableFeature(int64_t flag, bool enable) {
429 if (!enable) {
430 hardware_flags_ &= ~flag;
431 } else {
432 // Can't turn something on that can't be supported
433 DCHECK_EQ((~original_hardware_flags_) & flag, 0);
434 hardware_flags_ |= (flag & original_hardware_flags_);
435 }
436}
437
438} // namespace arrow::internal

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64