Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/BLAKE2/BLAKE2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Neves <sneves@dei.uc.pt>2016-06-12 18:37:10 +0300
committerSamuel Neves <sneves@dei.uc.pt>2016-06-12 18:37:10 +0300
commit369aa70c0cd68933cfb5c1d253bf10f0aa36f68d (patch)
tree6ac4ff44a351ab948341092cb96130e602b37863 /bench/amd64cpuinfo.c
parent88df903283b721e5dfcb488331fd90c45f940d25 (diff)
bench portability
Diffstat (limited to 'bench/amd64cpuinfo.c')
-rw-r--r--bench/amd64cpuinfo.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/bench/amd64cpuinfo.c b/bench/amd64cpuinfo.c
deleted file mode 100644
index 70ed361..0000000
--- a/bench/amd64cpuinfo.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- BLAKE2 reference source code package - benchmark tool
-
- Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the
- terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
- your option. The terms of these licenses can be found at:
-
- - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
- - OpenSSL license : https://www.openssl.org/source/license.html
- - Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
-
- More information about the BLAKE2 hash function can be found at
- https://blake2.net.
-*/
-
-unsigned long long cpucycles( void )
-{
- unsigned long long result;
- asm volatile( ".byte 15;.byte 49;shlq $32,%%rdx;orq %%rdx,%%rax"
- : "=a" ( result ) :: "%rdx" );
- return result;
-}