Commit 181480b1 by Copybara-Service

Merge pull request #1458 from juergbi:aix

PiperOrigin-RevId: 538488164
Change-Id: I680dcbc2f27dca3beba416b3cd0a55943751cf4c
parents 86aaa72a 339c79d4
...@@ -71,13 +71,12 @@ int64_t UnscaledCycleClock::Now() { ...@@ -71,13 +71,12 @@ int64_t UnscaledCycleClock::Now() {
#else #else
int32_t tbu, tbl, tmp; int32_t tbu, tbl, tmp;
asm volatile( asm volatile(
"0:\n"
"mftbu %[hi32]\n" "mftbu %[hi32]\n"
"mftb %[lo32]\n" "mftb %[lo32]\n"
"mftbu %[tmp]\n" "mftbu %[tmp]\n"
"cmpw %[tmp],%[hi32]\n" "cmpw %[tmp],%[hi32]\n"
"bne 0b\n" "bne $-16\n" // Retry on failure.
: [ hi32 ] "=r"(tbu), [ lo32 ] "=r"(tbl), [ tmp ] "=r"(tmp)); : [hi32] "=r"(tbu), [lo32] "=r"(tbl), [tmp] "=r"(tmp));
return (static_cast<int64_t>(tbu) << 32) | tbl; return (static_cast<int64_t>(tbu) << 32) | tbl;
#endif #endif
#endif #endif
......
...@@ -25,6 +25,8 @@ absl_cc_library( ...@@ -25,6 +25,8 @@ absl_cc_library(
"status_payload_printer.cc" "status_payload_printer.cc"
COPTS COPTS
${ABSL_DEFAULT_COPTS} ${ABSL_DEFAULT_COPTS}
DEFINES
"$<$<PLATFORM_ID:AIX>:_LINUX_SOURCE_COMPAT>"
DEPS DEPS
absl::atomic_hook absl::atomic_hook
absl::config absl::config
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment