Changes imported from Abseil "staging" branch:

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

GitOrigin-RevId: 3eaa80f3372d679f9c7ecd7661971d7a4ee3766a
Change-Id: Ib77722fc43798a7321443eced4eb9da2b7e40064
pull/41/head
Abseil Team 8 years ago committed by katzdm
parent 075cf62092
commit ee2e3f667f
  1. 6
      absl/numeric/BUILD.bazel
  2. 6
      absl/numeric/int128.h
  3. 2
      absl/numeric/int128_have_intrinsic.inc

@ -10,7 +10,11 @@ licenses(["notice"]) # Apache 2.0
cc_library(
name = "int128",
srcs = ["int128.cc"],
srcs = [
"int128.cc",
"int128_have_intrinsic.inc",
"int128_no_intrinsic.inc",
],
hdrs = ["int128.h"],
copts = ABSL_DEFAULT_COPTS,
deps = [

@ -625,6 +625,12 @@ inline uint128& uint128::operator--() {
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
#endif // ABSL_NUMERIC_INT128_H_

@ -1,3 +1,3 @@
// This file will contain :int128 implementation details that depend on internal
// representation when ABSL_HAVE_INTRINSIC_INT128 is defined. This file will be
// included by int128.h.
// included by int128.h.

Loading…
Cancel
Save