Commit ee2e3f66 by Abseil Team Committed by katzdm

Changes imported from Abseil "staging" branch:

  - 3eaa80f3372d679f9c7ecd7661971d7a4ee3766a Include implementation files in header. by Alex Strelnikov <strel@google.com>

GitOrigin-RevId: 3eaa80f3372d679f9c7ecd7661971d7a4ee3766a
Change-Id: Ib77722fc43798a7321443eced4eb9da2b7e40064
parent 075cf620
...@@ -10,7 +10,11 @@ licenses(["notice"]) # Apache 2.0 ...@@ -10,7 +10,11 @@ licenses(["notice"]) # Apache 2.0
cc_library( cc_library(
name = "int128", name = "int128",
srcs = ["int128.cc"], srcs = [
"int128.cc",
"int128_have_intrinsic.inc",
"int128_no_intrinsic.inc",
],
hdrs = ["int128.h"], hdrs = ["int128.h"],
copts = ABSL_DEFAULT_COPTS, copts = ABSL_DEFAULT_COPTS,
deps = [ deps = [
......
...@@ -625,6 +625,12 @@ inline uint128& uint128::operator--() { ...@@ -625,6 +625,12 @@ inline uint128& uint128::operator--() {
return *this; return *this;
} }
#if defined(ABSL_HAVE_INTRINSIC_INT128)
#include "absl/numeric/int128_have_intrinsic.inc"
#else // ABSL_HAVE_INTRINSIC_INT128
#include "absl/numeric/int128_no_intrinsic.inc"
#endif // ABSL_HAVE_INTRINSIC_INT128
} // namespace absl } // namespace absl
#endif // ABSL_NUMERIC_INT128_H_ #endif // ABSL_NUMERIC_INT128_H_
// This file will contain :int128 implementation details that depend on internal // This file will contain :int128 implementation details that depend on internal
// representation when ABSL_HAVE_INTRINSIC_INT128 is defined. This file will be // representation when ABSL_HAVE_INTRINSIC_INT128 is defined. This file will be
// included by int128.h. // included by int128.h.
\ No newline at end of file
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