Commit Graph

159 Commits

Author SHA1 Message Date
Jeffrey Walton
443e3ee836
Update cpu.cpp features for Apple M1 2021-03-05 13:07:24 -05:00
Jeffrey Walton
8b237f5381
Update cpu.cpp features for Apple M1 2021-03-05 09:15:52 -05:00
Jeffrey Walton
bc1b5f7922
Update cpu.cpp for Apple M1
Also see https://groups.google.com/g/cryptopp-users/c/mptNHcTrclk
2021-03-05 00:38:04 -05:00
Jeffrey Walton
f6ff2f0028
Update cpu.cpp features for Apple M1 2021-03-04 22:50:58 -05:00
PassMark
6b4887b6f4
Enable ARMv8 intrinsics on Apple M1 (PR #1007)
Co-authored-by: passmark <passmark@passmarks-Mac-mini.local>
2021-02-12 02:53:05 -05:00
Tanzinul Islam
e539aab454
Build with Oracle Developer Studio 12.6 in 64-bit (PR #990)
- The _mm256_loadu_si256() intrinsic is declared with a pointer to
  non-const input. Apply const_cast accordingly.

- The XGETBV instruction isn't recognized, so apply the same
  workaround as for old GCC versions.
  <https://docs.oracle.com/cd/E53394_01/html/E54851/gnyen.html>

- Only AT&T syntax is supported; there is no directive to switch
  Intel syntax. Therefore, disable mixed-ASM code paths.
2020-12-27 16:18:12 -05:00
Jeffrey Walton
8dd4103fca
Fix spelling 2020-12-22 15:49:34 -05:00
Jeffrey Walton
3a7eeb9f73
Avoid SIGILL with GCC 10 on POWER9 (GH #986) 2020-12-22 10:27:50 -05:00
Jeffrey Walton
b32cb6f9c0
Re-enable CPU_ProbePower9()
It is still SIGILL'ing
2020-12-22 10:17:09 -05:00
Jeffrey Walton
b9e015521e
Avoid SIGILL with GCC on POWER9 2020-12-22 00:12:10 -05:00
Jeffrey Walton
7177df3068
Fix include for MSVC compiler (GH #972)
Thanks @wyattoday
2020-11-20 19:14:35 -05:00
Jeffrey Walton
38e6763249
Fix compile error on Solaris 2020-09-30 14:44:03 -04:00
Jeffrey Walton
ba286e6780
Fix missing include for MSVC compiler (GH #972) 2020-09-30 13:41:40 -04:00
Jeffrey Walton
2c6e4b17d7
Use define CRYPTOPP_CXX11_STATIC_INIT name 2020-08-07 19:11:47 -04:00
Jeffrey Walton
cdc2a4aaf5
Update iOS and Android scripts (GH #936, PR #937)
This commit updates Android and iOS to modern SDKs, NDKs and Xcode.
2020-03-09 21:53:08 -04:00
Jeffrey Walton
5d68850041
Re-enable SSE2 probes for Solaris
Fix VMAC-64 crash on 32-bit Solaris i86pc
2020-02-22 16:18:43 -05:00
Jeffrey Walton
cd16435544
Update comments 2020-02-21 16:05:56 -05:00
Jeffrey Walton
57139faf61
Refactor XGetBV for x86 in cpu.cpp 2020-02-21 15:59:49 -05:00
Jeffrey Walton
6fa3e38e5c
Restore SIGILL handler if sigprocmask fails
We've never encountered this case, but better safe then sorry.
2020-02-17 14:15:02 -05:00
Jeffrey Walton
db97202654
Add Emacs and Vi files to gitignore 2020-02-15 03:50:15 -05:00
Jeffrey Walton
36a97733de
Fix Apple Watch compile
The i386 enum confused the compiler when building under Apple Watch SDK. Also removed IsAppleMachineARMv84(). There's little reason to stub it out yet. Apple still does not support CRC or CLMUL on ARMv8. There's no indication they will support ARMv8.4 anytime soon.
2020-02-15 03:00:54 -05:00
Jeffrey Walton
063b964d52
Fix compile on Apple platforms 2020-02-10 23:23:22 -05:00
Jeffrey Walton
5057974da8
Add index for Intel registers
This should make the code a little more readable
2020-02-10 12:44:55 -05:00
Jeffrey Walton
41b0092393
Update comments 2020-02-10 11:46:41 -05:00
Jeffrey Walton
83c785cf07
Add AppleMachineInfo class 2020-02-09 14:31:52 -05:00
Jeffrey Walton
633bb22db6 Update comments 2020-02-09 05:16:23 -05:00
Jeffrey Walton
3041fca5c3
Add additional Apple ARMv8 devices 2020-02-08 11:04:09 -05:00
Jeffrey Walton
1ccf9d5ab3
Move CPU manufacturer code into unnamed namespace 2020-02-07 16:53:22 -05:00
Jeffrey Walton
dd67e1eee4
Cleanup CpuID function (PR #929) 2020-02-07 16:00:16 -05:00
Jeffrey Walton
18b535fb5a
Add CPUID64 for MSVC missing __cpuidex 2020-02-07 14:19:46 -05:00
Jeffrey Walton
eb67356732
Set g_x86DetectionDone when CRYPTOPP_DISABLE_ASM is in effect
Previously we were re-entering DetectX86Features when CpuId failed or CRYPTOPP_DISABLE_ASM was in effect
2020-01-23 02:46:30 -05:00
Jeffrey Walton
95d8f2abfa
Disable RDRAND and RDSEED on AMD cpu's with family 15h or 16h (GH #924) 2020-01-17 01:05:42 -05:00
Jeffrey Walton
9013cb60fb
Fix semicolons yet again (GH #889)
So it looks like sed added a '\r' between the closing paren and the semi. Grepping for '^;' failed because the '\r' was considered part of the previous line, so it showed no hits. I finally had to write a C program to properly identify and fix those damn stray semicolons.
2019-10-14 12:30:10 -04:00
Jeffrey Walton
589c25264a Don't add semicolon to CRYPTOPP_CONSTANT abd DOCUMENTED_TYPEDEF (GH #889)
This issue is a recurring issue. Let's try fixing it in the #define this time.
2019-10-03 19:40:53 -04:00
Jeffrey Walton
4c1b2dc424 Clear sign conversion warnings 2019-09-28 21:30:01 -04:00
Jeffrey Walton
b76a010dda
Cleanup PowerPC defines 2019-07-06 07:35:36 -04:00
Jeffrey Walton
81da61fe7b
Breakout sha_block_data_order and sha_block_data_order_neon (GH #847) 2019-05-26 22:10:26 -04:00
Jeffrey Walton
1400757fea
Update comments 2019-05-25 00:43:27 -04:00
Jeffrey Walton
ea96b9d375
Use CRYPTOGAMS_armcap_P for ARM (GH #846)
Andy advised against removing the global caps variable. This commit reintroduces CRYPTOGAMS_armcap_P. However, due to the shared object symbol loading problem, we needed to use CRYPTOGAMS_armcap_P as a global, and not CRYPTOGAMS_armcap as a local. Using CRYPTOGAMS_armcap_P directly caused the symbol to be marked as R_ARM_ABS32 which avoids the problem with R_ARM_REL32.
2019-05-24 16:33:47 -04:00
Jeffrey Walton
f396ade93a
Rename XGETBV to XGETBV64 2019-05-21 19:44:48 -04:00
Jeffrey Walton
02cdbf61d3
Rename ExtendedControlRegister to XGETBV 2019-05-21 19:31:13 -04:00
Jeffrey Walton
cc011d2e44
Remove Aarch32 and Aarch64 from CPU_QueryARMv7
I believe some of the code may be generated differently. When testing CPU_ProbeARMv7 I had trouble compiling it on ARMv8.
2019-05-20 23:09:57 -04:00
Jeffrey Walton
a9be7ced86
Fix CPU_QueryARMv7 for Clang (GH #844)
This fixes the query under Clang. This appears to be a trickier problem because there is no explicit define for HWCAP_ARMv7. We rely on HWCAP_NEON as a proxy, or fallback to a CPU_ProbeARMv7.
2019-05-20 23:02:36 -04:00
Jeffrey Walton
c51f0ecbfd
Make config.h more Autoconf friendly (GH #835, PR #836) 2019-05-17 15:18:17 -04:00
Jeffrey Walton
ef3968f551
Guard x86 cache line size 2019-05-08 21:20:49 -04:00
Jeffrey Walton
72a71eb230
Use fallback in detecting ARM and PowerPC cache line size 2019-05-08 19:54:05 -04:00
Jeffrey Walton
c91813c0b4
Use fallback in detecting VIA cach line size 2019-05-08 19:46:23 -04:00
Jeffrey Walton
40e5891635
Use CPU_QuerySHA256 for ARM 2019-05-08 19:31:31 -04:00
Jeffrey Walton
73bf2f29c0
Add "AMDisbetter!" cpuid detection 2019-05-08 18:51:12 -04:00
Jeffrey Walton
986fded372
Spelling 2019-05-08 18:33:55 -04:00