diff options
Diffstat (limited to 'neozip/arch/loongarch/loongarch_features.h')
| -rw-r--r-- | neozip/arch/loongarch/loongarch_features.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/neozip/arch/loongarch/loongarch_features.h b/neozip/arch/loongarch/loongarch_features.h new file mode 100644 index 0000000000..27c90b14b3 --- /dev/null +++ b/neozip/arch/loongarch/loongarch_features.h @@ -0,0 +1,19 @@ +/* loongarch_features.h -- check for LoongArch features. + * + * Copyright (C) 2025 Vladislav Shchapov <vladislav@shchapov.ru> + * + * For conditions of distribution and use, see copyright notice in zlib.h + */ + +#ifndef LOONGARCH_FEATURES_H_ +#define LOONGARCH_FEATURES_H_ + +struct loongarch_cpu_features { + int has_crc; + int has_lsx; + int has_lasx; +}; + +void Z_INTERNAL loongarch_check_features(struct loongarch_cpu_features *features); + +#endif /* LOONGARCH_FEATURES_H_ */ |
