1#
2# Copyright 2017 The Abseil Authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      https://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17absl_cc_library(
18  NAME
19    bits
20  HDRS
21    "bits.h"
22    "internal/bits.h"
23  COPTS
24    ${ABSL_DEFAULT_COPTS}
25  DEPS
26    absl::core_headers
27  PUBLIC
28)
29
30absl_cc_test(
31  NAME
32    bits_test
33  SRCS
34    "bits_test.cc"
35  COPTS
36    ${ABSL_TEST_COPTS}
37  DEPS
38    absl::bits
39    absl::core_headers
40    absl::random_random
41    GTest::gmock_main
42)
43
44absl_cc_library(
45  NAME
46    int128
47  HDRS
48    "int128.h"
49  SRCS
50    "int128.cc"
51    "int128_have_intrinsic.inc"
52    "int128_no_intrinsic.inc"
53  COPTS
54    ${ABSL_DEFAULT_COPTS}
55  DEPS
56    absl::config
57    absl::core_headers
58    absl::bits
59  PUBLIC
60)
61
62absl_cc_test(
63  NAME
64    int128_test
65  SRCS
66    "int128_stream_test.cc"
67    "int128_test.cc"
68  COPTS
69    ${ABSL_TEST_COPTS}
70  DEPS
71    absl::int128
72    absl::base
73    absl::hash_testing
74    absl::type_traits
75    GTest::gmock_main
76)
77
78# component target
79absl_cc_library(
80  NAME
81    numeric
82  COPTS
83    ${ABSL_DEFAULT_COPTS}
84  DEPS
85    absl::int128
86  PUBLIC
87)
88
89absl_cc_library(
90  NAME
91    numeric_representation
92  HDRS
93    "internal/representation.h"
94  COPTS
95    ${ABSL_DEFAULT_COPTS}
96  DEPS
97    absl::config
98  PUBLIC
99)
100