Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
7b8526d6
Commit
7b8526d6
authored
9 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'yawning/feature16535'
parents
7efdf5cb
971eba0f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ext/ed25519/donna/ed25519-donna-portable.h
+10
-10
10 additions, 10 deletions
src/ext/ed25519/donna/ed25519-donna-portable.h
with
10 additions
and
10 deletions
src/ext/ed25519/donna/ed25519-donna-portable.h
+
10
−
10
View file @
7b8526d6
...
...
@@ -144,6 +144,16 @@ static inline void U64TO8_LE(unsigned char *p, const uint64_t v) {
#endif
#endif
/* Tor: Force enable SSE2 on 32 bit x86 systems if the compile target
* architecture supports it. This is not done on x86-64 as the non-SSE2
* code benchmarks better, at least on Haswell.
*/
#if defined(__SSE2__)
/* && !defined(CPU_X86_64) */
/* undef in case it's manually specified... */
#undef ED25519_SSE2
#define ED25519_SSE2
#endif
/* Tor: GCC's Stack Protector freaks out and produces variable length
* buffer warnings when alignment is requested that is greater than
* STACK_BOUNDARY (x86 has special code to deal with this for SSE2).
...
...
@@ -158,16 +168,6 @@ static inline void U64TO8_LE(unsigned char *p, const uint64_t v) {
#define ALIGN(x)
#endif
/* Tor: Force enable SSE2 on 32 bit x86 systems if the compile target
* architecture supports it. This is not done on x86-64 as the non-SSE2
* code benchmarks better, at least on Haswell.
*/
#if defined(__SSE2__) && !defined(CPU_X86_64)
/* undef in case it's manually specified... */
#undef ED25519_SSE2
#define ED25519_SSE2
#endif
#include
<stdlib.h>
#include
<string.h>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment