rroonga 9.0.3-x86-mingw32 → 9.0.7-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +30 -0
- data/ext/groonga/rb-grn-context.c +27 -0
- data/ext/groonga/rb-grn-flushable.c +7 -0
- data/ext/groonga/rb-grn-index-column.c +28 -0
- data/ext/groonga/rb-grn-index-cursor.c +19 -0
- data/ext/groonga/rb-grn-logger.c +17 -3
- data/ext/groonga/rb-grn-object.c +236 -22
- data/ext/groonga/rb-grn-table.c +68 -42
- data/ext/groonga/rb-grn.h +1 -1
- data/lib/2.3/groonga.so +0 -0
- data/lib/2.4/groonga.so +0 -0
- data/lib/2.5/groonga.so +0 -0
- data/lib/2.6/groonga.so +0 -0
- data/lib/groonga/dumper.rb +3 -0
- data/lib/groonga/record.rb +2 -2
- data/test/groonga-test-utils.rb +28 -5
- data/test/run-test.rb +0 -2
- data/test/test-accessor.rb +63 -7
- data/test/test-context.rb +25 -0
- data/test/test-exception.rb +5 -0
- data/test/test-flushable.rb +51 -6
- data/test/test-index-column.rb +67 -6
- data/test/test-index-cursor.rb +26 -0
- data/test/test-logger.rb +56 -11
- data/test/test-plugin.rb +1 -0
- data/test/test-query-logger.rb +4 -3
- data/test/test-record.rb +2 -1
- data/test/test-remote.rb +40 -10
- data/test/test-schema-dumper.rb +13 -0
- data/test/test-table.rb +21 -1
- data/test/test-variable.rb +23 -7
- data/vendor/local/bin/generate-pdb.bat +21 -21
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga-suggest-create-dataset.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-2.dll +0 -0
- data/vendor/local/bin/libmsgpackc.dll +0 -0
- data/vendor/local/bin/libonigmo-6.dll +0 -0
- data/vendor/local/bin/libpcre-1.dll +0 -0
- data/vendor/local/bin/libpcrecpp-0.dll +0 -0
- data/vendor/local/bin/libpcreposix-0.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat.exe +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/pcregrep.exe +0 -0
- data/vendor/local/bin/pcretest.exe +0 -0
- data/vendor/local/bin/unlz4.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/cmake/RapidJSONConfig.cmake +3 -0
- data/vendor/local/cmake/RapidJSONConfigVersion.cmake +10 -0
- data/vendor/local/include/groonga/groonga/expr.h +16 -0
- data/vendor/local/include/groonga/groonga/obj.h +8 -0
- data/vendor/local/include/groonga/groonga/output.h +5 -0
- data/vendor/local/include/groonga/groonga/version.h +2 -2
- data/vendor/local/include/rapidjson/allocators.h +271 -0
- data/vendor/local/include/rapidjson/document.h +2575 -0
- data/vendor/local/include/rapidjson/encodedstream.h +299 -0
- data/vendor/local/include/rapidjson/encodings.h +716 -0
- data/vendor/local/include/rapidjson/error/en.h +74 -0
- data/vendor/local/include/rapidjson/error/error.h +155 -0
- data/vendor/local/include/rapidjson/filereadstream.h +99 -0
- data/vendor/local/include/rapidjson/filewritestream.h +104 -0
- data/vendor/local/include/rapidjson/fwd.h +151 -0
- data/vendor/local/include/rapidjson/internal/biginteger.h +290 -0
- data/vendor/local/include/rapidjson/internal/diyfp.h +258 -0
- data/vendor/local/include/rapidjson/internal/dtoa.h +245 -0
- data/vendor/local/include/rapidjson/internal/ieee754.h +78 -0
- data/vendor/local/include/rapidjson/internal/itoa.h +304 -0
- data/vendor/local/include/rapidjson/internal/meta.h +181 -0
- data/vendor/local/include/rapidjson/internal/pow10.h +55 -0
- data/vendor/local/include/rapidjson/internal/regex.h +701 -0
- data/vendor/local/include/rapidjson/internal/stack.h +230 -0
- data/vendor/local/include/rapidjson/internal/strfunc.h +55 -0
- data/vendor/local/include/rapidjson/internal/strtod.h +269 -0
- data/vendor/local/include/rapidjson/internal/swap.h +46 -0
- data/vendor/local/include/rapidjson/istreamwrapper.h +115 -0
- data/vendor/local/include/rapidjson/memorybuffer.h +70 -0
- data/vendor/local/include/rapidjson/memorystream.h +71 -0
- data/vendor/local/include/rapidjson/msinttypes/inttypes.h +316 -0
- data/vendor/local/include/rapidjson/msinttypes/stdint.h +300 -0
- data/vendor/local/include/rapidjson/ostreamwrapper.h +81 -0
- data/vendor/local/include/rapidjson/pointer.h +1358 -0
- data/vendor/local/include/rapidjson/prettywriter.h +255 -0
- data/vendor/local/include/rapidjson/rapidjson.h +615 -0
- data/vendor/local/include/rapidjson/reader.h +1879 -0
- data/vendor/local/include/rapidjson/schema.h +2006 -0
- data/vendor/local/include/rapidjson/stream.h +179 -0
- data/vendor/local/include/rapidjson/stringbuffer.h +117 -0
- data/vendor/local/include/rapidjson/writer.h +610 -0
- data/vendor/local/lib/groonga/plugins/functions/index_column.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/index_column.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/index_column.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/index_column.la +1 -1
- data/vendor/local/lib/groonga/plugins/functions/math.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/math.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/math.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/math.la +1 -1
- data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.la +1 -1
- data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.la +1 -1
- data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.la +1 -1
- data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.la +1 -1
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.a +0 -0
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll +0 -0
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +1 -1
- data/vendor/local/lib/groonga/plugins/sharding/dynamic_columns.rb +44 -18
- data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +9 -8
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +48 -15
- data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +84 -58
- data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +1 -1
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +1 -1
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +1 -1
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +1 -1
- data/vendor/local/lib/groonga/scripts/ruby/command.rb +3 -4
- data/vendor/local/lib/groonga/scripts/ruby/command_line/grndb.rb +267 -77
- data/vendor/local/lib/groonga/scripts/ruby/command_line_parser.rb +96 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_rewriters/optimizer.rb +1 -1
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/binary_operation.rb +30 -7
- data/vendor/local/lib/groonga/scripts/ruby/initialize/pre.rb +5 -0
- data/vendor/local/lib/groonga/scripts/ruby/loggable.rb +8 -0
- data/vendor/local/lib/groonga/scripts/ruby/logger/flags.rb +70 -0
- data/vendor/local/lib/groonga/scripts/ruby/query_loggable.rb +8 -0
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +1 -1
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +2 -2
- data/vendor/local/lib/groonga/scripts/ruby/time.rb +9 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +1 -1
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.8.2 +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libonigmo.a +0 -0
- data/vendor/local/lib/libonigmo.dll.a +0 -0
- data/vendor/local/lib/libonigmo.la +1 -1
- data/vendor/local/lib/libpcre.dll.a +0 -0
- data/vendor/local/lib/libpcrecpp.dll.a +0 -0
- data/vendor/local/lib/libpcreposix.dll.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/RapidJSON/examples/CMakeLists.txt +42 -0
- data/vendor/local/share/doc/RapidJSON/examples/capitalize/capitalize.cpp +67 -0
- data/vendor/local/share/doc/RapidJSON/examples/condense/condense.cpp +32 -0
- data/vendor/local/share/doc/RapidJSON/examples/filterkey/filterkey.cpp +135 -0
- data/vendor/local/share/doc/RapidJSON/examples/filterkeydom/filterkeydom.cpp +170 -0
- data/vendor/local/share/doc/RapidJSON/examples/jsonx/jsonx.cpp +207 -0
- data/vendor/local/share/doc/RapidJSON/examples/messagereader/messagereader.cpp +105 -0
- data/vendor/local/share/doc/RapidJSON/examples/parsebyparts/parsebyparts.cpp +173 -0
- data/vendor/local/share/doc/RapidJSON/examples/pretty/pretty.cpp +30 -0
- data/vendor/local/share/doc/RapidJSON/examples/prettyauto/prettyauto.cpp +56 -0
- data/vendor/local/share/doc/RapidJSON/examples/schemavalidator/schemavalidator.cpp +72 -0
- data/vendor/local/share/doc/RapidJSON/examples/serialize/serialize.cpp +173 -0
- data/vendor/local/share/doc/RapidJSON/examples/simpledom/simpledom.cpp +29 -0
- data/vendor/local/share/doc/RapidJSON/examples/simplereader/simplereader.cpp +42 -0
- data/vendor/local/share/doc/RapidJSON/examples/simplewriter/simplewriter.cpp +36 -0
- data/vendor/local/share/doc/RapidJSON/examples/tutorial/tutorial.cpp +151 -0
- data/vendor/local/share/doc/RapidJSON/readme.md +160 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_static/documentation_options.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/client.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/community.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/development.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/genindex.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/index.html +11 -7
- data/vendor/local/share/doc/groonga/en/html/install.html +5 -4
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +79 -8
- data/vendor/local/share/doc/groonga/en/html/install/docker.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install/others.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/limitations.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news.html +498 -206
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/5.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/6.x.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +9 -6
- data/vendor/local/share/doc/groonga/en/html/reference/alias.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_inspect.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +77 -4
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +78 -54
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +58 -4
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/cast_loose.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +11 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_records.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/math_abs.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/string_length.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day_of_week.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_find.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_new.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_auto.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_nfkc100.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_nfkc51.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/token_filter/summary.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_nfkc100.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_stem.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_stop_word.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizer/summary.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +9 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha_digit.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol_alpha.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol_alpha_digit.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_delimit.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_delimit_null.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_mecab.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_ngram.html +1005 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_pattern.html +240 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_regexp.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_table.html +246 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_trigram.html +20 -20
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_unigram.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/window_function.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/record_number.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_count.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_record_number.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_sum.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/search.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/server/http.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/server/package.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/spec.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/how_to_analyze_error_message.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +68 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +37 -4
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/documentation_options.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/client.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/community.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/development.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/index.html +11 -7
- data/vendor/local/share/doc/groonga/ja/html/install.html +5 -4
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +69 -8
- data/vendor/local/share/doc/groonga/ja/html/install/docker.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news.html +494 -206
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/6.x.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +9 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_inspect.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +75 -4
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +73 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +57 -4
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/cast_loose.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +11 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_records.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/math_abs.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_length.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day_of_week.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_find.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_new.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_auto.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_nfkc100.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_nfkc51.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filter/summary.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_nfkc100.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_stem.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_stop_word.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizer/summary.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +9 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha_digit.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol_alpha.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol_alpha_digit.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_delimit.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_delimit_null.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_mecab.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_ngram.html +998 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_pattern.html +240 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_regexp.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_table.html +242 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_trigram.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_unigram.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/window_function.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/record_number.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_count.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_record_number.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_sum.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/search.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/spec.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/how_to_analyze_error_message.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +64 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +37 -4
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +3 -3
- data/vendor/local/share/groonga/COPYING +502 -0
- data/vendor/local/share/groonga/mruby/LEGAL +58 -54
- data/vendor/local/share/license/mruby/AUTHORS +6 -2
- data/vendor/local/share/license/mruby/LEGAL +1 -1
- data/vendor/local/share/license/mruby/{MITL → LICENSE} +1 -1
- data/vendor/local/share/license/mruby/README.md +3 -3
- data/vendor/local/share/license/rapidjson/license.txt +57 -0
- metadata +126 -60
@@ -0,0 +1,290 @@
|
|
1
|
+
// Tencent is pleased to support the open source community by making RapidJSON available.
|
2
|
+
//
|
3
|
+
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
|
4
|
+
//
|
5
|
+
// Licensed under the MIT License (the "License"); you may not use this file except
|
6
|
+
// in compliance with the License. You may obtain a copy of the License at
|
7
|
+
//
|
8
|
+
// http://opensource.org/licenses/MIT
|
9
|
+
//
|
10
|
+
// Unless required by applicable law or agreed to in writing, software distributed
|
11
|
+
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
12
|
+
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
13
|
+
// specific language governing permissions and limitations under the License.
|
14
|
+
|
15
|
+
#ifndef RAPIDJSON_BIGINTEGER_H_
|
16
|
+
#define RAPIDJSON_BIGINTEGER_H_
|
17
|
+
|
18
|
+
#include "../rapidjson.h"
|
19
|
+
|
20
|
+
#if defined(_MSC_VER) && defined(_M_AMD64)
|
21
|
+
#include <intrin.h> // for _umul128
|
22
|
+
#pragma intrinsic(_umul128)
|
23
|
+
#endif
|
24
|
+
|
25
|
+
RAPIDJSON_NAMESPACE_BEGIN
|
26
|
+
namespace internal {
|
27
|
+
|
28
|
+
class BigInteger {
|
29
|
+
public:
|
30
|
+
typedef uint64_t Type;
|
31
|
+
|
32
|
+
BigInteger(const BigInteger& rhs) : count_(rhs.count_) {
|
33
|
+
std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type));
|
34
|
+
}
|
35
|
+
|
36
|
+
explicit BigInteger(uint64_t u) : count_(1) {
|
37
|
+
digits_[0] = u;
|
38
|
+
}
|
39
|
+
|
40
|
+
BigInteger(const char* decimals, size_t length) : count_(1) {
|
41
|
+
RAPIDJSON_ASSERT(length > 0);
|
42
|
+
digits_[0] = 0;
|
43
|
+
size_t i = 0;
|
44
|
+
const size_t kMaxDigitPerIteration = 19; // 2^64 = 18446744073709551616 > 10^19
|
45
|
+
while (length >= kMaxDigitPerIteration) {
|
46
|
+
AppendDecimal64(decimals + i, decimals + i + kMaxDigitPerIteration);
|
47
|
+
length -= kMaxDigitPerIteration;
|
48
|
+
i += kMaxDigitPerIteration;
|
49
|
+
}
|
50
|
+
|
51
|
+
if (length > 0)
|
52
|
+
AppendDecimal64(decimals + i, decimals + i + length);
|
53
|
+
}
|
54
|
+
|
55
|
+
BigInteger& operator=(const BigInteger &rhs)
|
56
|
+
{
|
57
|
+
if (this != &rhs) {
|
58
|
+
count_ = rhs.count_;
|
59
|
+
std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type));
|
60
|
+
}
|
61
|
+
return *this;
|
62
|
+
}
|
63
|
+
|
64
|
+
BigInteger& operator=(uint64_t u) {
|
65
|
+
digits_[0] = u;
|
66
|
+
count_ = 1;
|
67
|
+
return *this;
|
68
|
+
}
|
69
|
+
|
70
|
+
BigInteger& operator+=(uint64_t u) {
|
71
|
+
Type backup = digits_[0];
|
72
|
+
digits_[0] += u;
|
73
|
+
for (size_t i = 0; i < count_ - 1; i++) {
|
74
|
+
if (digits_[i] >= backup)
|
75
|
+
return *this; // no carry
|
76
|
+
backup = digits_[i + 1];
|
77
|
+
digits_[i + 1] += 1;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Last carry
|
81
|
+
if (digits_[count_ - 1] < backup)
|
82
|
+
PushBack(1);
|
83
|
+
|
84
|
+
return *this;
|
85
|
+
}
|
86
|
+
|
87
|
+
BigInteger& operator*=(uint64_t u) {
|
88
|
+
if (u == 0) return *this = 0;
|
89
|
+
if (u == 1) return *this;
|
90
|
+
if (*this == 1) return *this = u;
|
91
|
+
|
92
|
+
uint64_t k = 0;
|
93
|
+
for (size_t i = 0; i < count_; i++) {
|
94
|
+
uint64_t hi;
|
95
|
+
digits_[i] = MulAdd64(digits_[i], u, k, &hi);
|
96
|
+
k = hi;
|
97
|
+
}
|
98
|
+
|
99
|
+
if (k > 0)
|
100
|
+
PushBack(k);
|
101
|
+
|
102
|
+
return *this;
|
103
|
+
}
|
104
|
+
|
105
|
+
BigInteger& operator*=(uint32_t u) {
|
106
|
+
if (u == 0) return *this = 0;
|
107
|
+
if (u == 1) return *this;
|
108
|
+
if (*this == 1) return *this = u;
|
109
|
+
|
110
|
+
uint64_t k = 0;
|
111
|
+
for (size_t i = 0; i < count_; i++) {
|
112
|
+
const uint64_t c = digits_[i] >> 32;
|
113
|
+
const uint64_t d = digits_[i] & 0xFFFFFFFF;
|
114
|
+
const uint64_t uc = u * c;
|
115
|
+
const uint64_t ud = u * d;
|
116
|
+
const uint64_t p0 = ud + k;
|
117
|
+
const uint64_t p1 = uc + (p0 >> 32);
|
118
|
+
digits_[i] = (p0 & 0xFFFFFFFF) | (p1 << 32);
|
119
|
+
k = p1 >> 32;
|
120
|
+
}
|
121
|
+
|
122
|
+
if (k > 0)
|
123
|
+
PushBack(k);
|
124
|
+
|
125
|
+
return *this;
|
126
|
+
}
|
127
|
+
|
128
|
+
BigInteger& operator<<=(size_t shift) {
|
129
|
+
if (IsZero() || shift == 0) return *this;
|
130
|
+
|
131
|
+
size_t offset = shift / kTypeBit;
|
132
|
+
size_t interShift = shift % kTypeBit;
|
133
|
+
RAPIDJSON_ASSERT(count_ + offset <= kCapacity);
|
134
|
+
|
135
|
+
if (interShift == 0) {
|
136
|
+
std::memmove(&digits_[count_ - 1 + offset], &digits_[count_ - 1], count_ * sizeof(Type));
|
137
|
+
count_ += offset;
|
138
|
+
}
|
139
|
+
else {
|
140
|
+
digits_[count_] = 0;
|
141
|
+
for (size_t i = count_; i > 0; i--)
|
142
|
+
digits_[i + offset] = (digits_[i] << interShift) | (digits_[i - 1] >> (kTypeBit - interShift));
|
143
|
+
digits_[offset] = digits_[0] << interShift;
|
144
|
+
count_ += offset;
|
145
|
+
if (digits_[count_])
|
146
|
+
count_++;
|
147
|
+
}
|
148
|
+
|
149
|
+
std::memset(digits_, 0, offset * sizeof(Type));
|
150
|
+
|
151
|
+
return *this;
|
152
|
+
}
|
153
|
+
|
154
|
+
bool operator==(const BigInteger& rhs) const {
|
155
|
+
return count_ == rhs.count_ && std::memcmp(digits_, rhs.digits_, count_ * sizeof(Type)) == 0;
|
156
|
+
}
|
157
|
+
|
158
|
+
bool operator==(const Type rhs) const {
|
159
|
+
return count_ == 1 && digits_[0] == rhs;
|
160
|
+
}
|
161
|
+
|
162
|
+
BigInteger& MultiplyPow5(unsigned exp) {
|
163
|
+
static const uint32_t kPow5[12] = {
|
164
|
+
5,
|
165
|
+
5 * 5,
|
166
|
+
5 * 5 * 5,
|
167
|
+
5 * 5 * 5 * 5,
|
168
|
+
5 * 5 * 5 * 5 * 5,
|
169
|
+
5 * 5 * 5 * 5 * 5 * 5,
|
170
|
+
5 * 5 * 5 * 5 * 5 * 5 * 5,
|
171
|
+
5 * 5 * 5 * 5 * 5 * 5 * 5 * 5,
|
172
|
+
5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5,
|
173
|
+
5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5,
|
174
|
+
5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5,
|
175
|
+
5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5 * 5
|
176
|
+
};
|
177
|
+
if (exp == 0) return *this;
|
178
|
+
for (; exp >= 27; exp -= 27) *this *= RAPIDJSON_UINT64_C2(0X6765C793, 0XFA10079D); // 5^27
|
179
|
+
for (; exp >= 13; exp -= 13) *this *= static_cast<uint32_t>(1220703125u); // 5^13
|
180
|
+
if (exp > 0) *this *= kPow5[exp - 1];
|
181
|
+
return *this;
|
182
|
+
}
|
183
|
+
|
184
|
+
// Compute absolute difference of this and rhs.
|
185
|
+
// Assume this != rhs
|
186
|
+
bool Difference(const BigInteger& rhs, BigInteger* out) const {
|
187
|
+
int cmp = Compare(rhs);
|
188
|
+
RAPIDJSON_ASSERT(cmp != 0);
|
189
|
+
const BigInteger *a, *b; // Makes a > b
|
190
|
+
bool ret;
|
191
|
+
if (cmp < 0) { a = &rhs; b = this; ret = true; }
|
192
|
+
else { a = this; b = &rhs; ret = false; }
|
193
|
+
|
194
|
+
Type borrow = 0;
|
195
|
+
for (size_t i = 0; i < a->count_; i++) {
|
196
|
+
Type d = a->digits_[i] - borrow;
|
197
|
+
if (i < b->count_)
|
198
|
+
d -= b->digits_[i];
|
199
|
+
borrow = (d > a->digits_[i]) ? 1 : 0;
|
200
|
+
out->digits_[i] = d;
|
201
|
+
if (d != 0)
|
202
|
+
out->count_ = i + 1;
|
203
|
+
}
|
204
|
+
|
205
|
+
return ret;
|
206
|
+
}
|
207
|
+
|
208
|
+
int Compare(const BigInteger& rhs) const {
|
209
|
+
if (count_ != rhs.count_)
|
210
|
+
return count_ < rhs.count_ ? -1 : 1;
|
211
|
+
|
212
|
+
for (size_t i = count_; i-- > 0;)
|
213
|
+
if (digits_[i] != rhs.digits_[i])
|
214
|
+
return digits_[i] < rhs.digits_[i] ? -1 : 1;
|
215
|
+
|
216
|
+
return 0;
|
217
|
+
}
|
218
|
+
|
219
|
+
size_t GetCount() const { return count_; }
|
220
|
+
Type GetDigit(size_t index) const { RAPIDJSON_ASSERT(index < count_); return digits_[index]; }
|
221
|
+
bool IsZero() const { return count_ == 1 && digits_[0] == 0; }
|
222
|
+
|
223
|
+
private:
|
224
|
+
void AppendDecimal64(const char* begin, const char* end) {
|
225
|
+
uint64_t u = ParseUint64(begin, end);
|
226
|
+
if (IsZero())
|
227
|
+
*this = u;
|
228
|
+
else {
|
229
|
+
unsigned exp = static_cast<unsigned>(end - begin);
|
230
|
+
(MultiplyPow5(exp) <<= exp) += u; // *this = *this * 10^exp + u
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
void PushBack(Type digit) {
|
235
|
+
RAPIDJSON_ASSERT(count_ < kCapacity);
|
236
|
+
digits_[count_++] = digit;
|
237
|
+
}
|
238
|
+
|
239
|
+
static uint64_t ParseUint64(const char* begin, const char* end) {
|
240
|
+
uint64_t r = 0;
|
241
|
+
for (const char* p = begin; p != end; ++p) {
|
242
|
+
RAPIDJSON_ASSERT(*p >= '0' && *p <= '9');
|
243
|
+
r = r * 10u + static_cast<unsigned>(*p - '0');
|
244
|
+
}
|
245
|
+
return r;
|
246
|
+
}
|
247
|
+
|
248
|
+
// Assume a * b + k < 2^128
|
249
|
+
static uint64_t MulAdd64(uint64_t a, uint64_t b, uint64_t k, uint64_t* outHigh) {
|
250
|
+
#if defined(_MSC_VER) && defined(_M_AMD64)
|
251
|
+
uint64_t low = _umul128(a, b, outHigh) + k;
|
252
|
+
if (low < k)
|
253
|
+
(*outHigh)++;
|
254
|
+
return low;
|
255
|
+
#elif (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__x86_64__)
|
256
|
+
__extension__ typedef unsigned __int128 uint128;
|
257
|
+
uint128 p = static_cast<uint128>(a) * static_cast<uint128>(b);
|
258
|
+
p += k;
|
259
|
+
*outHigh = static_cast<uint64_t>(p >> 64);
|
260
|
+
return static_cast<uint64_t>(p);
|
261
|
+
#else
|
262
|
+
const uint64_t a0 = a & 0xFFFFFFFF, a1 = a >> 32, b0 = b & 0xFFFFFFFF, b1 = b >> 32;
|
263
|
+
uint64_t x0 = a0 * b0, x1 = a0 * b1, x2 = a1 * b0, x3 = a1 * b1;
|
264
|
+
x1 += (x0 >> 32); // can't give carry
|
265
|
+
x1 += x2;
|
266
|
+
if (x1 < x2)
|
267
|
+
x3 += (static_cast<uint64_t>(1) << 32);
|
268
|
+
uint64_t lo = (x1 << 32) + (x0 & 0xFFFFFFFF);
|
269
|
+
uint64_t hi = x3 + (x1 >> 32);
|
270
|
+
|
271
|
+
lo += k;
|
272
|
+
if (lo < k)
|
273
|
+
hi++;
|
274
|
+
*outHigh = hi;
|
275
|
+
return lo;
|
276
|
+
#endif
|
277
|
+
}
|
278
|
+
|
279
|
+
static const size_t kBitCount = 3328; // 64bit * 54 > 10^1000
|
280
|
+
static const size_t kCapacity = kBitCount / sizeof(Type);
|
281
|
+
static const size_t kTypeBit = sizeof(Type) * 8;
|
282
|
+
|
283
|
+
Type digits_[kCapacity];
|
284
|
+
size_t count_;
|
285
|
+
};
|
286
|
+
|
287
|
+
} // namespace internal
|
288
|
+
RAPIDJSON_NAMESPACE_END
|
289
|
+
|
290
|
+
#endif // RAPIDJSON_BIGINTEGER_H_
|
@@ -0,0 +1,258 @@
|
|
1
|
+
// Tencent is pleased to support the open source community by making RapidJSON available.
|
2
|
+
//
|
3
|
+
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
|
4
|
+
//
|
5
|
+
// Licensed under the MIT License (the "License"); you may not use this file except
|
6
|
+
// in compliance with the License. You may obtain a copy of the License at
|
7
|
+
//
|
8
|
+
// http://opensource.org/licenses/MIT
|
9
|
+
//
|
10
|
+
// Unless required by applicable law or agreed to in writing, software distributed
|
11
|
+
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
12
|
+
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
13
|
+
// specific language governing permissions and limitations under the License.
|
14
|
+
|
15
|
+
// This is a C++ header-only implementation of Grisu2 algorithm from the publication:
|
16
|
+
// Loitsch, Florian. "Printing floating-point numbers quickly and accurately with
|
17
|
+
// integers." ACM Sigplan Notices 45.6 (2010): 233-243.
|
18
|
+
|
19
|
+
#ifndef RAPIDJSON_DIYFP_H_
|
20
|
+
#define RAPIDJSON_DIYFP_H_
|
21
|
+
|
22
|
+
#include "../rapidjson.h"
|
23
|
+
|
24
|
+
#if defined(_MSC_VER) && defined(_M_AMD64)
|
25
|
+
#include <intrin.h>
|
26
|
+
#pragma intrinsic(_BitScanReverse64)
|
27
|
+
#pragma intrinsic(_umul128)
|
28
|
+
#endif
|
29
|
+
|
30
|
+
RAPIDJSON_NAMESPACE_BEGIN
|
31
|
+
namespace internal {
|
32
|
+
|
33
|
+
#ifdef __GNUC__
|
34
|
+
RAPIDJSON_DIAG_PUSH
|
35
|
+
RAPIDJSON_DIAG_OFF(effc++)
|
36
|
+
#endif
|
37
|
+
|
38
|
+
#ifdef __clang__
|
39
|
+
RAPIDJSON_DIAG_PUSH
|
40
|
+
RAPIDJSON_DIAG_OFF(padded)
|
41
|
+
#endif
|
42
|
+
|
43
|
+
struct DiyFp {
|
44
|
+
DiyFp() : f(), e() {}
|
45
|
+
|
46
|
+
DiyFp(uint64_t fp, int exp) : f(fp), e(exp) {}
|
47
|
+
|
48
|
+
explicit DiyFp(double d) {
|
49
|
+
union {
|
50
|
+
double d;
|
51
|
+
uint64_t u64;
|
52
|
+
} u = { d };
|
53
|
+
|
54
|
+
int biased_e = static_cast<int>((u.u64 & kDpExponentMask) >> kDpSignificandSize);
|
55
|
+
uint64_t significand = (u.u64 & kDpSignificandMask);
|
56
|
+
if (biased_e != 0) {
|
57
|
+
f = significand + kDpHiddenBit;
|
58
|
+
e = biased_e - kDpExponentBias;
|
59
|
+
}
|
60
|
+
else {
|
61
|
+
f = significand;
|
62
|
+
e = kDpMinExponent + 1;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
DiyFp operator-(const DiyFp& rhs) const {
|
67
|
+
return DiyFp(f - rhs.f, e);
|
68
|
+
}
|
69
|
+
|
70
|
+
DiyFp operator*(const DiyFp& rhs) const {
|
71
|
+
#if defined(_MSC_VER) && defined(_M_AMD64)
|
72
|
+
uint64_t h;
|
73
|
+
uint64_t l = _umul128(f, rhs.f, &h);
|
74
|
+
if (l & (uint64_t(1) << 63)) // rounding
|
75
|
+
h++;
|
76
|
+
return DiyFp(h, e + rhs.e + 64);
|
77
|
+
#elif (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && defined(__x86_64__)
|
78
|
+
__extension__ typedef unsigned __int128 uint128;
|
79
|
+
uint128 p = static_cast<uint128>(f) * static_cast<uint128>(rhs.f);
|
80
|
+
uint64_t h = static_cast<uint64_t>(p >> 64);
|
81
|
+
uint64_t l = static_cast<uint64_t>(p);
|
82
|
+
if (l & (uint64_t(1) << 63)) // rounding
|
83
|
+
h++;
|
84
|
+
return DiyFp(h, e + rhs.e + 64);
|
85
|
+
#else
|
86
|
+
const uint64_t M32 = 0xFFFFFFFF;
|
87
|
+
const uint64_t a = f >> 32;
|
88
|
+
const uint64_t b = f & M32;
|
89
|
+
const uint64_t c = rhs.f >> 32;
|
90
|
+
const uint64_t d = rhs.f & M32;
|
91
|
+
const uint64_t ac = a * c;
|
92
|
+
const uint64_t bc = b * c;
|
93
|
+
const uint64_t ad = a * d;
|
94
|
+
const uint64_t bd = b * d;
|
95
|
+
uint64_t tmp = (bd >> 32) + (ad & M32) + (bc & M32);
|
96
|
+
tmp += 1U << 31; /// mult_round
|
97
|
+
return DiyFp(ac + (ad >> 32) + (bc >> 32) + (tmp >> 32), e + rhs.e + 64);
|
98
|
+
#endif
|
99
|
+
}
|
100
|
+
|
101
|
+
DiyFp Normalize() const {
|
102
|
+
#if defined(_MSC_VER) && defined(_M_AMD64)
|
103
|
+
unsigned long index;
|
104
|
+
_BitScanReverse64(&index, f);
|
105
|
+
return DiyFp(f << (63 - index), e - (63 - index));
|
106
|
+
#elif defined(__GNUC__) && __GNUC__ >= 4
|
107
|
+
int s = __builtin_clzll(f);
|
108
|
+
return DiyFp(f << s, e - s);
|
109
|
+
#else
|
110
|
+
DiyFp res = *this;
|
111
|
+
while (!(res.f & (static_cast<uint64_t>(1) << 63))) {
|
112
|
+
res.f <<= 1;
|
113
|
+
res.e--;
|
114
|
+
}
|
115
|
+
return res;
|
116
|
+
#endif
|
117
|
+
}
|
118
|
+
|
119
|
+
DiyFp NormalizeBoundary() const {
|
120
|
+
DiyFp res = *this;
|
121
|
+
while (!(res.f & (kDpHiddenBit << 1))) {
|
122
|
+
res.f <<= 1;
|
123
|
+
res.e--;
|
124
|
+
}
|
125
|
+
res.f <<= (kDiySignificandSize - kDpSignificandSize - 2);
|
126
|
+
res.e = res.e - (kDiySignificandSize - kDpSignificandSize - 2);
|
127
|
+
return res;
|
128
|
+
}
|
129
|
+
|
130
|
+
void NormalizedBoundaries(DiyFp* minus, DiyFp* plus) const {
|
131
|
+
DiyFp pl = DiyFp((f << 1) + 1, e - 1).NormalizeBoundary();
|
132
|
+
DiyFp mi = (f == kDpHiddenBit) ? DiyFp((f << 2) - 1, e - 2) : DiyFp((f << 1) - 1, e - 1);
|
133
|
+
mi.f <<= mi.e - pl.e;
|
134
|
+
mi.e = pl.e;
|
135
|
+
*plus = pl;
|
136
|
+
*minus = mi;
|
137
|
+
}
|
138
|
+
|
139
|
+
double ToDouble() const {
|
140
|
+
union {
|
141
|
+
double d;
|
142
|
+
uint64_t u64;
|
143
|
+
}u;
|
144
|
+
const uint64_t be = (e == kDpDenormalExponent && (f & kDpHiddenBit) == 0) ? 0 :
|
145
|
+
static_cast<uint64_t>(e + kDpExponentBias);
|
146
|
+
u.u64 = (f & kDpSignificandMask) | (be << kDpSignificandSize);
|
147
|
+
return u.d;
|
148
|
+
}
|
149
|
+
|
150
|
+
static const int kDiySignificandSize = 64;
|
151
|
+
static const int kDpSignificandSize = 52;
|
152
|
+
static const int kDpExponentBias = 0x3FF + kDpSignificandSize;
|
153
|
+
static const int kDpMaxExponent = 0x7FF - kDpExponentBias;
|
154
|
+
static const int kDpMinExponent = -kDpExponentBias;
|
155
|
+
static const int kDpDenormalExponent = -kDpExponentBias + 1;
|
156
|
+
static const uint64_t kDpExponentMask = RAPIDJSON_UINT64_C2(0x7FF00000, 0x00000000);
|
157
|
+
static const uint64_t kDpSignificandMask = RAPIDJSON_UINT64_C2(0x000FFFFF, 0xFFFFFFFF);
|
158
|
+
static const uint64_t kDpHiddenBit = RAPIDJSON_UINT64_C2(0x00100000, 0x00000000);
|
159
|
+
|
160
|
+
uint64_t f;
|
161
|
+
int e;
|
162
|
+
};
|
163
|
+
|
164
|
+
inline DiyFp GetCachedPowerByIndex(size_t index) {
|
165
|
+
// 10^-348, 10^-340, ..., 10^340
|
166
|
+
static const uint64_t kCachedPowers_F[] = {
|
167
|
+
RAPIDJSON_UINT64_C2(0xfa8fd5a0, 0x081c0288), RAPIDJSON_UINT64_C2(0xbaaee17f, 0xa23ebf76),
|
168
|
+
RAPIDJSON_UINT64_C2(0x8b16fb20, 0x3055ac76), RAPIDJSON_UINT64_C2(0xcf42894a, 0x5dce35ea),
|
169
|
+
RAPIDJSON_UINT64_C2(0x9a6bb0aa, 0x55653b2d), RAPIDJSON_UINT64_C2(0xe61acf03, 0x3d1a45df),
|
170
|
+
RAPIDJSON_UINT64_C2(0xab70fe17, 0xc79ac6ca), RAPIDJSON_UINT64_C2(0xff77b1fc, 0xbebcdc4f),
|
171
|
+
RAPIDJSON_UINT64_C2(0xbe5691ef, 0x416bd60c), RAPIDJSON_UINT64_C2(0x8dd01fad, 0x907ffc3c),
|
172
|
+
RAPIDJSON_UINT64_C2(0xd3515c28, 0x31559a83), RAPIDJSON_UINT64_C2(0x9d71ac8f, 0xada6c9b5),
|
173
|
+
RAPIDJSON_UINT64_C2(0xea9c2277, 0x23ee8bcb), RAPIDJSON_UINT64_C2(0xaecc4991, 0x4078536d),
|
174
|
+
RAPIDJSON_UINT64_C2(0x823c1279, 0x5db6ce57), RAPIDJSON_UINT64_C2(0xc2109436, 0x4dfb5637),
|
175
|
+
RAPIDJSON_UINT64_C2(0x9096ea6f, 0x3848984f), RAPIDJSON_UINT64_C2(0xd77485cb, 0x25823ac7),
|
176
|
+
RAPIDJSON_UINT64_C2(0xa086cfcd, 0x97bf97f4), RAPIDJSON_UINT64_C2(0xef340a98, 0x172aace5),
|
177
|
+
RAPIDJSON_UINT64_C2(0xb23867fb, 0x2a35b28e), RAPIDJSON_UINT64_C2(0x84c8d4df, 0xd2c63f3b),
|
178
|
+
RAPIDJSON_UINT64_C2(0xc5dd4427, 0x1ad3cdba), RAPIDJSON_UINT64_C2(0x936b9fce, 0xbb25c996),
|
179
|
+
RAPIDJSON_UINT64_C2(0xdbac6c24, 0x7d62a584), RAPIDJSON_UINT64_C2(0xa3ab6658, 0x0d5fdaf6),
|
180
|
+
RAPIDJSON_UINT64_C2(0xf3e2f893, 0xdec3f126), RAPIDJSON_UINT64_C2(0xb5b5ada8, 0xaaff80b8),
|
181
|
+
RAPIDJSON_UINT64_C2(0x87625f05, 0x6c7c4a8b), RAPIDJSON_UINT64_C2(0xc9bcff60, 0x34c13053),
|
182
|
+
RAPIDJSON_UINT64_C2(0x964e858c, 0x91ba2655), RAPIDJSON_UINT64_C2(0xdff97724, 0x70297ebd),
|
183
|
+
RAPIDJSON_UINT64_C2(0xa6dfbd9f, 0xb8e5b88f), RAPIDJSON_UINT64_C2(0xf8a95fcf, 0x88747d94),
|
184
|
+
RAPIDJSON_UINT64_C2(0xb9447093, 0x8fa89bcf), RAPIDJSON_UINT64_C2(0x8a08f0f8, 0xbf0f156b),
|
185
|
+
RAPIDJSON_UINT64_C2(0xcdb02555, 0x653131b6), RAPIDJSON_UINT64_C2(0x993fe2c6, 0xd07b7fac),
|
186
|
+
RAPIDJSON_UINT64_C2(0xe45c10c4, 0x2a2b3b06), RAPIDJSON_UINT64_C2(0xaa242499, 0x697392d3),
|
187
|
+
RAPIDJSON_UINT64_C2(0xfd87b5f2, 0x8300ca0e), RAPIDJSON_UINT64_C2(0xbce50864, 0x92111aeb),
|
188
|
+
RAPIDJSON_UINT64_C2(0x8cbccc09, 0x6f5088cc), RAPIDJSON_UINT64_C2(0xd1b71758, 0xe219652c),
|
189
|
+
RAPIDJSON_UINT64_C2(0x9c400000, 0x00000000), RAPIDJSON_UINT64_C2(0xe8d4a510, 0x00000000),
|
190
|
+
RAPIDJSON_UINT64_C2(0xad78ebc5, 0xac620000), RAPIDJSON_UINT64_C2(0x813f3978, 0xf8940984),
|
191
|
+
RAPIDJSON_UINT64_C2(0xc097ce7b, 0xc90715b3), RAPIDJSON_UINT64_C2(0x8f7e32ce, 0x7bea5c70),
|
192
|
+
RAPIDJSON_UINT64_C2(0xd5d238a4, 0xabe98068), RAPIDJSON_UINT64_C2(0x9f4f2726, 0x179a2245),
|
193
|
+
RAPIDJSON_UINT64_C2(0xed63a231, 0xd4c4fb27), RAPIDJSON_UINT64_C2(0xb0de6538, 0x8cc8ada8),
|
194
|
+
RAPIDJSON_UINT64_C2(0x83c7088e, 0x1aab65db), RAPIDJSON_UINT64_C2(0xc45d1df9, 0x42711d9a),
|
195
|
+
RAPIDJSON_UINT64_C2(0x924d692c, 0xa61be758), RAPIDJSON_UINT64_C2(0xda01ee64, 0x1a708dea),
|
196
|
+
RAPIDJSON_UINT64_C2(0xa26da399, 0x9aef774a), RAPIDJSON_UINT64_C2(0xf209787b, 0xb47d6b85),
|
197
|
+
RAPIDJSON_UINT64_C2(0xb454e4a1, 0x79dd1877), RAPIDJSON_UINT64_C2(0x865b8692, 0x5b9bc5c2),
|
198
|
+
RAPIDJSON_UINT64_C2(0xc83553c5, 0xc8965d3d), RAPIDJSON_UINT64_C2(0x952ab45c, 0xfa97a0b3),
|
199
|
+
RAPIDJSON_UINT64_C2(0xde469fbd, 0x99a05fe3), RAPIDJSON_UINT64_C2(0xa59bc234, 0xdb398c25),
|
200
|
+
RAPIDJSON_UINT64_C2(0xf6c69a72, 0xa3989f5c), RAPIDJSON_UINT64_C2(0xb7dcbf53, 0x54e9bece),
|
201
|
+
RAPIDJSON_UINT64_C2(0x88fcf317, 0xf22241e2), RAPIDJSON_UINT64_C2(0xcc20ce9b, 0xd35c78a5),
|
202
|
+
RAPIDJSON_UINT64_C2(0x98165af3, 0x7b2153df), RAPIDJSON_UINT64_C2(0xe2a0b5dc, 0x971f303a),
|
203
|
+
RAPIDJSON_UINT64_C2(0xa8d9d153, 0x5ce3b396), RAPIDJSON_UINT64_C2(0xfb9b7cd9, 0xa4a7443c),
|
204
|
+
RAPIDJSON_UINT64_C2(0xbb764c4c, 0xa7a44410), RAPIDJSON_UINT64_C2(0x8bab8eef, 0xb6409c1a),
|
205
|
+
RAPIDJSON_UINT64_C2(0xd01fef10, 0xa657842c), RAPIDJSON_UINT64_C2(0x9b10a4e5, 0xe9913129),
|
206
|
+
RAPIDJSON_UINT64_C2(0xe7109bfb, 0xa19c0c9d), RAPIDJSON_UINT64_C2(0xac2820d9, 0x623bf429),
|
207
|
+
RAPIDJSON_UINT64_C2(0x80444b5e, 0x7aa7cf85), RAPIDJSON_UINT64_C2(0xbf21e440, 0x03acdd2d),
|
208
|
+
RAPIDJSON_UINT64_C2(0x8e679c2f, 0x5e44ff8f), RAPIDJSON_UINT64_C2(0xd433179d, 0x9c8cb841),
|
209
|
+
RAPIDJSON_UINT64_C2(0x9e19db92, 0xb4e31ba9), RAPIDJSON_UINT64_C2(0xeb96bf6e, 0xbadf77d9),
|
210
|
+
RAPIDJSON_UINT64_C2(0xaf87023b, 0x9bf0ee6b)
|
211
|
+
};
|
212
|
+
static const int16_t kCachedPowers_E[] = {
|
213
|
+
-1220, -1193, -1166, -1140, -1113, -1087, -1060, -1034, -1007, -980,
|
214
|
+
-954, -927, -901, -874, -847, -821, -794, -768, -741, -715,
|
215
|
+
-688, -661, -635, -608, -582, -555, -529, -502, -475, -449,
|
216
|
+
-422, -396, -369, -343, -316, -289, -263, -236, -210, -183,
|
217
|
+
-157, -130, -103, -77, -50, -24, 3, 30, 56, 83,
|
218
|
+
109, 136, 162, 189, 216, 242, 269, 295, 322, 348,
|
219
|
+
375, 402, 428, 455, 481, 508, 534, 561, 588, 614,
|
220
|
+
641, 667, 694, 720, 747, 774, 800, 827, 853, 880,
|
221
|
+
907, 933, 960, 986, 1013, 1039, 1066
|
222
|
+
};
|
223
|
+
return DiyFp(kCachedPowers_F[index], kCachedPowers_E[index]);
|
224
|
+
}
|
225
|
+
|
226
|
+
inline DiyFp GetCachedPower(int e, int* K) {
|
227
|
+
|
228
|
+
//int k = static_cast<int>(ceil((-61 - e) * 0.30102999566398114)) + 374;
|
229
|
+
double dk = (-61 - e) * 0.30102999566398114 + 347; // dk must be positive, so can do ceiling in positive
|
230
|
+
int k = static_cast<int>(dk);
|
231
|
+
if (dk - k > 0.0)
|
232
|
+
k++;
|
233
|
+
|
234
|
+
unsigned index = static_cast<unsigned>((k >> 3) + 1);
|
235
|
+
*K = -(-348 + static_cast<int>(index << 3)); // decimal exponent no need lookup table
|
236
|
+
|
237
|
+
return GetCachedPowerByIndex(index);
|
238
|
+
}
|
239
|
+
|
240
|
+
inline DiyFp GetCachedPower10(int exp, int *outExp) {
|
241
|
+
unsigned index = (static_cast<unsigned>(exp) + 348u) / 8u;
|
242
|
+
*outExp = -348 + static_cast<int>(index) * 8;
|
243
|
+
return GetCachedPowerByIndex(index);
|
244
|
+
}
|
245
|
+
|
246
|
+
#ifdef __GNUC__
|
247
|
+
RAPIDJSON_DIAG_POP
|
248
|
+
#endif
|
249
|
+
|
250
|
+
#ifdef __clang__
|
251
|
+
RAPIDJSON_DIAG_POP
|
252
|
+
RAPIDJSON_DIAG_OFF(padded)
|
253
|
+
#endif
|
254
|
+
|
255
|
+
} // namespace internal
|
256
|
+
RAPIDJSON_NAMESPACE_END
|
257
|
+
|
258
|
+
#endif // RAPIDJSON_DIYFP_H_
|