Commit Graph

2385 Commits

Author SHA1 Message Date
Frank Denis
f361d1ccec sandy2x: clean the upper halves of the AVX registers
On Linux, with dynamic linking, upper AVX registers are not 0, which
introduces a massive performance penalty due to state transitions.

Thanks to to Tung Chou and Samuel Neves for catching this, and to
@theakman2 for his initial report.
2016-05-16 23:34:03 +02:00
Jeff R
0b8cb8a543 Fixing a small documentation typo 2016-05-16 16:05:24 -05:00
Frank Denis
593599a11a Align loops 2016-05-16 12:25:35 +02:00
Frank Denis
c303c1f709 sandy2x: align branch targets 2016-05-16 12:20:15 +02:00
Frank Denis
c752eb55d9 On ancient Linux kernels, block on /dev/random before using /dev/urandom 2016-05-15 17:26:22 +02:00
Frank Denis
1e1ba1af02 Merge pull request #393 from evoskuil/master
Rationalize across msvc project versions.
2016-05-12 11:23:59 +02:00
evoskuil
f8d5cf948a Clone msvc .filters (from vs2013 version) for uniformity. 2016-05-12 02:03:23 -07:00
evoskuil
3aad5c11ea Use lowest common denominator .vcxproj ToolsVersion. 2016-05-12 02:02:38 -07:00
Frank Denis
248f381404 Rewrite aesni_key256_expand() for clarity 2016-05-05 19:10:11 +02:00
Frank Denis
a37d2b87bf Rename REDUCE4 to MULREDUCE4 for clarity 2016-05-04 23:31:09 +02:00
Frank Denis
0f053aea52 Grammar 2016-05-04 23:09:07 +02:00
Frank Denis
474952d3f1 Try using cpuid on NativeClient 2016-04-30 16:23:02 +02:00
Frank Denis
a87d30f3af Try MMX/SSE/SSE2/SSE3/SSSE4/SSE4.1 instructions on NativeClient 2016-04-30 16:08:52 +02:00
Frank Denis
a6139c6b20 Add nativeclient-x86.sh 2016-04-30 14:07:50 +02:00
Frank Denis
00e156198a Disable SIMD instructions on NativeClient 2016-04-30 13:03:31 +02:00
Frank Denis
44cd974be2 Remove extra CRLF 2016-04-30 11:20:14 +02:00
Frank Denis
a91530d40f Do not use pthreads on NativeClient 2016-04-30 10:17:47 +02:00
Frank Denis
90603f57ac x86-64 -> x86_64 2016-04-29 22:56:09 +02:00
Frank Denis
d463dadc51 Disable ssp and aesni on nativeclient, nativeclient.sh->nativeclient-pnacl.sh 2016-04-29 22:29:34 +02:00
Frank Denis
3499cbfbe5 Add dist-build/nativeclient-x86-64.sh 2016-04-29 21:55:06 +02:00
Frank Denis
858b8e8c5e Put then and if on the same line.
Having `then` aligned with `if` was pretty confusing, and I kept
reading `else` instead of `then`.
2016-04-29 20:49:35 +02:00
Frank Denis
90a5f8e624 Build scripts don't clean after themselves 2016-04-29 20:40:56 +02:00
Frank Denis
8326bc1d75 CRLF 2016-04-29 20:36:06 +02:00
Frank Denis
251b836f01 NativeClient complains about __memset_chk being undefined on OSX.
Work around this. There might be a better fix, but at least the
test suite compiles with the newlib.
2016-04-29 20:34:24 +02:00
Frank Denis
7a667edbd0 NativeClient: use get_random_bytes directly instead of the wrapper 2016-04-29 10:51:13 +02:00
Frank Denis
681176e187 abort() if nacl_secure_random() ever returns 0 but the wrong size 2016-04-29 10:08:45 +02:00
Frank Denis
40db481236 Use pepper_49 2016-04-29 09:45:12 +02:00
Frank Denis
fbad64f6ef Disable asm on native client 2016-04-28 21:31:18 +02:00
Frank Denis
5f3b59c8b0 Tabify 2016-04-27 11:37:21 +02:00
Frank Denis
46539b9381 Indent 2016-04-27 00:11:00 +02:00
Frank Denis
ffd5987e7c Proper lock test on Windows 2016-04-26 01:43:00 +02:00
Frank Denis
d908d08b0d Simplify the fallback _sodium_crit_enter() code 2016-04-25 20:15:33 +02:00
Frank Denis
f8ff8ebf66 Add locks around sodium_init() 2016-04-25 18:33:11 +02:00
Frank Denis
14211cd7ea Update include guard 2016-04-22 12:01:56 +02:00
Frank Denis
b2586f5402 Use the same convention for include guards everywhere 2016-04-22 11:46:37 +02:00
Frank Denis
801fbde757 scrypt/sse - Note that B's layout is permuted compared to nosse 2016-04-21 20:37:11 +02:00
Frank Denis
2de4b3f514 Hand-roll zeroing instead of relying on memset() 2016-04-21 17:17:24 +02:00
Frank Denis
24daccad11 Remove README 2016-04-19 02:20:32 +02:00
Frank Denis
107513fdea Larger logo, less prominent saltcellar 2016-04-19 02:16:50 +02:00
Frank Denis
b94a76f8ab Import ax_pthread.m4 2016-04-19 00:27:35 +02:00
Frank Denis
e816ffb56c Quotes 2016-04-19 00:24:46 +02:00
Frank Denis
492d4b1dd6 Repair NativeClient support 2016-04-18 21:40:18 +02:00
Frank Denis
bdf5c8246b Compile with pthreads 2016-04-18 20:54:46 +02:00
Frank Denis
8ab4334945 if -> ifdef 2016-04-18 16:53:34 +02:00
Frank Denis
214f16802b Do not use emscripten's headless mode 2016-04-17 23:58:44 +02:00
Frank Denis
4ff0d326e1 Remove crypto_pwhash_*() from the non-sumo Javascript distribution 2016-04-17 23:18:18 +02:00
Frank Denis
9aab628b97 pwhash_*() require heap allocations, but everything else doesn't 2016-04-17 23:15:53 +02:00
Frank Denis
5dce2b5c64 Revamp the emscripten build script 2016-04-17 22:45:37 +02:00
Frank Denis
7055d81aaa Reduce TOTAL_MEMORY 2016-04-15 00:32:09 +02:00
Frank Denis
da65a7f003 JS target: use -Os instead of -O3
Performance is roughly the same, but output is noticeably smaller
2016-04-14 23:13:40 +02:00