mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-06 00:03:35 -04:00
* Add SPDX-License-Identifier in src/common * Add SPDX-License-Identifier in FrodoKEM * Add SPDX-License-Identifier in SIKE * Add SPDX-License-Identifier in BIKE * Add SPDX-License-Identifier in OQS headers * Add SPDX-License-Identifier in files generated during copy-from-pqclean * Add SPDX-License-Identifier in Picnic * Add SPDX-License-Identifier in qTesla * Add SPDX-License-Identifier in CMake files * Update license info in README * Add SPDX-License-Identifier in scripts * Add SPDX-License-Info to CMakeLists * Add SPDX-License-Info in tests * Add SPDX-License-Info to various files * Prettyprint * Add test for SPDX-License-Identifier headers * Updated license identifiers for CPU extension detection code. * Use conjunction for SPDX in file with two licenses Co-authored-by: xvzcf <xvzcf@users.noreply.github.com>
47 lines
710 B
C
47 lines
710 B
C
// SPDX-License-Identifier: MIT
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
#if defined(__AES__)
|
|
printf("AES;");
|
|
#endif
|
|
#if defined(__AVX__)
|
|
printf("AVX;");
|
|
#endif
|
|
#if defined(__AVX2__)
|
|
printf("AVX2;");
|
|
#endif
|
|
#if defined(__AVX512BW__)
|
|
printf("AVX512BW;");
|
|
#endif
|
|
#if defined(__AVX512DQ__)
|
|
printf("AVX512DQ;");
|
|
#endif
|
|
#if defined(__AVX512F__)
|
|
printf("AVX512F;");
|
|
#endif
|
|
#if defined(__BMI__)
|
|
printf("BMI;");
|
|
#endif
|
|
#if defined(__BMI2__)
|
|
printf("BMI2;");
|
|
#endif
|
|
#if defined(__FMA__)
|
|
printf("FMA;");
|
|
#endif
|
|
#if defined(__POPCNT__)
|
|
printf("POPCNT;");
|
|
#endif
|
|
#if defined(__SSE__)
|
|
printf("SSE;");
|
|
#endif
|
|
#if defined(__SSE2__)
|
|
printf("SSE2;");
|
|
#endif
|
|
#if defined(__SSE3__)
|
|
printf("SSE3;");
|
|
#endif
|
|
return 0;
|
|
}
|