clickhouse-native 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. checksums.yaml +7 -0
  2. data/ext/clickhouse_native/client.cpp +847 -0
  3. data/ext/clickhouse_native/extconf.rb +101 -0
  4. data/ext/clickhouse_native/vendor/clickhouse-cpp/.clang-format +11 -0
  5. data/ext/clickhouse_native/vendor/clickhouse-cpp/.git +1 -0
  6. data/ext/clickhouse_native/vendor/clickhouse-cpp/.gitattributes +63 -0
  7. data/ext/clickhouse_native/vendor/clickhouse-cpp/.github/CODEOWNERS +1 -0
  8. data/ext/clickhouse_native/vendor/clickhouse-cpp/.github/workflows/linux.yml +139 -0
  9. data/ext/clickhouse_native/vendor/clickhouse-cpp/.github/workflows/macos.yml +87 -0
  10. data/ext/clickhouse_native/vendor/clickhouse-cpp/.github/workflows/windows_mingw.yml +102 -0
  11. data/ext/clickhouse_native/vendor/clickhouse-cpp/.github/workflows/windows_msvc.yml +74 -0
  12. data/ext/clickhouse_native/vendor/clickhouse-cpp/.gitignore +280 -0
  13. data/ext/clickhouse_native/vendor/clickhouse-cpp/.travis.yml +62 -0
  14. data/ext/clickhouse_native/vendor/clickhouse-cpp/CMakeLists.txt +157 -0
  15. data/ext/clickhouse_native/vendor/clickhouse-cpp/LICENSE +206 -0
  16. data/ext/clickhouse_native/vendor/clickhouse-cpp/README.md +260 -0
  17. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/CMakeLists.txt +246 -0
  18. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/buffer.h +10 -0
  19. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/compressed.cpp +258 -0
  20. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/compressed.h +48 -0
  21. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/endpoints_iterator.cpp +20 -0
  22. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/endpoints_iterator.h +34 -0
  23. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/input.cpp +96 -0
  24. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/input.h +103 -0
  25. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/open_telemetry.h +23 -0
  26. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/output.cpp +119 -0
  27. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/output.h +142 -0
  28. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/platform.cpp +1 -0
  29. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/platform.h +33 -0
  30. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/projected_iterator.h +55 -0
  31. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/singleton.h +11 -0
  32. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/socket.cpp +489 -0
  33. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/socket.h +177 -0
  34. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/sslsocket.cpp +307 -0
  35. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/sslsocket.h +111 -0
  36. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/string_utils.h +28 -0
  37. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/string_view.h +142 -0
  38. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/uuid.h +10 -0
  39. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/wire_format.cpp +177 -0
  40. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/base/wire_format.h +79 -0
  41. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/block.cpp +134 -0
  42. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/block.h +114 -0
  43. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/client.cpp +1269 -0
  44. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/client.h +320 -0
  45. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/array.cpp +175 -0
  46. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/array.h +321 -0
  47. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/column.cpp +24 -0
  48. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/column.h +107 -0
  49. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/date.cpp +365 -0
  50. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/date.h +245 -0
  51. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/decimal.cpp +255 -0
  52. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/decimal.h +50 -0
  53. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/enum.cpp +123 -0
  54. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/enum.h +65 -0
  55. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/factory.cpp +285 -0
  56. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/factory.h +14 -0
  57. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/geo.cpp +108 -0
  58. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/geo.h +79 -0
  59. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/ip4.cpp +117 -0
  60. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/ip4.h +71 -0
  61. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/ip6.cpp +108 -0
  62. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/ip6.h +66 -0
  63. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/itemview.cpp +101 -0
  64. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/itemview.h +86 -0
  65. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/lowcardinality.cpp +527 -0
  66. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/lowcardinality.h +221 -0
  67. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/lowcardinalityadaptor.h +63 -0
  68. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/map.cpp +87 -0
  69. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/map.h +257 -0
  70. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/nothing.h +87 -0
  71. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/nullable.cpp +109 -0
  72. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/nullable.h +153 -0
  73. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/numeric.cpp +126 -0
  74. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/numeric.h +88 -0
  75. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/string.cpp +333 -0
  76. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/string.h +145 -0
  77. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/time.cpp +155 -0
  78. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/time.h +118 -0
  79. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/tuple.cpp +106 -0
  80. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/tuple.h +178 -0
  81. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/utils.h +41 -0
  82. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/uuid.cpp +80 -0
  83. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/columns/uuid.h +58 -0
  84. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/error_codes.h +595 -0
  85. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/exceptions.h +66 -0
  86. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/protocol.h +54 -0
  87. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/query.cpp +25 -0
  88. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/query.h +246 -0
  89. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/server_exception.h +16 -0
  90. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/types/type_parser.cpp +314 -0
  91. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/types/type_parser.h +89 -0
  92. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/types/types.cpp +484 -0
  93. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/types/types.h +397 -0
  94. data/ext/clickhouse_native/vendor/clickhouse-cpp/clickhouse/version.h +14 -0
  95. data/ext/clickhouse_native/vendor/clickhouse-cpp/cmake/Findcityhash.cmake +26 -0
  96. data/ext/clickhouse_native/vendor/clickhouse-cpp/cmake/Findlz4.cmake +39 -0
  97. data/ext/clickhouse_native/vendor/clickhouse-cpp/cmake/Findzstd.cmake +39 -0
  98. data/ext/clickhouse_native/vendor/clickhouse-cpp/cmake/cpp17.cmake +8 -0
  99. data/ext/clickhouse_native/vendor/clickhouse-cpp/cmake/openssl.cmake +8 -0
  100. data/ext/clickhouse_native/vendor/clickhouse-cpp/cmake/subdirs.cmake +5 -0
  101. data/ext/clickhouse_native/vendor/clickhouse-cpp/cmake/version.cmake +87 -0
  102. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/CMakeLists.txt +9 -0
  103. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/base/attributes.h +682 -0
  104. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/base/config.h +714 -0
  105. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/base/internal/bits.h +219 -0
  106. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/base/macros.h +147 -0
  107. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/base/optimization.h +241 -0
  108. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/base/options.h +238 -0
  109. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/base/policy_checks.h +111 -0
  110. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/base/port.h +26 -0
  111. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/numeric/int128.cc +390 -0
  112. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/numeric/int128.h +1092 -0
  113. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/numeric/int128_have_intrinsic.inc +302 -0
  114. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/absl/absl/numeric/int128_no_intrinsic.inc +308 -0
  115. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/cityhash/cityhash/BUCK +13 -0
  116. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/cityhash/cityhash/CMakeLists.txt +7 -0
  117. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/cityhash/cityhash/COPYING +19 -0
  118. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/cityhash/cityhash/city.cc +469 -0
  119. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/cityhash/cityhash/city.h +90 -0
  120. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/cityhash/cityhash/citycrc.h +43 -0
  121. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/cityhash/cityhash/config.h +118 -0
  122. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/BUCK +14 -0
  123. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/CMakeLists.txt +4 -0
  124. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/LICENSE +28 -0
  125. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/README.md +1 -0
  126. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest-death-test.h +346 -0
  127. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest-matchers.h +930 -0
  128. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest-message.h +219 -0
  129. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest-param-test.h +507 -0
  130. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest-printers.h +1029 -0
  131. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest-spi.h +238 -0
  132. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest-test-part.h +184 -0
  133. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest-typed-test.h +329 -0
  134. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest.h +2495 -0
  135. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest_pred_impl.h +359 -0
  136. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/gtest_prod.h +61 -0
  137. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/custom/README.md +56 -0
  138. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/custom/gtest-port.h +37 -0
  139. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/custom/gtest-printers.h +42 -0
  140. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/custom/gtest.h +37 -0
  141. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/gtest-death-test-internal.h +304 -0
  142. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/gtest-filepath.h +211 -0
  143. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/gtest-internal.h +1560 -0
  144. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/gtest-param-util.h +947 -0
  145. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/gtest-port-arch.h +114 -0
  146. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/gtest-port.h +2389 -0
  147. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/gtest-string.h +175 -0
  148. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/include/gtest/internal/gtest-type-util.h +183 -0
  149. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest-all.cc +48 -0
  150. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest-death-test.cc +1644 -0
  151. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest-filepath.cc +369 -0
  152. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest-internal-inl.h +1221 -0
  153. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest-matchers.cc +97 -0
  154. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest-port.cc +1433 -0
  155. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest-printers.cc +533 -0
  156. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest-test-part.cc +108 -0
  157. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest-typed-test.cc +107 -0
  158. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest.cc +6746 -0
  159. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/gtest/src/gtest_main.cc +54 -0
  160. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/lz4/lz4/BUCK +13 -0
  161. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/lz4/lz4/CMakeLists.txt +8 -0
  162. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/lz4/lz4/LICENSE +24 -0
  163. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/lz4/lz4/lz4.c +2402 -0
  164. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/lz4/lz4/lz4.h +764 -0
  165. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/lz4/lz4/lz4hc.c +1554 -0
  166. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/lz4/lz4/lz4hc.h +438 -0
  167. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/BUCK +232 -0
  168. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/CMakeLists.txt +115 -0
  169. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/LICENSE +30 -0
  170. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/allocations.h +55 -0
  171. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/bits.h +200 -0
  172. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/bitstream.h +437 -0
  173. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/compiler.h +358 -0
  174. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/cpu.h +213 -0
  175. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/debug.c +24 -0
  176. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/debug.h +107 -0
  177. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/entropy_common.c +340 -0
  178. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/error_private.c +63 -0
  179. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/error_private.h +159 -0
  180. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/fse.h +639 -0
  181. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/fse_decompress.c +311 -0
  182. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/huf.h +273 -0
  183. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/mem.h +435 -0
  184. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/pool.c +371 -0
  185. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/pool.h +90 -0
  186. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/portability_macros.h +156 -0
  187. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/threading.c +176 -0
  188. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/threading.h +150 -0
  189. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/xxhash.c +24 -0
  190. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/xxhash.h +5686 -0
  191. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/zstd_common.c +48 -0
  192. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/zstd_deps.h +111 -0
  193. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/zstd_internal.h +392 -0
  194. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/common/zstd_trace.h +163 -0
  195. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/clevels.h +134 -0
  196. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/fse_compress.c +624 -0
  197. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/hist.c +181 -0
  198. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/hist.h +75 -0
  199. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/huf_compress.c +1435 -0
  200. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_compress.c +7032 -0
  201. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_compress_internal.h +1532 -0
  202. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_compress_literals.c +235 -0
  203. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_compress_literals.h +39 -0
  204. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_compress_sequences.c +442 -0
  205. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_compress_sequences.h +54 -0
  206. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_compress_superblock.c +577 -0
  207. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_compress_superblock.h +32 -0
  208. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_cwksp.h +742 -0
  209. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_double_fast.c +758 -0
  210. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_double_fast.h +39 -0
  211. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_fast.c +960 -0
  212. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_fast.h +38 -0
  213. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_lazy.c +2157 -0
  214. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_lazy.h +127 -0
  215. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_ldm.c +724 -0
  216. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_ldm.h +117 -0
  217. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_ldm_geartab.h +106 -0
  218. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_opt.c +1472 -0
  219. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstd_opt.h +56 -0
  220. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstdmt_compress.c +1867 -0
  221. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/compress/zstdmt_compress.h +113 -0
  222. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/decompress/huf_decompress.c +1882 -0
  223. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/decompress/huf_decompress_amd64.S +576 -0
  224. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/decompress/zstd_ddict.c +244 -0
  225. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/decompress/zstd_ddict.h +44 -0
  226. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/decompress/zstd_decompress.c +2355 -0
  227. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/decompress/zstd_decompress_block.c +2192 -0
  228. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/decompress/zstd_decompress_block.h +73 -0
  229. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/decompress/zstd_decompress_internal.h +238 -0
  230. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/dictBuilder/cover.c +1257 -0
  231. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/dictBuilder/cover.h +158 -0
  232. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/dictBuilder/divsufsort.c +1913 -0
  233. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/dictBuilder/divsufsort.h +67 -0
  234. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/dictBuilder/fastcover.c +766 -0
  235. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/dictBuilder/zdict.c +1127 -0
  236. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_legacy.h +422 -0
  237. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v01.c +2125 -0
  238. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v01.h +94 -0
  239. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v02.c +3477 -0
  240. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v02.h +93 -0
  241. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v03.c +3117 -0
  242. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v03.h +93 -0
  243. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v04.c +3605 -0
  244. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v04.h +142 -0
  245. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v05.c +4004 -0
  246. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v05.h +162 -0
  247. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v06.c +4113 -0
  248. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v06.h +172 -0
  249. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v07.c +4498 -0
  250. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/legacy/zstd_v07.h +187 -0
  251. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/zdict.h +474 -0
  252. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/zstd.h +3020 -0
  253. data/ext/clickhouse_native/vendor/clickhouse-cpp/contrib/zstd/zstd/zstd_errors.h +114 -0
  254. data/lib/clickhouse_native/clickhouse_native.bundle +0 -0
  255. data/lib/clickhouse_native/client.rb +50 -0
  256. data/lib/clickhouse_native/errors.rb +23 -0
  257. data/lib/clickhouse_native/pool.rb +49 -0
  258. data/lib/clickhouse_native/version.rb +3 -0
  259. data/lib/clickhouse_native.rb +8 -0
  260. metadata +369 -0
