Make OPENSSL_rdtsc universally available.
authorPauli <paul.dale@oracle.com>
Mon, 5 Feb 2018 21:16:26 +0000 (07:16 +1000)
committerPauli <paul.dale@oracle.com>
Wed, 7 Feb 2018 00:08:15 +0000 (10:08 +1000)
commit360fc9f412f1f60a4644228d9b6d386161aad406
treeafe5edd0f7ed08361411af5b7dfed591f4bb88a3
parent2ad2281a8005dbc9046059693995c78a04ed9e37
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)
crypto/cryptlib.c
include/internal/cryptlib.h