/* * // Copyright (c) Radzivon Bartoshyk 8/2025. All rights reserved. * // * // Redistribution and use in source and binary forms, with or without modification, * // are permitted provided that the following conditions are met: * // * // 1. Redistributions of source code must retain the above copyright notice, this * // list of conditions and the following disclaimer. * // * // 2. Redistributions in binary form must reproduce the above copyright notice, * // this list of conditions and the following disclaimer in the documentation * // and/or other materials provided with the distribution. * // * // 3. Neither the name of the copyright holder nor the names of its * // contributors may be used to endorse or promote products derived from * // this software without specific prior written permission. * // * // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE * // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /** Generated by Sage: from POW_INV ```python R = RealField(150) def hex_to_float(h): return struct.unpack('>d', struct.pack('>Q', h))[0] # Convert each hex value to RealField real_array = [R(hex_to_float(h)) for h in values] # Show results for r in real_array: print_triple_double("", -RealField(180)(r).log()) ``` **/ pub(crate) static LOG_NEG_TD: [(u64, u64, u64); 182] = [ (0x38f1406554719540, 0x3c6bc60efafc6f6e, 0xbfd5ff3070a793d4), (0xb916f95d595cbf2e, 0x3c78ebcb7dee9a3d, 0xbfd5a42ab0f4cfe2), (0x3908294131dd7142, 0x3c6819cf7e308ddb, 0xbfd548a2c3add263), (0x391fcf3e64c8cd74, 0x3c742a87d977dc5e, 0xbfd4ec973260026a), (0xb8e16c8675ad963d, 0x3c69ffc341f177dc, 0xbfd49006804009d1), (0x3913f95697c9bfc2, 0x3c729931715ac903, 0xbfd432ef2a04e814), (0x3919ea6f9f60989c, 0x3c70bcfb6082ce6d, 0xbfd404308686a7e4), (0xb90beb7a3cee7e03, 0x3c6c68651945f97c, 0xbfd3a64c556945ea), (0xb90ee510a580b3b3, 0x3c64dd4c580919f8, 0xbfd347dd9a987d55), (0x390864244294826f, 0x3c78f4cdb95ebdf9, 0xbfd2e8e2bae11d31), (0xb9162d6a3aacbe58, 0xbc77ad24c13f040e, 0xbfd2895a13de86a3), (0x390a168b2a9642c4, 0x3c776f5eb09628af, 0xbfd22941fbcf7966), (0xb918cf23e43622b1, 0x3c7c9fdf9a0c4b07, 0xbfd1f8ff9e48a2f3), (0x3918eb33aa901486, 0xbc79d3d1b0e4d147, 0xbfd1980d2dd4236f), (0x38e4a5b394627b29, 0xbc77b66298edd24a, 0xbfd136870293a8b0), (0x38beb31a74640ec7, 0xbc589fa0ab4cb31d, 0xbfd1058bf9ae4ad5), (0xb8ec51bc06b5f7c1, 0xbc77dcfde8061c03, 0xbfd0a324e27390e3), (0x3900dddc4cf9a1f9, 0x3c628ec217a5022d, 0xbfd0402594b4d041), (0x39035f6dfd3ddd52, 0x3c6caaae64f21acb, 0xbfcfb9186d5e3e2b), (0xb8798a014b61d510, 0xbc2c5f6dfd018c37, 0xbfcf550a564b7b37), (0xb8edee364d35208a, 0x3c46e03a39bfc89b, 0xbfce8c0252aa5a60), (0xb8c55db94ebc4018, 0x3c461578001e0162, 0xbfce27076e2af2e6), (0xb8ec3c6ce7a257f4, 0xbc66e443597e4d40, 0xbfcd5c216b4fbb91), (0xb90a24ae3b2f53a1, 0x3c64f689f8434012, 0xbfcc8ff7c79a9a22), (0xb89f00f527d33467, 0x3c673dee38a3fb6b, 0xbfcc2968558c18c1), (0xb903dcf06e27bef1, 0xbc6ba27fdc19e1a0, 0xbfcb5b519e8fb5a4), (0x38da262591d1968b, 0x3c5398cff3641985, 0xbfcaf3c94e80bff3), (0xb8d3f1f8db36c599, 0xbc493711b07a998c, 0xbfca23bc1fe2b563), (0xb8f28792ae1aabc8, 0xbc6575e31f003e0c, 0xbfc9bb362e7dfb83), (0xb8dc0d0e377c6294, 0x3c6569d851a56770, 0xbfc8e928de886d41), (0x38f0a5aa8fb49481, 0x3c6bf7fdbfa08d9a, 0xbfc87fa06520c911), (0xb8a91ff852536204, 0xbc4be36b2d6a0608, 0xbfc7ab890210d909), (0x38f0be957f10f5fb, 0x3c5b264062a84cdb, 0xbfc740f8f54037a5), (0x38dc825cda7da31d, 0x3c6caae268ecd179, 0xbfc6d60fe719d21d), (0x38e1406554719540, 0x3c5bc60efafc6f6e, 0xbfc5ff3070a793d4), (0xb8f60e1f10db27cb, 0x3c565d22aa8ad7cf, 0xbfc59338d9982086), (0x38b04bfef68b5ce2, 0xbc668981bcc36756, 0xbfc4ba36f39a55e5), (0x390f3be9a8337458, 0xbc69f4f6543e1f88, 0xbfc44d2b6ccb7d1e), (0x38fb40efe811e153, 0x3c5ab3a8e7d81017, 0xbfc3dfc2b0ecc62a), (0x38a5e72f6cc4e614, 0x3c06b9c7d96091fa, 0xbfc303d718e47fd3), (0x390977b021b7c784, 0xbc6301771c407dbf, 0xbfc29552f81ff523), (0xb90eea44ec5389a5, 0xbc6f547bf1809e88, 0xbfc2266f190a5acb), (0xb8fbd933781e73cd, 0xbc6a28813e3a7f07, 0xbfc14785846742ac), (0x39071dbd9a581398, 0xbc69a5dc5e9030ac, 0xbfc0d77e7cd08e59), (0x38ee98f4812aa997, 0xbc550c647eb86499, 0xbfc0671512ca596e), (0x38f0ece597165991, 0xbc585f325c5bbacd, 0xbfbf0a30c01162a6), (0xb8b55db94ebc4018, 0x3c361578001e0162, 0xbfbe27076e2af2e6), (0xb8e20959368928d5, 0xbc5790dd951d90fa, 0xbfbd4313d66cb35d), (0xb8dda7659abe370e, 0xbc35d617ef8161b1, 0xbfbc5e548f5bc743), (0xb8e8f353ecfc45da, 0xbc5942f48aa70ea9, 0xbfba926d3a4ad563), (0x38cbb52cb975cbeb, 0x3c42099e1c184e8e, 0xbfb9ab42462033ad), (0x38ce547ecfe0df94, 0x3c24a697ab3424a9, 0xbfb8c345d6319b21), (0xb8fa115d17a663c2, 0x3c5eeedfcdd94131, 0xbfb7da766d7b12cd), (0xb8fc66d48ed8883f, 0x3c5388458ec21b6a, 0xbfb60658a93750c4), (0xb8f584bc9c7e09bc, 0xbc5a49e39a1a8be4, 0xbfb51b073f06183f), (0xb8d7465d8f6866cf, 0xbc4ddd4f935996c9, 0xbfb42edcbea646f0), (0x38e15fbcbe26b491, 0x3c5b599f227becbb, 0xbfb341d7961bd1d1), (0x38bd2c3f5a497e44, 0x3c1c125963fc4cfd, 0xbfb253f62f0a1417), (0x38bb925bd6fa5998, 0x3c379da3e8c22cda, 0xbfb16536eea37ae1), (0x38e0ece597165991, 0xbc485f325c5bbacd, 0xbfaf0a30c01162a6), (0xb8acecc7db99d86a, 0xbc21e3c53257fd47, 0xbfad276b8adb0b52), (0x38b6b5431d9cbf04, 0x3c3eb9759c130499, 0xbfab42dd711971bf), (0x38e9e0ef8448a202, 0xbc4f5a0e80520bf2, 0xbfa95c830ec8e3eb), (0xb8b63c9bf701b2a9, 0xbc418d3ca87b9296, 0xbfa77458f632dcfc), (0x38d33fb67ae4f6ce, 0x3c4ce55c2b4e2b72, 0xbfa58a5bafc8e4d5), (0xb8dc8d57ae1e11bd, 0x3c45bfa937f551bb, 0xbfa39e87b9febd60), (0x38df6acb8073198b, 0x3c3e9ae889bac481, 0xbfa1b0d98923d980), (0x38d814544147acc9, 0xbc333e3f04f1ef23, 0xbf9f829b0e783300), (0xb899ffdb5331f453, 0x3bf0ae69229dc868, 0xbf9b9fc027af9198), (0xb89dcd4f102a521d, 0x3c35b602ace3a510, 0xbf97b91b07d5b11b), (0xb8a98d0797189a4d, 0x3c10cb5a902b3a1c, 0xbf93cea44346a575), (0x38b52414fc416fc2, 0x3c183092c59642a1, 0xbf8fc0a8b0fc03e4), (0xb8aa850a4a1800ea, 0x3c116d7687d3df21, 0xbf87dc475f810a77), (0xb86a567b6587df34, 0x3bce44b7e3711ebf, 0xbf7fe02a6b106789), (0x0000000000000000, 0x0000000000000000, 0x8000000000000000), (0x0000000000000000, 0x0000000000000000, 0x8000000000000000), (0x387b59b52a5681bd, 0x3bec14b9f9377a1d, 0x3f78121214586b54), (0x38c6b69dd1ac0a31, 0xbc2c5517f64bc223, 0x3f841929f96832f0), (0xb8bf713b529d3d76, 0x3c2806208c04c220, 0x3f8c317384c75f06), (0xb8b3e8da8eba2824, 0xbc2cd7b66e01c26d, 0x3f9228fb1fea2e28), (0xb86484372b0fc178, 0xbbf8ed4d357c9c97, 0x3f963d6178690bd6), (0xb8aee63a49c74224, 0x3c1ec1a5f86d41f9, 0x3f9a55f548c5c43f), (0x38ce166b9e0c701b, 0x3c375b44595cab18, 0x3f9e72bf2813ce51), (0x38d3bc1c184cef0a, 0x3c4c05cf1d753622, 0x3fa0415d89e74444), (0x38c1de8382dc46eb, 0xbc4947f792615916, 0x3fa252f32f8d183f), (0x38eb92d06f3fe3af, 0xbc4cdd6f7f4a137e, 0x3fa466aed42de3ea), (0x38e85f24bc417540, 0x3c40413e6505e603, 0x3fa67c94f2d4bb58), (0xb8cd5f973f27591e, 0x3c3a8be97660a23d, 0x3fa894aa149fb343), (0xb8cd0957659a8681, 0x3c2a353bb42e0add, 0x3faaaef2d0fb10fc), (0x38cb1c2ce23545f5, 0x3c3e5cf3a0f56f72, 0x3fabbcebfc68f420), (0xb8dc4ea8dab3d31c, 0x3c44e6c986f44c55, 0x3fadda8adc67ee4e), (0x38e915fc13249a8b, 0xbc4cd9f1f95c2eed, 0x3faffa6911ab9301), (0x38db4cbd380a58f0, 0xbc5a4a128d192686, 0x3fb10e45b3cae831), (0xb8f531cc3e70565e, 0xbc5cc0fbce104eaa, 0x3fb2207b5c78549e), (0xb8dd345728d4891b, 0xbc5d15d38d2fa3f7, 0x3fb2aa04a44717a5), (0x38eb282b433139ab, 0x3c47a976d3b5b45f, 0x3fb3bdf5a7d1ee64), (0xb8e3165ac490d812, 0x3c5769f42c7842cc, 0x3fb4d3115d207eac), (0xb8fdf1f1f9a97a34, 0xbc545f9d61c68c1b, 0x3fb55e10050e0384), (0x38edb15b559f2b8c, 0xbc59acd8b33f8fdc, 0x3fb674f089365a7a), (0xb8eb73942ba54569, 0x3c5abca5b4fdb880, 0x3fb78d02263d82d3), (0xb8dc199e47fc4f1b, 0x3c3b9f2dffbeed43, 0x3fb8197e2f40e3f0), (0x38f089735832ff2f, 0xbc5478a85704ccb7, 0x3fb9335e5d594989), (0xb8f9be73856e63dd, 0xbc55b5ca203e4259, 0x3fba4e7640b1bc38), (0xb8fd1dc4ae609d89, 0x3c537d8f39bee659, 0x3fbadc77ee5aea8c), (0x38ec5646e7873ff4, 0xbc4cdc9f6f5f38c7, 0x3fbbf968769fca11), (0xb8ca4a0195f6076f, 0x3c49daf7df76ad2a, 0x3fbd179788219364), (0xb8f0554118a2fe2d, 0x3c5401fa71733019, 0x3fbda727638446a2), (0xb8b1980fad2b8c8f, 0xbc4a2bf991780d3f, 0x3fbec739830a1120), (0xb8eba1da9ea4e2ac, 0xbc59361574fb24e2, 0x3fbf57bc7d9005db), (0x38d491637376842d, 0x3c639e2d3f8b7d10, 0x3fc03cdc0a51ec0d), (0xb8fa7da07274e01d, 0xbc6dd7009902bf32, 0x3fc08598b59e3a07), (0x38f03c776a3fb0f1, 0xbc50e63a5f01c691, 0x3fc1178e8227e47c), (0x390a1136855b465f, 0xbc62d56ff61c2bfb, 0x3fc160c8024b27b1), (0xb8dc641c1655b965, 0x3c462c9ef939ac5d, 0x3fc1f3b925f25d41), (0xb9030309bfb61ce3, 0xbc66e38161051d69, 0x3fc23d712a49c202), (0xb8fdedef6e5214fa, 0xbc5499a3f25af95f, 0x3fc2d1610c86813a), (0xb8ab9d980d8c440b, 0xbc5c4716bdfc0cc9, 0x3fc31b994d3a4f85), (0xb8c44d5c95f5d241, 0x3c370d6cdf05266c, 0x3fc3b08b6757f2a9), (0xb9055cfc4715d0cf, 0xbc6d87e6a354d056, 0x3fc3fb45a59928cc), (0x38f046ddd0c4995f, 0xbc50d5604930f135, 0x3fc4913d8333b561), (0xb90e5aae7083b870, 0xbc6927d47803c5f4, 0x3fc4dc7b897bc1c8), (0xb8fcb60e1eb82c6c, 0x3c64f4d710fec38e, 0x3fc5737cc9018cdd), (0xb8c25a7abe3c6675, 0xbc21f5b44c0df7e7, 0x3fc5bf406b543db2), (0xb8d0587f8805bff2, 0xbc3d34f0f4621bed, 0x3fc6574ebe8c133a), (0x38ef4165ace952df, 0x3c696332bd4b341f, 0x3fc6a399dabbd383), (0xb905e04327207755, 0xbc68de59c21e166c, 0x3fc6f0128b756abc), (0x38fa90e246a61446, 0x3c5ef8f6ebcfb201, 0x3fc7898d85444c73), (0x38ee9d5bdc04215b, 0xbc4ac5f0c075b847, 0x3fc7d6903caf5ad0), (0xb8ea55c7d1bf59b5, 0x3c6d685f35eea2a0, 0x3fc871213750e994), (0x38e5f9812ac08ffd, 0x3c555aa8b6997a40, 0x3fc8beafeb38fe8c), (0x39025a9fa0ff7316, 0x3c6054473941ad99, 0x3fc90c6db9fcbcd9), (0xb90b9f17794734cf, 0x3c6f47dfd871f87f, 0x3fc9a8778debaa38), (0x38dc16be326ac41a, 0x3c435a19605e67ef, 0x3fc9f6c407089664), (0x38f185cfa0a62d77, 0x3c5df207dc5c34c6, 0x3fca454082e6ab05), (0xb8f307466a8570bb, 0x3c6ab5ca9eaa088a, 0x3fcae2ca6f672bd4), (0xb8f0459563c86e85, 0xbc66353ab386a94d, 0x3fcb31d8575bce3d), (0x38dac5281fdd139f, 0x3c3a0ee735d9f0ec, 0x3fcb811730b823d2), (0x38d0aaa7d9462021, 0x3c3dd355f6a516d7, 0x3fcbd087383bd8ad), (0x3900f039c9a8a2e5, 0xbc68e58b2c57a4a5, 0x3fcc6ffbc6f00f71), (0xb8e7196d3db630d3, 0x3c653d154280394f, 0x3fccc000c9db3c52), (0x38ef01fe115ec7f7, 0x3c660629242471a2, 0x3fcd1037f2655e7b), (0xb8ff3a153d8d4fe0, 0x3c5aa11d49f96cb9, 0x3fcdb13db0d48940), (0xb8de287e4407f374, 0x3c5fea48dd7b81d1, 0x3fce020cc6235ab5), (0xb8eb5b6e7d96592d, 0x3c42276041f43042, 0x3fce530effe71012), (0xb8b755b33ca06006, 0xbc6d33919ab94074, 0x3fcea4449f04aaf5), (0xb8f96415b209f7c5, 0xbc527c77ded76aad, 0x3fcf474b134df229), (0xb90c93e26ec48e0e, 0x3c6f665066f980a2, 0x3fcf991c6cb3b379), (0xb878c9ae634d3c77, 0x3c28de00938b4c40, 0x3fcfeb2233ea07cd), (0x38ed5f4501b8b4a6, 0xbc418290bd2932e2, 0x3fd01eae5626c691), (0x3902e2a91d8de3c6, 0xbc70779634061cbc, 0x3fd047e60cde83b8), (0xb90f2a6f815b079c, 0x3c643c2e68684d53, 0x3fd09aa572e6c6d4), (0x38f078ecd47fd065, 0x3c5162c79d5d11ee, 0x3fd0c42d676162e3), (0x390349ab8071c6f5, 0xbc692b49ef282b09, 0x3fd0edd060b78081), (0x39003c776a3fb0f1, 0xbc60e63a5f01c691, 0x3fd1178e8227e47c), (0x38b86b8fcae82457, 0x3c1e0936abd4fa6e, 0x3fd14167ef367783), (0x39062e66c6742717, 0x3c766fbd28b40935, 0x3fd16b5ccbacfb73), (0xb904298ef6ad5800, 0xbc612aeb84249223, 0x3fd1bf99635a6b95), (0x391fb7583fdc5cd1, 0x3c7512c3749a1e4e, 0x3fd1e9e1678899f4), (0xb8fbbc46cf6d5b05, 0x3c6f7ae91aeba60a, 0x3fd214456d0eb8d4), (0xb8d69da0a6f43fa8, 0x3c3bb75d1addf870, 0x3fd23ec5991eba49), (0xb9163d5cf0b6f233, 0x3c7e0efadd9db02b, 0x3fd269621134db92), (0xb8ba9b5dfcb5442c, 0xbc6856e61c515740, 0x3fd2941afb186b7c), (0x3908cc4b2b27c162, 0xbc782dad7fd86088, 0x3fd2bef07cdc9354), (0xb91f0f8d6f3c6a8e, 0xbc73d69909e5c3dc, 0x3fd314f1e1d35ce4), (0xb8f954216e4fd4b3, 0xbc5cd55b8a4746c0, 0x3fd3401e12aecba1), (0x38f5f12812782422, 0xbc5324f0e883858e, 0x3fd36b6776be1117), (0x38e44a223cab7ad9, 0xbc5ce2b31b31e8b0, 0x3fd396ce359bbf54), (0xb905ea8429f9f46d, 0xbc72ad27e50a8ec6, 0x3fd3c25277333184), (0x390cccb5749e39eb, 0x3c783d680d3c1084, 0x3fd3edf463c1683e), (0xb90c920829097668, 0x3c60dbb243827392, 0x3fd419b423d5e8c7), (0x3913cee6bc2e326b, 0xbc72b125247b0fa5, 0x3fd44591e0539f49), (0xb8d019b2f322342b, 0x3c38fb4c14c56eef, 0x3fd4718dc271c41b), (0x38fc6086c0bb1e94, 0xbc69964a168ccaca, 0x3fd49da7f3bcc41f), (0xb8f1ef0823bae5d2, 0xbc5123615b147a5d, 0x3fd4c9e09e172c3c), (0xb8e658171677adeb, 0xbc758cb3124b9245, 0x3fd4f637ebba9810), (0xb90777dce76e5542, 0xbc68f7e9b38a6979, 0x3fd522ae0738a3d8), (0xb9125eeb277e3f77, 0xbc7aacfdbbdab914, 0x3fd54f431b7be1a9), (0xb8e942cd558167e2, 0xbc60908d15f88b63, 0x3fd57bf753c8d1fb), (0xb8f6a2ed327a4daa, 0xbc5e6c2bdfb3e037, 0x3fd5a8cadbbedfa1), (0xb91d89fab3e76435, 0xbc76541148cbb8a2, 0x3fd5d5bddf595f30), (0xb8e72adc1a985ccf, 0xbc56e8920c09b73f, 0x3fd602d08af091ec), (0x3901e7352eee5ee9, 0x3c6dc18ce51fff99, 0x3fd630030b3aac49), ];