diff options
author | Andres Erbsen <andreser@mit.edu> | 2017-07-05 14:32:34 -0400 |
---|---|---|
committer | Andres Erbsen <andreser@mit.edu> | 2017-07-05 14:32:34 -0400 |
commit | e014b3acd1c78070f3ffe697c00988e78828726f (patch) | |
tree | 848e463cef869c89c92cb23a812c5921dc851d47 /third_party/openssl-nistz256-amd64/bench_madd.c | |
parent | cdab01cfb8fd963164e5c434ead83fd46d3d6ff3 (diff) |
benchmark NISTZ256 with and without adx
Diffstat (limited to 'third_party/openssl-nistz256-amd64/bench_madd.c')
-rw-r--r-- | third_party/openssl-nistz256-amd64/bench_madd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/openssl-nistz256-amd64/bench_madd.c b/third_party/openssl-nistz256-amd64/bench_madd.c new file mode 100644 index 000000000..364663d22 --- /dev/null +++ b/third_party/openssl-nistz256-amd64/bench_madd.c @@ -0,0 +1,8 @@ +#include <stdint.h> +#include "nistz256.h" + +void bench_madd(unsigned char* buf) { + P256_POINT* r = (P256_POINT*) buf; + P256_POINT_AFFINE* b = (P256_POINT_AFFINE*) (buf + sizeof(P256_POINT)); + ecp_nistz256_point_add_affine(r, r, b); +} |