Commit graph

16 commits

Author SHA1 Message Date
Helder Eijs
3f6a86e072 Use memset, to avoid emmintrin.h 2023-12-29 14:52:15 +01:00
Helder Eijs
b4083688fd Better autodetect of AES support, in case of aggressive optimization 2023-12-29 14:36:19 +01:00
Helder Eijs
80d664037f Use -mstackrealign for 32-bits systems and SSE2 2022-11-14 22:48:23 +01:00
Helder Eijs
a730de0f71 Force realignment in routines using SSE2 2019-11-11 21:43:06 +01:00
Helder Eijs
6fa1f56bb7 Fix compiler warning 2019-11-10 00:49:20 +01:00
Helder Eijs
351d2c91e4 Remove blanket O3 optimization for gcc and clang 2019-11-09 23:59:32 +01:00
Helder Eijs
f1e4320769 Explicitly include tmmintrin.h for CLMUL 2019-11-09 23:21:55 +01:00
Helder Eijs
451beb63b3 SSE2 available with emmintrin.h and no x86intrin.h 2019-11-09 22:44:20 +01:00
Oleksii Shevchuk
bac89949c0 compiler_opt: Handle msvc/distutils compilation case
MSVC9 distutils ccompiler raises WindowsError, which is not
covered.

      File "<string>", line 1, in <module>
      File "c:\users\root\temp\pip-install-armnd4\pycryptodome\setup.py", line 445, in <module>
        set_compiler_options(package_root, ext_modules)
      File "compiler_opt.py", line 325, in set_compiler_options
        cpuid_h_present = compiler_has_cpuid_h()
      File "compiler_opt.py", line 159, in compiler_has_cpuid_h
        return test_compilation(source, msg="cpuid.h header")
      File "compiler_opt.py", line 83, in test_compilation
        extra_preargs=extra_linker_options)
      File "C:\Python27\lib\distutils\ccompiler.py", line 700, in link_executable
        debug, extra_preargs, extra_postargs, None, target_lang)
      File "C:\Python27\lib\distutils\msvc9compiler.py", line 610, in link
        if self._need_link(objects, output_filename):
      File "C:\Python27\lib\distutils\ccompiler.py", line 471, in _need_link
        newer = newer_group (objects, output_file)
      File "C:\Python27\lib\distutils\dep_util.py", line 86, in newer_group
        if os.stat(source)[ST_MTIME] > target_mtime:
    WindowsError: [Error 2] File not found: 'build\\test1.obj'
2019-03-08 08:00:26 +02:00
Helder Eijs
40fa9b2645 Include multiply routines dircetly into mont.c 2019-02-11 23:19:52 +01:00
Helder Eijs
2f178e3dd7 Fix setting debug flag 2018-12-01 08:27:32 +01:00
Helder Eijs
3037627568 On Windows, don't autodetect SSE2 if there is no intrin.h 2018-11-30 23:59:46 +01:00
Helder Eijs
adfcc131bd Bump version 2018-11-26 20:14:10 +01:00
Helder Eijs
bb778cbcf9 Explicitly set USE_SSE2 flag 2018-11-26 14:28:58 +01:00
Helder Eijs
e85155ffd1 Add check for stdint.h 2018-11-26 14:12:28 +01:00
Helder Eijs
34c9823baa Move auto-detection logic into separate file 2018-11-26 12:39:46 +01:00