cpp/src/arrow/util/cpu_info.cc
// Helper function to parse for hardware flags.
// values contains a list of space-separated flags.  check to see if the flags we
// care about are present.
// Returns a bitmap of flags.
Helper function to parse for hardware flags.
values contains a list of space-separated flags.  check to see if the flags we
care about are present.
Returns a bitmap of flags.
Helper function to parse for hardware flags . values contains a list of space - separated flags . check to see if the flags we care about are present . Returns a bitmap of flags .
int64_t ParseCPUFlags(const std::string& values) {
  int64_t flags = 0;
  for (int i = 0; i < num_flags; ++i) {
    if (values.find(flag_mappings[i].name) != std::string::npos) {
      flags |= flag_mappings[i].flag;
    }
  }
  return flags;
}
int64_t ParseCPUFlags ( const std :: string & values ) { int64_t flags = 0 ; for ( int i = 0 ; i < num_flags ; ++ i ) { if ( values . find ( flag_mappings [ i ] . name ) != std :: string :: npos ) { flags |= flag_mappings [ i ] . flag ; } } return flags ; }
Helper function to parse for hardware flags.
Helper function to parse for hardware flags .