summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2018-02-06 07:16:26 +1000
committerPauli <paul.dale@oracle.com>2018-02-07 10:08:15 +1000
commit360fc9f412f1f60a4644228d9b6d386161aad406 (patch)
treeafe5edd0f7ed08361411af5b7dfed591f4bb88a3 /include
parent2ad2281a8005dbc9046059693995c78a04ed9e37 (diff)
Make OPENSSL_rdtsc universally available.
If such a timer/counter register is not available, the return value is always zero. This matches the assembly implementations' behaviour. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/5231)
Diffstat (limited to 'include')
-rw-r--r--include/internal/cryptlib.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/internal/cryptlib.h b/include/internal/cryptlib.h
index 25ccdb1001..8a96de9847 100644
--- a/include/internal/cryptlib.h
+++ b/include/internal/cryptlib.h
@@ -1,5 +1,5 @@
/*
- * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -94,9 +94,7 @@ FILE *openssl_fopen(const char *filename, const char *mode);
void *openssl_fopen(const char *filename, const char *mode);
# endif
-#ifdef OPENSSL_CPUID_OBJ
-uint32_t OPENSSL_rdtsc();
-#endif
+uint32_t OPENSSL_rdtsc(void);
#ifdef __cplusplus
}