| 129 | # So it would appear that SSE2 support is somewhat undefined on many |
| 130 | # AMD-based CPU chipsets. They officially don't support some of the |
| 131 | # instructions that crypto++ tries to use--which implies that crypto++ CPU |
| 132 | # capability detection is currently incorrect. So, while that remains true, |
| 133 | # all we can do is detect those platforms that exhibit the issue, and |
| 134 | # disable the crypto++ assembly on them. |
| 135 | # |
| 136 | # Additionally, it's not portably possible to determine the actual CPU name |
| 137 | # via platform.processor() on NetBSD (and even some Linux) because it just |
| 138 | # returns the same thing as platform.machine(): i386 or x86_64 or ... |
| 139 | |
| 140 | arch = platform.architecture() |
| 141 | syst = platform.system() |
| 142 | if '32bit' in arch: |
| 143 | if 'NetBSD' in syst: |
| 144 | print "You are on 32-bit NetBSD. Disabling assembly optimisations." |
| 145 | define_macros.append(('CRYPTOPP_DISABLE_ASM', 1)) |
| 146 | |