# Copyright (c) 2021, Alliance for Open Media. All rights reserved. # # This source code is subject to the terms of the BSD 2 Clause License and # the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License # was not distributed with this source code in the LICENSE file, you can # obtain it at www.aomedia.org/license/software. If the Alliance for Open # Media Patent License 1.0 was not distributed with this source code in the # PATENTS file, you can obtain it at www.aomedia.org/license/patent. #
import os import sys
def is_code_file(filename): return filename.endswith(".c") or filename.endswith(".h")
def is_simd_file(filename):
simd_keywords = [ "avx2", "sse2", "sse3", "ssse3", "sse4", "dspr2", "neon", "msa", "simd", "x86"
] for keyword in simd_keywords: if filename.find(keyword) >= 0: returnTrue returnFalse
def get_code_file_list(path, exclude_file_set):
code_file_list = [] for cur_dir, sub_dir, file_list in os.walk(path): for filename in file_list: if is_code_file(filename) andnot is_simd_file(
filename) and filename notin exclude_file_set:
file_path = os.path.join(cur_dir, filename)
code_file_list.append(file_path) return code_file_list
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.