@@ -0,0 +1,390 @@
1
+ // Copyright 2017 The Abseil Authors.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // https://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ #include "int128.h"
16
+
17
+ #include <stddef.h>
18
+
19
+ #include <cassert>
20
+ #include <iomanip>
21
+ #include <ostream> // NOLINT(readability/streams)
22
+ #include <sstream>
23
+ #include <string>
24
+ #include <type_traits>
25
+
26
+ #include "absl/base/internal/bits.h"
27
+ #include "absl/base/optimization.h"
28
+
29
+ namespace absl {
30
+ ABSL_NAMESPACE_BEGIN
31
+
32
+ ABSL_DLL const uint128 kuint128max = MakeUint128(
33
+ std::numeric_limits<uint64_t>::max(), std::numeric_limits<uint64_t>::max());
34
+
35
+ namespace {
36
+
37
+ // Returns the 0-based position of the last set bit (i.e., most significant bit)
38
+ // in the given uint128. The argument is not 0.
39
+ //
40
+ // For example:
41
+ // Given: 5 (decimal) == 101 (binary)
42
+ // Returns: 2
43
+ inline ABSL_ATTRIBUTE_ALWAYS_INLINE int Fls128(uint128 n) {
44
+ if (uint64_t hi = Uint128High64(n)) {
45
+ ABSL_INTERNAL_ASSUME(hi != 0);
46
+ return 127 - base_internal::CountLeadingZeros64(hi);
47
+ }
48
+ const uint64_t low = Uint128Low64(n);
49
+ ABSL_INTERNAL_ASSUME(low != 0);
50
+ return 63 - base_internal::CountLeadingZeros64(low);
51
+ }
52
+
53
+ // Long division/modulo for uint128 implemented using the shift-subtract
54
+ // division algorithm adapted from:
55
+ // https://stackoverflow.com/questions/5386377/division-without-using
56
+ inline void DivModImpl(uint128 dividend, uint128 divisor, uint128* quotient_ret,
57
+ uint128* remainder_ret) {
58
+ assert(divisor != 0);
59
+
60
+ if (divisor > dividend) {
61
+ *quotient_ret = 0;
62
+ *remainder_ret = dividend;
63
+ return;
64
+ }
65
+
66
+ if (divisor == dividend) {
67
+ *quotient_ret = 1;
68
+ *remainder_ret = 0;
69
+ return;
70
+ }
71
+
72
+ uint128 denominator = divisor;
73
+ uint128 quotient = 0;
74
+
75
+ // Left aligns the MSB of the denominator and the dividend.
76
+ const int shift = Fls128(dividend) - Fls128(denominator);
77
+ denominator <<= shift;
78
+
79
+ // Uses shift-subtract algorithm to divide dividend by denominator. The
80
+ // remainder will be left in dividend.
81
+ for (int i = 0; i <= shift; ++i) {
82
+ quotient <<= 1;
83
+ if (dividend >= denominator) {
84
+ dividend -= denominator;
85
+ quotient |= 1;
86
+ }
87
+ denominator >>= 1;
88
+ }
89
+
90
+ *quotient_ret = quotient;
91
+ *remainder_ret = dividend;
92
+ }
93
+
94
+ template <typename T>
95
+ uint128 MakeUint128FromFloat(T v) {
96
+ static_assert(std::is_floating_point<T>::value, "");
97
+
98
+ // Rounding behavior is towards zero, same as for built-in types.
99
+
100
+ // Undefined behavior if v is NaN or cannot fit into uint128.
101
+ assert(std::isfinite(v) && v > -1 &&
102
+ (std::numeric_limits<T>::max_exponent <= 128 ||
103
+ v < std::ldexp(static_cast<T>(1), 128)));
104
+
105
+ if (v >= std::ldexp(static_cast<T>(1), 64)) {
106
+ uint64_t hi = static_cast<uint64_t>(std::ldexp(v, -64));
107
+ uint64_t lo = static_cast<uint64_t>(v - std::ldexp(static_cast<T>(hi), 64));
108
+ return MakeUint128(hi, lo);
109
+ }
110
+
111
+ return MakeUint128(0, static_cast<uint64_t>(v));
112
+ }
113
+
114
+ #if defined(__clang__) && !defined(__SSE3__)
115
+ // Workaround for clang bug: https://bugs.llvm.org/show_bug.cgi?id=38289
116
+ // Casting from long double to uint64_t is miscompiled and drops bits.
117
+ // It is more work, so only use when we need the workaround.
118
+ uint128 MakeUint128FromFloat(long double v) {
119
+ // Go 50 bits at a time, that fits in a double
120
+ static_assert(std::numeric_limits<double>::digits >= 50, "");
121
+ static_assert(std::numeric_limits<long double>::digits <= 150, "");
122
+ // Undefined behavior if v is not finite or cannot fit into uint128.
123
+ assert(std::isfinite(v) && v > -1 && v < std::ldexp(1.0L, 128));
124
+
125
+ v = std::ldexp(v, -100);
126
+ uint64_t w0 = static_cast<uint64_t>(static_cast<double>(std::trunc(v)));
127
+ v = std::ldexp(v - static_cast<double>(w0), 50);
128
+ uint64_t w1 = static_cast<uint64_t>(static_cast<double>(std::trunc(v)));
129
+ v = std::ldexp(v - static_cast<double>(w1), 50);
130
+ uint64_t w2 = static_cast<uint64_t>(static_cast<double>(std::trunc(v)));
131
+ return (static_cast<uint128>(w0) << 100) | (static_cast<uint128>(w1) << 50) |
132
+ static_cast<uint128>(w2);
133
+ }
134
+ #endif // __clang__ && !__SSE3__
135
+ } // namespace
136
+
137
+ uint128::uint128(float v) : uint128(MakeUint128FromFloat(v)) {}
138
+ uint128::uint128(double v) : uint128(MakeUint128FromFloat(v)) {}
139
+ uint128::uint128(long double v) : uint128(MakeUint128FromFloat(v)) {}
140
+
141
+ uint128 operator/(uint128 lhs, uint128 rhs) {
142
+ #if defined(ABSL_HAVE_INTRINSIC_INT128)
143
+ return static_cast<unsigned __int128>(lhs) /
144
+ static_cast<unsigned __int128>(rhs);
145
+ #else // ABSL_HAVE_INTRINSIC_INT128
146
+ uint128 quotient = 0;
147
+ uint128 remainder = 0;
148
+ DivModImpl(lhs, rhs, &quotient, &remainder);
149
+ return quotient;
150
+ #endif // ABSL_HAVE_INTRINSIC_INT128
151
+ }
152
+ uint128 operator%(uint128 lhs, uint128 rhs) {
153
+ #if defined(ABSL_HAVE_INTRINSIC_INT128)
154
+ return static_cast<unsigned __int128>(lhs) %
155
+ static_cast<unsigned __int128>(rhs);
156
+ #else // ABSL_HAVE_INTRINSIC_INT128
157
+ uint128 quotient = 0;
158
+ uint128 remainder = 0;
159
+ DivModImpl(lhs, rhs, &quotient, &remainder);
160
+ return remainder;
161
+ #endif // ABSL_HAVE_INTRINSIC_INT128
162
+ }
163
+
164
+ namespace {
165
+
166
+ std::string Uint128ToFormattedString(uint128 v, std::ios_base::fmtflags flags) {
167
+ // Select a divisor which is the largest power of the base < 2^64.
168
+ uint128 div;
169
+ int div_base_log;
170
+ switch (flags & std::ios::basefield) {
171
+ case std::ios::hex:
172
+ div = 0x1000000000000000; // 16^15
173
+ div_base_log = 15;
174
+ break;
175
+ case std::ios::oct:
176
+ div = 01000000000000000000000; // 8^21
177
+ div_base_log = 21;
178
+ break;
179
+ default: // std::ios::dec
180
+ div = 10000000000000000000u; // 10^19
181
+ div_base_log = 19;
182
+ break;
183
+ }
184
+
185
+ // Now piece together the uint128 representation from three chunks of the
186
+ // original value, each less than "div" and therefore representable as a
187
+ // uint64_t.
188
+ std::ostringstream os;
189
+ std::ios_base::fmtflags copy_mask =
190
+ std::ios::basefield | std::ios::showbase | std::ios::uppercase;
191
+ os.setf(flags & copy_mask, copy_mask);
192
+ uint128 high = v;
193
+ uint128 low;
194
+ DivModImpl(high, div, &high, &low);
195
+ uint128 mid;
196
+ DivModImpl(high, div, &high, &mid);
197
+ if (Uint128Low64(high) != 0) {
198
+ os << Uint128Low64(high);
199
+ os << std::noshowbase << std::setfill('0') << std::setw(div_base_log);
200
+ os << Uint128Low64(mid);
201
+ os << std::setw(div_base_log);
202
+ } else if (Uint128Low64(mid) != 0) {
203
+ os << Uint128Low64(mid);
204
+ os << std::noshowbase << std::setfill('0') << std::setw(div_base_log);
205
+ }
206
+ os << Uint128Low64(low);
207
+ return os.str();
208
+ }
209
+
210
+ } // namespace
211
+
212
+ std::ostream& operator<<(std::ostream& os, uint128 v) {
213
+ std::ios_base::fmtflags flags = os.flags();
214
+ std::string rep = Uint128ToFormattedString(v, flags);
215
+
216
+ // Add the requisite padding.
217
+ std::streamsize width = os.width(0);
218
+ if (static_cast<size_t>(width) > rep.size()) {
219
+ std::ios::fmtflags adjustfield = flags & std::ios::adjustfield;
220
+ if (adjustfield == std::ios::left) {
221
+ rep.append(width - rep.size(), os.fill());
222
+ } else if (adjustfield == std::ios::internal &&
223
+ (flags & std::ios::showbase) &&
224
+ (flags & std::ios::basefield) == std::ios::hex && v != 0) {
225
+ rep.insert(2, width - rep.size(), os.fill());
226
+ } else {
227
+ rep.insert(0, width - rep.size(), os.fill());
228
+ }
229
+ }
230
+
231
+ return os << rep;
232
+ }
233
+
234
+ namespace {
235
+
236
+ uint128 UnsignedAbsoluteValue(int128 v) {
237
+ // Cast to uint128 before possibly negating because -Int128Min() is undefined.
238
+ return Int128High64(v) < 0 ? -uint128(v) : uint128(v);
239
+ }
240
+
241
+ } // namespace
242
+
243
+ #if !defined(ABSL_HAVE_INTRINSIC_INT128)
244
+ namespace {
245
+
246
+ template <typename T>
247
+ int128 MakeInt128FromFloat(T v) {
248
+ // Conversion when v is NaN or cannot fit into int128 would be undefined
249
+ // behavior if using an intrinsic 128-bit integer.
250
+ assert(std::isfinite(v) && (std::numeric_limits<T>::max_exponent <= 127 ||
251
+ (v >= -std::ldexp(static_cast<T>(1), 127) &&
252
+ v < std::ldexp(static_cast<T>(1), 127))));
253
+
254
+ // We must convert the absolute value and then negate as needed, because
255
+ // floating point types are typically sign-magnitude. Otherwise, the
256
+ // difference between the high and low 64 bits when interpreted as two's
257
+ // complement overwhelms the precision of the mantissa.
258
+ uint128 result = v < 0 ? -MakeUint128FromFloat(-v) : MakeUint128FromFloat(v);
259
+ return MakeInt128(int128_internal::BitCastToSigned(Uint128High64(result)),
260
+ Uint128Low64(result));
261
+ }
262
+
263
+ } // namespace
264
+
265
+ int128::int128(float v) : int128(MakeInt128FromFloat(v)) {}
266
+ int128::int128(double v) : int128(MakeInt128FromFloat(v)) {}
267
+ int128::int128(long double v) : int128(MakeInt128FromFloat(v)) {}
268
+
269
+ int128 operator/(int128 lhs, int128 rhs) {
270
+ assert(lhs != Int128Min() || rhs != -1); // UB on two's complement.
271
+
272
+ uint128 quotient = 0;
273
+ uint128 remainder = 0;
274
+ DivModImpl(UnsignedAbsoluteValue(lhs), UnsignedAbsoluteValue(rhs),
275
+ &quotient, &remainder);
276
+ if ((Int128High64(lhs) < 0) != (Int128High64(rhs) < 0)) quotient = -quotient;
277
+ return MakeInt128(int128_internal::BitCastToSigned(Uint128High64(quotient)),
278
+ Uint128Low64(quotient));
279
+ }
280
+
281
+ int128 operator%(int128 lhs, int128 rhs) {
282
+ assert(lhs != Int128Min() || rhs != -1); // UB on two's complement.
283
+
284
+ uint128 quotient = 0;
285
+ uint128 remainder = 0;
286
+ DivModImpl(UnsignedAbsoluteValue(lhs), UnsignedAbsoluteValue(rhs),
287
+ &quotient, &remainder);
288
+ if (Int128High64(lhs) < 0) remainder = -remainder;
289
+ return MakeInt128(int128_internal::BitCastToSigned(Uint128High64(remainder)),
290
+ Uint128Low64(remainder));
291
+ }
292
+ #endif // ABSL_HAVE_INTRINSIC_INT128
293
+
294
+ std::ostream& operator<<(std::ostream& os, int128 v) {
295
+ std::ios_base::fmtflags flags = os.flags();
296
+ std::string rep;
297
+
298
+ // Add the sign if needed.
299
+ bool print_as_decimal =
300
+ (flags & std::ios::basefield) == std::ios::dec ||
301
+ (flags & std::ios::basefield) == std::ios_base::fmtflags();
302
+ if (print_as_decimal) {
303
+ if (Int128High64(v) < 0) {
304
+ rep = "-";
305
+ } else if (flags & std::ios::showpos) {
306
+ rep = "+";
307
+ }
308
+ }
309
+
310
+ rep.append(Uint128ToFormattedString(
311
+ print_as_decimal ? UnsignedAbsoluteValue(v) : uint128(v), os.flags()));
312
+
313
+ // Add the requisite padding.
314
+ std::streamsize width = os.width(0);
315
+ if (static_cast<size_t>(width) > rep.size()) {
316
+ switch (flags & std::ios::adjustfield) {
317
+ case std::ios::left:
318
+ rep.append(width - rep.size(), os.fill());
319
+ break;
320
+ case std::ios::internal:
321
+ if (print_as_decimal && (rep[0] == '+' || rep[0] == '-')) {
322
+ rep.insert(1, width - rep.size(), os.fill());
323
+ } else if ((flags & std::ios::basefield) == std::ios::hex &&
324
+ (flags & std::ios::showbase) && v != 0) {
325
+ rep.insert(2, width - rep.size(), os.fill());
326
+ } else {
327
+ rep.insert(0, width - rep.size(), os.fill());
328
+ }
329
+ break;
330
+ default: // std::ios::right
331
+ rep.insert(0, width - rep.size(), os.fill());
332
+ break;
333
+ }
334
+ }
335
+
336
+ return os << rep;
337
+ }
338
+
339
+ ABSL_NAMESPACE_END
340
+ } // namespace absl
341
+
342
+ namespace std {
343
+ constexpr bool numeric_limits<absl::uint128>::is_specialized;
344
+ constexpr bool numeric_limits<absl::uint128>::is_signed;
345
+ constexpr bool numeric_limits<absl::uint128>::is_integer;
346
+ constexpr bool numeric_limits<absl::uint128>::is_exact;
347
+ constexpr bool numeric_limits<absl::uint128>::has_infinity;
348
+ constexpr bool numeric_limits<absl::uint128>::has_quiet_NaN;
349
+ constexpr bool numeric_limits<absl::uint128>::has_signaling_NaN;
350
+ constexpr float_denorm_style numeric_limits<absl::uint128>::has_denorm;
351
+ constexpr bool numeric_limits<absl::uint128>::has_denorm_loss;
352
+ constexpr float_round_style numeric_limits<absl::uint128>::round_style;
353
+ constexpr bool numeric_limits<absl::uint128>::is_iec559;
354
+ constexpr bool numeric_limits<absl::uint128>::is_bounded;
355
+ constexpr bool numeric_limits<absl::uint128>::is_modulo;
356
+ constexpr int numeric_limits<absl::uint128>::digits;
357
+ constexpr int numeric_limits<absl::uint128>::digits10;
358
+ constexpr int numeric_limits<absl::uint128>::max_digits10;
359
+ constexpr int numeric_limits<absl::uint128>::radix;
360
+ constexpr int numeric_limits<absl::uint128>::min_exponent;
361
+ constexpr int numeric_limits<absl::uint128>::min_exponent10;
362
+ constexpr int numeric_limits<absl::uint128>::max_exponent;
363
+ constexpr int numeric_limits<absl::uint128>::max_exponent10;
364
+ constexpr bool numeric_limits<absl::uint128>::traps;
365
+ constexpr bool numeric_limits<absl::uint128>::tinyness_before;
366
+
367
+ constexpr bool numeric_limits<absl::int128>::is_specialized;
368
+ constexpr bool numeric_limits<absl::int128>::is_signed;
369
+ constexpr bool numeric_limits<absl::int128>::is_integer;
370
+ constexpr bool numeric_limits<absl::int128>::is_exact;
371
+ constexpr bool numeric_limits<absl::int128>::has_infinity;
372
+ constexpr bool numeric_limits<absl::int128>::has_quiet_NaN;
373
+ constexpr bool numeric_limits<absl::int128>::has_signaling_NaN;
374
+ constexpr float_denorm_style numeric_limits<absl::int128>::has_denorm;
375
+ constexpr bool numeric_limits<absl::int128>::has_denorm_loss;
376
+ constexpr float_round_style numeric_limits<absl::int128>::round_style;
377
+ constexpr bool numeric_limits<absl::int128>::is_iec559;
378
+ constexpr bool numeric_limits<absl::int128>::is_bounded;
379
+ constexpr bool numeric_limits<absl::int128>::is_modulo;
380
+ constexpr int numeric_limits<absl::int128>::digits;
381
+ constexpr int numeric_limits<absl::int128>::digits10;
382
+ constexpr int numeric_limits<absl::int128>::max_digits10;
383
+ constexpr int numeric_limits<absl::int128>::radix;
384
+ constexpr int numeric_limits<absl::int128>::min_exponent;
385
+ constexpr int numeric_limits<absl::int128>::min_exponent10;
386
+ constexpr int numeric_limits<absl::int128>::max_exponent;
387
+ constexpr int numeric_limits<absl::int128>::max_exponent10;
388
+ constexpr bool numeric_limits<absl::int128>::traps;
389
+ constexpr bool numeric_limits<absl::int128>::tinyness_before;
390
+ } // namespace std