/* ---------------------------------------------------------------------------------------------------*/ /* Port of the Intel Decimal Floating-Point Math Library decimal128 type to Rust. */ /* decmathlib-rs - Copyright (C) 2023-2024 Carlos Guzmán Álvarez */ /* -------------------------------------------------------------------------------------------------- */ /* Licensed under the MIT license. See LICENSE file in the project root for full license information. */ /* -------------------------------------------------------------------------------------------------- */ /* Intel® Decimal Floating-Point Math Library - Copyright (c) 2018, Intel Corp. */ /* -------------------------------------------------------------------------------------------------- */ mod common; dec_test!(bid128_to_int64_int_001, bid128_to_int64_int, "-0" , 0 , 0x00); dec_test!(bid128_to_int64_int_002, bid128_to_int64_int, "0" , 0 , 0x00); dec_test!(bid128_to_int64_int_003, bid128_to_int64_int, 0x00000000000000000000000000000000u128, 0 , 0x00); dec_test!(bid128_to_int64_int_004, bid128_to_int64_int, 0x00000000000000000002000042000010u128, 0 , 0x00); dec_test!(bid128_to_int64_int_005, bid128_to_int64_int, 0x0001ed09bead87c0378d8e62ffffffffu128, 0 , 0x00); dec_test!(bid128_to_int64_int_006, bid128_to_int64_int, 0x0001ed09bead87c0378d8e64ffffffffu128, 0 , 0x00); dec_test!(bid128_to_int64_int_007, bid128_to_int64_int, 0x00badc457922ec8f0ba9baf2b3e98b9bu128, 0 , 0x00); dec_test!(bid128_to_int64_int_008, bid128_to_int64_int, 0x031e0000000000000000000000000000u128, 0 , 0x00); dec_test!(bid128_to_int64_int_009, bid128_to_int64_int, 0x124ad21e0b132e7eff3dfd572f7ebff7u128, 0 , 0x00); dec_test!(bid128_to_int64_int_010, bid128_to_int64_int, 0x12b9e1bd495a0b547757630190dcd940u128, 0 , 0x00); dec_test!(bid128_to_int64_int_011, bid128_to_int64_int, 0x2FFCF684DF56C3E01BC6C731FFFFFFFFu128, 0 , 0x00); // -- 0.5-ulp dec_test!(bid128_to_int64_int_012, bid128_to_int64_int, 0x2FFCF684DF56C3E01BC6C73200000000u128, 0 , 0x00); // -- 0.5 dec_test!(bid128_to_int64_int_013, bid128_to_int64_int, 0x2FFCF684DF56C3E01BC6C73200000001u128, 0 , 0x00); // -- 0.5+ulp dec_test!(bid128_to_int64_int_014, bid128_to_int64_int, 0x2FFDEC8B86EF679D76FC433D7FFFFFFFu128, 0 , 0x00); // -- 0.999-ulp dec_test!(bid128_to_int64_int_015, bid128_to_int64_int, 0x2FFDEC8B86EF679D76FC433D80000000u128, 0 , 0x00); // -- 0.999 dec_test!(bid128_to_int64_int_016, bid128_to_int64_int, 0x2FFDEC8B86EF679D76FC433D80000001u128, 0 , 0x00); // -- 0.999+ulp dec_test!(bid128_to_int64_int_017, bid128_to_int64_int, 0x2FFE314DC6448D9338C15B09FFFFFFFFu128, 0 , 0x00); // -- 1-ulp dec_test!(bid128_to_int64_int_018, bid128_to_int64_int, 0x2FFE314DC6448D9338C15B0A00000000u128, 1 , 0x00); // -- 1 dec_test!(bid128_to_int64_int_019, bid128_to_int64_int, 0x2FFE314DC6448D9338C15B0A00000001u128, 1 , 0x00); // -- 1+ulp dec_test!(bid128_to_int64_int_020, bid128_to_int64_int, 0x2FFE49F4A966D45CD522088EFFFFFFFFu128, 1 , 0x00); // -- 1.5-ulp dec_test!(bid128_to_int64_int_021, bid128_to_int64_int, 0x2FFE49F4A966D45CD522088F00000000u128, 1 , 0x00); // -- 1.5 dec_test!(bid128_to_int64_int_022, bid128_to_int64_int, 0x2FFE49F4A966D45CD522088F00000001u128, 1 , 0x00); // -- 1.5+ulp dec_test!(bid128_to_int64_int_023, bid128_to_int64_int, 0x3000204010002010d77cffffff7bfb77u128, 6 , 0x00); dec_test!(bid128_to_int64_int_024, bid128_to_int64_int, 0x300293E952CDA8B9AA44111DFFFFFFFFu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_025, bid128_to_int64_int, 0x300293E952CDA8B9AA44111E00000000u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_026, bid128_to_int64_int, 0x300293E952CDA8B9AA44111E00000001u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_027, bid128_to_int64_int, 0x300294286EACB8CB0A8CB6B13FFFFFFFu128, 300 , 0x00); // -- 300.5-ulp dec_test!(bid128_to_int64_int_028, bid128_to_int64_int, 0x300294286EACB8CB0A8CB6B140000000u128, 300 , 0x00); // -- 300.5 dec_test!(bid128_to_int64_int_029, bid128_to_int64_int, 0x300294286EACB8CB0A8CB6B140000001u128, 300 , 0x00); // -- 300.5+ulp dec_test!(bid128_to_int64_int_030, bid128_to_int64_int, 0x30040ECA8847C4129106CE82FFFFFFFFu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_031, bid128_to_int64_int, 0x30040ECA8847C4129106CE8300000000u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_032, bid128_to_int64_int, 0x30040ECA8847C4129106CE8300000001u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_033, bid128_to_int64_int, 0x300A0003C95A2F0B4856475FDFFFFFFFu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_034, bid128_to_int64_int, 0x300A0003C95A2F0B4856475FE0000000u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_035, bid128_to_int64_int, 0x300A0003C95A2F0B4856475FE0000001u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_036, bid128_to_int64_int, 0x300C000060EF6B1ABA6F07232FFFFFFFu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_037, bid128_to_int64_int, 0x300C000060EF6B1ABA6F072330000000u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_038, bid128_to_int64_int, 0x300C000060EF6B1ABA6F072330000001u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_039, bid128_to_int64_int, 0x3010C5371912364CE3056C27FFFFFFFFu128, 3999999999 , 0x00); // -- 4e9-ulp dec_test!(bid128_to_int64_int_040, bid128_to_int64_int, 0x3010C5371912364CE3056C2800000000u128, 4000000000 , 0x00); // -- 4e9 dec_test!(bid128_to_int64_int_041, bid128_to_int64_int, 0x3010C5371912364CE3056C2800000001u128, 4000000000 , 0x00); // -- 4e9+ulp dec_test!(bid128_to_int64_int_042, bid128_to_int64_int, 0x3010F684DF56C3E01BC6C731FFFFFFFFu128, 4999999999 , 0x00); // -- 5e9-ulp dec_test!(bid128_to_int64_int_043, bid128_to_int64_int, 0x3010F684DF56C3E01BC6C73200000000u128, 5000000000 , 0x00); // -- 5e9 dec_test!(bid128_to_int64_int_044, bid128_to_int64_int, 0x3010F684DF56C3E01BC6C73200000001u128, 5000000000 , 0x00); // -- 5e9+ulp dec_test!(bid128_to_int64_int_045, bid128_to_int64_int, 0x3012629B8C88FB62ED56E4238E3FFFFFu128, 19999999998 , 0x00); // -- 2e10-1.5-ulp dec_test!(bid128_to_int64_int_046, bid128_to_int64_int, 0x3012629B8C88FB62ED56E4238E400000u128, 19999999998 , 0x00); // -- 2e10-1.5 dec_test!(bid128_to_int64_int_047, bid128_to_int64_int, 0x3012629B8C88FB62ED56E4238E400001u128, 19999999998 , 0x00); // -- 2e10-1.5+ulp dec_test!(bid128_to_int64_int_048, bid128_to_int64_int, 0x3012629B8C8905F96EBAD4C9097FFFFFu128, 19999999998 , 0x00); // -- 2e10-1-ulp dec_test!(bid128_to_int64_int_049, bid128_to_int64_int, 0x3012629B8C8905F96EBAD4C909800000u128, 19999999999 , 0x00); // -- 2e10-1 dec_test!(bid128_to_int64_int_050, bid128_to_int64_int, 0x3012629B8C8905F96EBAD4C909800001u128, 19999999999 , 0x00); // -- 2e10-1+ulp dec_test!(bid128_to_int64_int_051, bid128_to_int64_int, 0x3012629B8C89108FF01EC56E84BFFFFFu128, 19999999999 , 0x00); // -- 2e10-0.5-ulp dec_test!(bid128_to_int64_int_052, bid128_to_int64_int, 0x3012629B8C89108FF01EC56E84C00000u128, 19999999999 , 0x00); // -- 2e10-0.5 dec_test!(bid128_to_int64_int_053, bid128_to_int64_int, 0x3012629B8C89108FF01EC56E84C00001u128, 19999999999 , 0x00); // -- 2e10-0.5+ulp dec_test!(bid128_to_int64_int_054, bid128_to_int64_int, 0x3012629B8C891B267182B613FFFFFFFFu128, 19999999999 , 0x00); // -- 2e10-ulp dec_test!(bid128_to_int64_int_055, bid128_to_int64_int, 0x3012629B8C891B267182B61400000000u128, 20000000000 , 0x00); // -- 2e10 dec_test!(bid128_to_int64_int_056, bid128_to_int64_int, 0x3012629B8C891B267182B61400000001u128, 20000000000 , 0x00); // -- 2e10+ulp dec_test!(bid128_to_int64_int_057, bid128_to_int64_int, 0x3012629B8C8925BCF2E6A6B97B3FFFFFu128, 20000000000 , 0x00); // -- 2e10+0.5-ulp dec_test!(bid128_to_int64_int_058, bid128_to_int64_int, 0x3012629B8C8925BCF2E6A6B97B400000u128, 20000000000 , 0x00); // -- 2e10+0.5 dec_test!(bid128_to_int64_int_059, bid128_to_int64_int, 0x3012629B8C8925BCF2E6A6B97B400001u128, 20000000000 , 0x00); // -- 2e10+0.5+ulp dec_test!(bid128_to_int64_int_060, bid128_to_int64_int, 0x3012629B8C893053744A975EF67FFFFFu128, 20000000000 , 0x00); // -- 2e10+1-ulp dec_test!(bid128_to_int64_int_061, bid128_to_int64_int, 0x3012629B8C893053744A975EF6800000u128, 20000000001 , 0x00); // -- 2e10+1 dec_test!(bid128_to_int64_int_062, bid128_to_int64_int, 0x3012629B8C893053744A975EF6800001u128, 20000000001 , 0x00); // -- 2e10+1+ulp dec_test!(bid128_to_int64_int_063, bid128_to_int64_int, 0x3012629B8C893AE9F5AE880471BFFFFFu128, 20000000001 , 0x00); // -- 2e10+1.5-ulp dec_test!(bid128_to_int64_int_064, bid128_to_int64_int, 0x3012629B8C893AE9F5AE880471C00000u128, 20000000001 , 0x00); // -- 2e10+1.5 dec_test!(bid128_to_int64_int_065, bid128_to_int64_int, 0x3012629B8C893AE9F5AE880471C00001u128, 20000000001 , 0x00); // -- 2e10+1.5+ulp dec_test!(bid128_to_int64_int_066, bid128_to_int64_int, 0x3018AD78EBC5AC61FFFFFFFFFFFFFFFFu128, 35184372088831 , 0x00); // -- 2^45-ulp dec_test!(bid128_to_int64_int_067, bid128_to_int64_int, 0x3018AD78EBC5AC620000000000000000u128, 35184372088832 , 0x00); // -- 2^45 dec_test!(bid128_to_int64_int_068, bid128_to_int64_int, 0x3018AD78EBC5AC620000000000000001u128, 35184372088832 , 0x00); // -- 2^45+ulp dec_test!(bid128_to_int64_int_069, bid128_to_int64_int, 0x3018AD78EBC5AC64B5E3AF16B187FFFFu128, 35184372088832 , 0x00); // -- 2^45+0.5-ulp dec_test!(bid128_to_int64_int_070, bid128_to_int64_int, 0x3018AD78EBC5AC64B5E3AF16B1880000u128, 35184372088832 , 0x00); // -- 2^45+0.5 dec_test!(bid128_to_int64_int_071, bid128_to_int64_int, 0x3018AD78EBC5AC64B5E3AF16B1880001u128, 35184372088832 , 0x00); // -- 2^45+0.5+ulp dec_test!(bid128_to_int64_int_072, bid128_to_int64_int, 0x301A0000000000A2E6C09AD3E0D3FFFFu128, 300 , 0x00); // -- 300.5-ulp dec_test!(bid128_to_int64_int_073, bid128_to_int64_int, 0x301A0000000000A2E6C09AD3E0D40000u128, 300 , 0x00); // -- 300.5 dec_test!(bid128_to_int64_int_074, bid128_to_int64_int, 0x301A0000000000A2E6C09AD3E0D40001u128, 300 , 0x00); // -- 300.5+ulp dec_test!(bid128_to_int64_int_075, bid128_to_int64_int, 0x301C629B8C891B265CB1A40684E9FFFFu128, 1999999999999998 , 0x00); // -- 2e15-1.5-ulp dec_test!(bid128_to_int64_int_076, bid128_to_int64_int, 0x301C629B8C891B265CB1A40684EA0000u128, 1999999999999998 , 0x00); // -- 2e15-1.5 dec_test!(bid128_to_int64_int_077, bid128_to_int64_int, 0x301C629B8C891B265CB1A40684EA0001u128, 1999999999999998 , 0x00); // -- 2e15-1.5+ulp dec_test!(bid128_to_int64_int_078, bid128_to_int64_int, 0x301C629B8C891B2663A1FF60589BFFFFu128, 1999999999999998 , 0x00); // -- 2e15-1-ulp dec_test!(bid128_to_int64_int_079, bid128_to_int64_int, 0x301C629B8C891B2663A1FF60589C0000u128, 1999999999999999 , 0x00); // -- 2e15-1 dec_test!(bid128_to_int64_int_080, bid128_to_int64_int, 0x301C629B8C891B2663A1FF60589C0001u128, 1999999999999999 , 0x00); // -- 2e15-1+ulp dec_test!(bid128_to_int64_int_081, bid128_to_int64_int, 0x301C629B8C891B266A925ABA2C4DFFFFu128, 1999999999999999 , 0x00); // -- 2e15-0.5-ulp dec_test!(bid128_to_int64_int_082, bid128_to_int64_int, 0x301C629B8C891B266A925ABA2C4E0000u128, 1999999999999999 , 0x00); // -- 2e15-0.5 dec_test!(bid128_to_int64_int_083, bid128_to_int64_int, 0x301C629B8C891B266A925ABA2C4E0001u128, 1999999999999999 , 0x00); // -- 2e15-0.5+ulp dec_test!(bid128_to_int64_int_084, bid128_to_int64_int, 0x301C629B8C891B267182B613FFFFFFFFu128, 1999999999999999 , 0x00); // -- 2e15-ulp dec_test!(bid128_to_int64_int_085, bid128_to_int64_int, 0x301C629B8C891B267182B61400000000u128, 2000000000000000 , 0x00); // -- 2e15 dec_test!(bid128_to_int64_int_086, bid128_to_int64_int, 0x301C629B8C891B267182B61400000001u128, 2000000000000000 , 0x00); // -- 2e15+ulp dec_test!(bid128_to_int64_int_087, bid128_to_int64_int, 0x301C629B8C891B267873116DD3B1FFFFu128, 2000000000000000 , 0x00); // -- 2e15+0.5-ulp dec_test!(bid128_to_int64_int_088, bid128_to_int64_int, 0x301C629B8C891B267873116DD3B20000u128, 2000000000000000 , 0x00); // -- 2e15+0.5 dec_test!(bid128_to_int64_int_089, bid128_to_int64_int, 0x301C629B8C891B267873116DD3B20001u128, 2000000000000000 , 0x00); // -- 2e15+0.5+ulp dec_test!(bid128_to_int64_int_090, bid128_to_int64_int, 0x301C629B8C891B267F636CC7A763FFFFu128, 2000000000000000 , 0x00); // -- 2e15+1-ulp dec_test!(bid128_to_int64_int_091, bid128_to_int64_int, 0x301C629B8C891B267F636CC7A7640000u128, 2000000000000001 , 0x00); // -- 2e15+1 dec_test!(bid128_to_int64_int_092, bid128_to_int64_int, 0x301C629B8C891B267F636CC7A7640001u128, 2000000000000001 , 0x00); // -- 2e15+1+ulp dec_test!(bid128_to_int64_int_093, bid128_to_int64_int, 0x301C629B8C891B268653C8217B15FFFFu128, 2000000000000001 , 0x00); // -- 2e15+1.5-ulp dec_test!(bid128_to_int64_int_094, bid128_to_int64_int, 0x301C629B8C891B268653C8217B160000u128, 2000000000000001 , 0x00); // -- 2e15+1.5 dec_test!(bid128_to_int64_int_095, bid128_to_int64_int, 0x301C629B8C891B268653C8217B160001u128, 2000000000000001 , 0x00); // -- 2e15+1.5+ulp dec_test!(bid128_to_int64_int_096, bid128_to_int64_int, 0x301E000000000001A055690D9DB7FFFFu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_097, bid128_to_int64_int, 0x301E000000000001A055690D9DB80000u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_098, bid128_to_int64_int, 0x301E000000000001A055690D9DB80001u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_099, bid128_to_int64_int, 0x301E002C68AF0BB140B1A2BC2EC4FFFFu128, 35184372088832 , 0x00); // -- 2^45+0.5-ulp dec_test!(bid128_to_int64_int_100, bid128_to_int64_int, 0x301E002C68AF0BB140B1A2BC2EC50000u128, 35184372088832 , 0x00); // -- 2^45+0.5 dec_test!(bid128_to_int64_int_101, bid128_to_int64_int, 0x301E002C68AF0BB140B1A2BC2EC50001u128, 35184372088832 , 0x00); // -- 2^45+0.5+ulp dec_test!(bid128_to_int64_int_102, bid128_to_int64_int, 0x302000000000000029A2241AF62BFFFFu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_103, bid128_to_int64_int, 0x302000000000000029A2241AF62C0000u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_104, bid128_to_int64_int, 0x302000000000000029A2241AF62C0001u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_105, bid128_to_int64_int, 0x3020000470DE4DF81FFFFFFFFFFFFFFFu128, 35184372088831 , 0x00); // -- 2^45-ulp dec_test!(bid128_to_int64_int_106, bid128_to_int64_int, 0x3020000470DE4DF82000000000000000u128, 35184372088832 , 0x00); // -- 2^45 dec_test!(bid128_to_int64_int_107, bid128_to_int64_int, 0x3020000470DE4DF82000000000000001u128, 35184372088832 , 0x00); // -- 2^45+ulp dec_test!(bid128_to_int64_int_108, bid128_to_int64_int, 0x302000FC6F7C4045813459C637E07FFFu128, 2000000000000000 , 0x00); // -- 2e15+0.5-ulp dec_test!(bid128_to_int64_int_109, bid128_to_int64_int, 0x302000FC6F7C4045813459C637E08000u128, 2000000000000000 , 0x00); // -- 2e15+0.5 dec_test!(bid128_to_int64_int_110, bid128_to_int64_int, 0x302000FC6F7C4045813459C637E08001u128, 2000000000000000 , 0x00); // -- 2e15+0.5+ulp dec_test!(bid128_to_int64_int_111, bid128_to_int64_int, 0x302000FC6F7C40458157E0B8A7A17FFFu128, 2000000000000001 , 0x00); // -- 2e15+1.5-ulp dec_test!(bid128_to_int64_int_112, bid128_to_int64_int, 0x302000FC6F7C40458157E0B8A7A18000u128, 2000000000000001 , 0x00); // -- 2e15+1.5 dec_test!(bid128_to_int64_int_113, bid128_to_int64_int, 0x302000FC6F7C40458157E0B8A7A18001u128, 2000000000000001 , 0x00); // -- 2e15+1.5+ulp dec_test!(bid128_to_int64_int_114, bid128_to_int64_int, 0x302200193E5939A08CE4879688D63FFFu128, 1999999999999998 , 0x00); // -- 2e15-1.5-ulp dec_test!(bid128_to_int64_int_115, bid128_to_int64_int, 0x302200193E5939A08CE4879688D64000u128, 1999999999999998 , 0x00); // -- 2e15-1.5 dec_test!(bid128_to_int64_int_116, bid128_to_int64_int, 0x302200193E5939A08CE4879688D64001u128, 1999999999999998 , 0x00); // -- 2e15-1.5+ulp dec_test!(bid128_to_int64_int_117, bid128_to_int64_int, 0x302200193E5939A08CE815152D9CBFFFu128, 1999999999999999 , 0x00); // -- 2e15-0.5-ulp dec_test!(bid128_to_int64_int_118, bid128_to_int64_int, 0x302200193E5939A08CE815152D9CC000u128, 1999999999999999 , 0x00); // -- 2e15-0.5 dec_test!(bid128_to_int64_int_119, bid128_to_int64_int, 0x302200193E5939A08CE815152D9CC001u128, 1999999999999999 , 0x00); // -- 2e15-0.5+ulp dec_test!(bid128_to_int64_int_120, bid128_to_int64_int, 0x30224a0c1253c042e6e76e8767d72953u128, 1501854720599343083 , 0x00); dec_test!(bid128_to_int64_int_121, bid128_to_int64_int, 0x3023C6BF52633FFFFFFAABC208D63FFFu128, 9223372036854775806 , 0x00); // -- 2^63-1.5-ulp dec_test!(bid128_to_int64_int_122, bid128_to_int64_int, 0x3023C6BF52633FFFFFFAABC208D64000u128, 9223372036854775806 , 0x00); // -- 2^63-1.5 dec_test!(bid128_to_int64_int_123, bid128_to_int64_int, 0x3023C6BF52633FFFFFFAABC208D64001u128, 9223372036854775806 , 0x00); // -- 2^63-1.5+ulp dec_test!(bid128_to_int64_int_124, bid128_to_int64_int, 0x3023C6BF52633FFFFFFC72815B397FFFu128, 9223372036854775806 , 0x00); // -- 2^63-1-ulp dec_test!(bid128_to_int64_int_125, bid128_to_int64_int, 0x3023C6BF52633FFFFFFC72815B398000u128, 9223372036854775807 , 0x00); // -- 2^63-1 dec_test!(bid128_to_int64_int_126, bid128_to_int64_int, 0x3023C6BF52633FFFFFFC72815B398001u128, 9223372036854775807 , 0x00); // -- 2^63-1+ulp dec_test!(bid128_to_int64_int_127, bid128_to_int64_int, 0x3023C6BF52633FFFFFFE3940AD9CBFFFu128, 9223372036854775807 , 0x00); // -- 2^63-0.5-ulp dec_test!(bid128_to_int64_int_128, bid128_to_int64_int, 0x3023C6BF52633FFFFFFE3940AD9CC000u128, 9223372036854775807 , 0x00); // -- 2^63-0.5 dec_test!(bid128_to_int64_int_129, bid128_to_int64_int, 0x3023C6BF52633FFFFFFE3940AD9CC001u128, 9223372036854775807 , 0x00); // -- 2^63-0.5+ulp dec_test!(bid128_to_int64_int_130, bid128_to_int64_int, 0x3023C6BF52633FFFFFFFFFFFFFFFFFFFu128, 9223372036854775807 , 0x00); // -- 2^63-ulp dec_test!(bid128_to_int64_int_131, bid128_to_int64_int, 0x3023C6BF526340000000000000000000u128, -9223372036854775808, 0x01); // -- 2^63 dec_test!(bid128_to_int64_int_132, bid128_to_int64_int, 0x3023C6BF526340000000000000000001u128, -9223372036854775808, 0x01); // -- 2^63+ulp dec_test!(bid128_to_int64_int_133, bid128_to_int64_int, 0x3023C6BF526340000001C6BF52633FFFu128, -9223372036854775808, 0x01); // -- 2^63+0.5-ulp dec_test!(bid128_to_int64_int_134, bid128_to_int64_int, 0x3023C6BF526340000001C6BF52634000u128, -9223372036854775808, 0x01); // -- 2^63+0.5 dec_test!(bid128_to_int64_int_135, bid128_to_int64_int, 0x3023C6BF526340000001C6BF52634001u128, -9223372036854775808, 0x01); // -- 2^63+0.5+ulp dec_test!(bid128_to_int64_int_136, bid128_to_int64_int, 0x3023C6BF5263400000038D7EA4C67FFFu128, -9223372036854775808, 0x01); // -- 2^63+1-ulp dec_test!(bid128_to_int64_int_137, bid128_to_int64_int, 0x3023C6BF5263400000038D7EA4C68000u128, -9223372036854775808, 0x01); // -- 2^63+1 dec_test!(bid128_to_int64_int_138, bid128_to_int64_int, 0x3023C6BF5263400000038D7EA4C68001u128, -9223372036854775808, 0x01); // -- 2^63+1+ulp dec_test!(bid128_to_int64_int_139, bid128_to_int64_int, 0x3023e40015023441d003804304201410u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_140, bid128_to_int64_int, 0x3024000000000000006A94D74F42FFFFu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_141, bid128_to_int64_int, 0x3024000000000000006A94D74F430000u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_142, bid128_to_int64_int, 0x3024000000000000006A94D74F430001u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_143, bid128_to_int64_int, 0x3024314DC6448D9338C15B09FFFFFFFFu128, -9223372036854775808, 0x01); // -- 1e19-ulp dec_test!(bid128_to_int64_int_144, bid128_to_int64_int, 0x3024314DC6448D9338C15B0A00000000u128, -9223372036854775808, 0x01); // -- 1e19 dec_test!(bid128_to_int64_int_145, bid128_to_int64_int, 0x3024314DC6448D9338C15B0A00000001u128, -9223372036854775808, 0x01); // -- 1e19+ulp dec_test!(bid128_to_int64_int_146, bid128_to_int64_int, 0x3024314DC6448D9338C18883883D1FFFu128, -9223372036854775808, 0x01); // -- 1e19+0.5-ulp dec_test!(bid128_to_int64_int_147, bid128_to_int64_int, 0x3024314DC6448D9338C18883883D2000u128, -9223372036854775808, 0x01); // -- 1e19+0.5 dec_test!(bid128_to_int64_int_148, bid128_to_int64_int, 0x3024314DC6448D9338C18883883D2001u128, -9223372036854775808, 0x01); // -- 1e19+0.5+ulp dec_test!(bid128_to_int64_int_149, bid128_to_int64_int, 0x302449F4A966D45CD522088EFFFFFFFFu128, -9223372036854775808, 0x01); // -- 1.5e19-ulp dec_test!(bid128_to_int64_int_150, bid128_to_int64_int, 0x302449F4A966D45CD522088F00000000u128, -9223372036854775808, 0x01); // -- 1.5e19 dec_test!(bid128_to_int64_int_151, bid128_to_int64_int, 0x302449F4A966D45CD522088F00000001u128, -9223372036854775808, 0x01); // -- 1.5e19+ulp dec_test!(bid128_to_int64_int_152, bid128_to_int64_int, 0x30245AF3107A3FFFFFFFA50CEF85BFFFu128, -9223372036854775808, 0x01); // -- 2^64-1-ulp dec_test!(bid128_to_int64_int_153, bid128_to_int64_int, 0x30245AF3107A3FFFFFFFA50CEF85C000u128, -9223372036854775808, 0x01); // -- 2^64-1 dec_test!(bid128_to_int64_int_154, bid128_to_int64_int, 0x30245AF3107A3FFFFFFFA50CEF85C001u128, -9223372036854775808, 0x01); // -- 2^64-1+ulp dec_test!(bid128_to_int64_int_155, bid128_to_int64_int, 0x30245AF3107A3FFFFFFFD28677C2DFFFu128, -9223372036854775808, 0x01); // -- 2^64-0.5-ulp dec_test!(bid128_to_int64_int_156, bid128_to_int64_int, 0x30245AF3107A3FFFFFFFD28677C2E000u128, -9223372036854775808, 0x01); // -- 2^64-0.5 dec_test!(bid128_to_int64_int_157, bid128_to_int64_int, 0x30245AF3107A3FFFFFFFD28677C2E001u128, -9223372036854775808, 0x01); // -- 2^64-0.5+ulp dec_test!(bid128_to_int64_int_158, bid128_to_int64_int, 0x30245AF3107A3FFFFFFFFFFFFFFFFFFFu128, -9223372036854775808, 0x01); // -- 2^64-ulp dec_test!(bid128_to_int64_int_159, bid128_to_int64_int, 0x30245AF3107A40000000000000000000u128, -9223372036854775808, 0x01); // -- 2^64 dec_test!(bid128_to_int64_int_160, bid128_to_int64_int, 0x30245AF3107A40000000000000000001u128, -9223372036854775808, 0x01); // -- 2^64+ulp dec_test!(bid128_to_int64_int_161, bid128_to_int64_int, 0x30245AF3107A400000002D79883D1FFFu128, -9223372036854775808, 0x01); // -- 2^64+0.5-ulp dec_test!(bid128_to_int64_int_162, bid128_to_int64_int, 0x30245AF3107A400000002D79883D2000u128, -9223372036854775808, 0x01); // -- 2^64+0.5 dec_test!(bid128_to_int64_int_163, bid128_to_int64_int, 0x30245AF3107A400000002D79883D2001u128, -9223372036854775808, 0x01); // -- 2^64+0.5+ulp dec_test!(bid128_to_int64_int_164, bid128_to_int64_int, 0x30245AF3107A400000005AF3107A3FFFu128, -9223372036854775808, 0x01); // -- 2^64+1-ulp dec_test!(bid128_to_int64_int_165, bid128_to_int64_int, 0x30245AF3107A400000005AF3107A4000u128, -9223372036854775808, 0x01); // -- 2^64+1 dec_test!(bid128_to_int64_int_166, bid128_to_int64_int, 0x30245AF3107A400000005AF3107A4001u128, -9223372036854775808, 0x01); // -- 2^64+1+ulp dec_test!(bid128_to_int64_int_167, bid128_to_int64_int, 0x3024629B8C891B267182B613FFFFFFFFu128, -9223372036854775808, 0x01); // -- 2e19-ulp dec_test!(bid128_to_int64_int_168, bid128_to_int64_int, 0x3024629B8C891B267182B61400000000u128, -9223372036854775808, 0x01); // -- 2e19 dec_test!(bid128_to_int64_int_169, bid128_to_int64_int, 0x3024629B8C891B267182B61400000001u128, -9223372036854775808, 0x01); // -- 2e19+ulp dec_test!(bid128_to_int64_int_170, bid128_to_int64_int, 0x30247B426FAB61F00DE36398FFFFFFFFu128, -9223372036854775808, 0x01); // -- 2.5e19-ulp dec_test!(bid128_to_int64_int_171, bid128_to_int64_int, 0x30247B426FAB61F00DE3639900000000u128, -9223372036854775808, 0x01); // -- 2.5e19 dec_test!(bid128_to_int64_int_172, bid128_to_int64_int, 0x30247B426FAB61F00DE3639900000001u128, -9223372036854775808, 0x01); // -- 2.5e19+ulp dec_test!(bid128_to_int64_int_173, bid128_to_int64_int, 0x3026314DC6448D9338C15B09FFFFFFFFu128, -9223372036854775808, 0x01); // -- 1e20-ulp dec_test!(bid128_to_int64_int_174, bid128_to_int64_int, 0x3026314DC6448D9338C15B0A00000000u128, -9223372036854775808, 0x01); // -- 1e20 dec_test!(bid128_to_int64_int_175, bid128_to_int64_int, 0x3026314DC6448D9338C15B0A00000001u128, -9223372036854775808, 0x01); // -- 1e20+ulp dec_test!(bid128_to_int64_int_176, bid128_to_int64_int, 0x302A00000000006C6B935B68D08DA3FFu128, 19999999998 , 0x00); // -- 2e10-1.5-ulp dec_test!(bid128_to_int64_int_177, bid128_to_int64_int, 0x302A00000000006C6B935B68D08DA400u128, 19999999998 , 0x00); // -- 2e10-1.5 dec_test!(bid128_to_int64_int_178, bid128_to_int64_int, 0x302A00000000006C6B935B68D08DA401u128, 19999999998 , 0x00); // -- 2e10-1.5+ulp dec_test!(bid128_to_int64_int_179, bid128_to_int64_int, 0x302A00000000006C6B935B8019048BFFu128, 19999999999 , 0x00); // -- 2e10-0.5-ulp dec_test!(bid128_to_int64_int_180, bid128_to_int64_int, 0x302A00000000006C6B935B8019048C00u128, 19999999999 , 0x00); // -- 2e10-0.5 dec_test!(bid128_to_int64_int_181, bid128_to_int64_int, 0x302A00000000006C6B935B8019048C01u128, 19999999999 , 0x00); // -- 2e10-0.5+ulp dec_test!(bid128_to_int64_int_182, bid128_to_int64_int, 0x302C000000000000000002BBA7F521FFu128, 300 , 0x00); // -- 300.5-ulp dec_test!(bid128_to_int64_int_183, bid128_to_int64_int, 0x302C000000000000000002BBA7F52200u128, 300 , 0x00); // -- 300.5 dec_test!(bid128_to_int64_int_184, bid128_to_int64_int, 0x302C000000000000000002BBA7F52201u128, 300 , 0x00); // -- 300.5+ulp dec_test!(bid128_to_int64_int_185, bid128_to_int64_int, 0x302C00000000000AD78EBC5872141BFFu128, 19999999998 , 0x00); // -- 2e10-1-ulp dec_test!(bid128_to_int64_int_186, bid128_to_int64_int, 0x302C00000000000AD78EBC5872141C00u128, 19999999999 , 0x00); // -- 2e10-1 dec_test!(bid128_to_int64_int_187, bid128_to_int64_int, 0x302C00000000000AD78EBC5872141C01u128, 19999999999 , 0x00); // -- 2e10-1+ulp dec_test!(bid128_to_int64_int_188, bid128_to_int64_int, 0x302C00000000000AD78EBC5BF025F1FFu128, 20000000000 , 0x00); // -- 2e10+0.5-ulp dec_test!(bid128_to_int64_int_189, bid128_to_int64_int, 0x302C00000000000AD78EBC5BF025F200u128, 20000000000 , 0x00); // -- 2e10+0.5 dec_test!(bid128_to_int64_int_190, bid128_to_int64_int, 0x302C00000000000AD78EBC5BF025F201u128, 20000000000 , 0x00); // -- 2e10+0.5+ulp dec_test!(bid128_to_int64_int_191, bid128_to_int64_int, 0x302C00000000000AD78EBC5E4431D5FFu128, 20000000001 , 0x00); // -- 2e10+1.5-ulp dec_test!(bid128_to_int64_int_192, bid128_to_int64_int, 0x302C00000000000AD78EBC5E4431D600u128, 20000000001 , 0x00); // -- 2e10+1.5 dec_test!(bid128_to_int64_int_193, bid128_to_int64_int, 0x302C00000000000AD78EBC5E4431D601u128, 20000000001 , 0x00); // -- 2e10+1.5+ulp dec_test!(bid128_to_int64_int_194, bid128_to_int64_int, 0x302C000000108B2A2C28028E3FF41BFFu128, 1999999999999998 , 0x00); // -- 2e15-1-ulp dec_test!(bid128_to_int64_int_195, bid128_to_int64_int, 0x302C000000108B2A2C28028E3FF41C00u128, 1999999999999999 , 0x00); // -- 2e15-1 dec_test!(bid128_to_int64_int_196, bid128_to_int64_int, 0x302C000000108B2A2C28028E3FF41C01u128, 1999999999999999 , 0x00); // -- 2e15-1+ulp dec_test!(bid128_to_int64_int_197, bid128_to_int64_int, 0x302E000000000001158E46094F6AC9FFu128, 20000000000 , 0x00); // -- 2e10+1-ulp dec_test!(bid128_to_int64_int_198, bid128_to_int64_int, 0x302E000000000001158E46094F6ACA00u128, 20000000001 , 0x00); // -- 2e10+1 dec_test!(bid128_to_int64_int_199, bid128_to_int64_int, 0x302E000000000001158E46094F6ACA01u128, 20000000001 , 0x00); // -- 2e10+1+ulp dec_test!(bid128_to_int64_int_200, bid128_to_int64_int, 0x302E00000001A784379D99DB7D9AC9FFu128, 2000000000000000 , 0x00); // -- 2e15+1-ulp dec_test!(bid128_to_int64_int_201, bid128_to_int64_int, 0x302E00000001A784379D99DB7D9ACA00u128, 2000000000000001 , 0x00); // -- 2e15+1 dec_test!(bid128_to_int64_int_202, bid128_to_int64_int, 0x302E00000001A784379D99DB7D9ACA01u128, 2000000000000001 , 0x00); // -- 2e15+1+ulp dec_test!(bid128_to_int64_int_203, bid128_to_int64_int, 0x303000000000000000000006FC23ABFFu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_204, bid128_to_int64_int, 0x303000000000000000000006FC23AC00u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_205, bid128_to_int64_int, 0x303000000000000000000006FC23AC01u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_206, bid128_to_int64_int, 0x303200000000000000000000B2D05DFFu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_207, bid128_to_int64_int, 0x303200000000000000000000B2D05E00u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_208, bid128_to_int64_int, 0x303200000000000000000000B2D05E01u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_209, bid128_to_int64_int, 0x303800000000000000000000002DDA47u128, 300 , 0x00); // -- 300.5-ulp dec_test!(bid128_to_int64_int_210, bid128_to_int64_int, 0x303800000000000000000000002DDA48u128, 300 , 0x00); // -- 300.5 dec_test!(bid128_to_int64_int_211, bid128_to_int64_int, 0x303800000000000000000000002DDA49u128, 300 , 0x00); // -- 300.5+ulp dec_test!(bid128_to_int64_int_212, bid128_to_int64_int, 0x303A00000000000000000000000003E7u128, 0 , 0x00); // -- 0.999 dec_test!(bid128_to_int64_int_213, bid128_to_int64_int, 0x303A00000000000000000000000495D3u128, 300 , 0x00); // -- 300.5-ulp dec_test!(bid128_to_int64_int_214, bid128_to_int64_int, 0x303A00000000000000000000000495D4u128, 300 , 0x00); // -- 300.5 dec_test!(bid128_to_int64_int_215, bid128_to_int64_int, 0x303A00000000000000000000000495D5u128, 300 , 0x00); // -- 300.5+ulp dec_test!(bid128_to_int64_int_216, bid128_to_int64_int, 0x303C0000000000000000000000007561u128, 300 , 0x00); // -- 300.5-ulp dec_test!(bid128_to_int64_int_217, bid128_to_int64_int, 0x303C0000000000000000000000007562u128, 300 , 0x00); // -- 300.5 dec_test!(bid128_to_int64_int_218, bid128_to_int64_int, 0x303C0000000000000000000000007563u128, 300 , 0x00); // -- 300.5+ulp dec_test!(bid128_to_int64_int_219, bid128_to_int64_int, 0x303E0000000000000000000000000005u128, 0 , 0x00); // -- 0.5 dec_test!(bid128_to_int64_int_220, bid128_to_int64_int, 0x303E000000000000000000000000000Fu128, 1 , 0x00); // -- 1.5 dec_test!(bid128_to_int64_int_221, bid128_to_int64_int, 0x303E0000000000000000000000000BB7u128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_222, bid128_to_int64_int, 0x303E0000000000000000000000000BB8u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_223, bid128_to_int64_int, 0x303E0000000000000000000000000BB9u128, 300 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_224, bid128_to_int64_int, 0x303E0000000000000000000000000BBDu128, 300 , 0x00); // -- 300.5 dec_test!(bid128_to_int64_int_225, bid128_to_int64_int, 0x303E0000000000000000002E90EDCFF1u128, 19999999998 , 0x00); // -- 2e10-1.5 dec_test!(bid128_to_int64_int_226, bid128_to_int64_int, 0x303E0000000000000000002E90EDCFFBu128, 19999999999 , 0x00); // -- 2e10-0.5 dec_test!(bid128_to_int64_int_227, bid128_to_int64_int, 0x303E0000000000000000002E90EDD005u128, 20000000000 , 0x00); // -- 2e10+0.5 dec_test!(bid128_to_int64_int_228, bid128_to_int64_int, 0x303E0000000000000000002E90EDD00Fu128, 20000000001 , 0x00); // -- 2e10+1.5 dec_test!(bid128_to_int64_int_229, bid128_to_int64_int, 0x303E0000000000000001400000000005u128, 35184372088832 , 0x00); // -- 2^45+0.5 dec_test!(bid128_to_int64_int_230, bid128_to_int64_int, 0x303E00000000000000470DE4DF81FFF1u128, 1999999999999998 , 0x00); // -- 2e15-1.5 dec_test!(bid128_to_int64_int_231, bid128_to_int64_int, 0x303E00000000000000470DE4DF81FFFBu128, 1999999999999999 , 0x00); // -- 2e15-0.5 dec_test!(bid128_to_int64_int_232, bid128_to_int64_int, 0x303E00000000000000470DE4DF820005u128, 2000000000000000 , 0x00); // -- 2e15+0.5 dec_test!(bid128_to_int64_int_233, bid128_to_int64_int, 0x303E00000000000000470DE4DF82000Fu128, 2000000000000001 , 0x00); // -- 2e15+1.5 dec_test!(bid128_to_int64_int_234, bid128_to_int64_int, 0x303E000000000004FFFFFFFFFFFFFFF1u128, 9223372036854775806 , 0x00); // -- 2^63-1.5 dec_test!(bid128_to_int64_int_235, bid128_to_int64_int, 0x303E000000000004FFFFFFFFFFFFFFFBu128, 9223372036854775807 , 0x00); // -- 2^63-0.5 dec_test!(bid128_to_int64_int_236, bid128_to_int64_int, 0x303E0000000000050000000000000005u128, -9223372036854775808, 0x01); // -- 2^63+0.5 dec_test!(bid128_to_int64_int_237, bid128_to_int64_int, 0x303E0000000000056BC75E2D63100005u128, -9223372036854775808, 0x01); // -- 1e19+0.5 dec_test!(bid128_to_int64_int_238, bid128_to_int64_int, 0x303E000000000009FFFFFFFFFFFFFFFBu128, -9223372036854775808, 0x01); // -- 2^64-0.5 dec_test!(bid128_to_int64_int_239, bid128_to_int64_int, 0x303E00000000000A0000000000000005u128, -9223372036854775808, 0x01); // -- 2^64+0.5 dec_test!(bid128_to_int64_int_240, bid128_to_int64_int, 0x30400000000000000000000000000001u128, 1 , 0x00); // -- 1 dec_test!(bid128_to_int64_int_241, bid128_to_int64_int, 0x3040000000000000000000000000012Bu128, 299 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_242, bid128_to_int64_int, 0x3040000000000000000000000000012Cu128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_243, bid128_to_int64_int, 0x3040000000000000000000000000012Du128, 301 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_244, bid128_to_int64_int, 0x304000000000000000000004A817C7FFu128, 19999999999 , 0x00); // -- 2e10-1 dec_test!(bid128_to_int64_int_245, bid128_to_int64_int, 0x304000000000000000000004A817C801u128, 20000000001 , 0x00); // -- 2e10+1 dec_test!(bid128_to_int64_int_246, bid128_to_int64_int, 0x30400000000000000000200000000000u128, 35184372088832 , 0x00); // -- 2^45 dec_test!(bid128_to_int64_int_247, bid128_to_int64_int, 0x304000000000000000071AFD498CFFFFu128, 1999999999999999 , 0x00); // -- 2e15-1 dec_test!(bid128_to_int64_int_248, bid128_to_int64_int, 0x304000000000000000071AFD498CFFFFu128, 1999999999999999 , 0x00); // -- 2e15-ulp dec_test!(bid128_to_int64_int_249, bid128_to_int64_int, 0x304000000000000000071AFD498D0000u128, 2000000000000000 , 0x00); // -- 2e15 dec_test!(bid128_to_int64_int_250, bid128_to_int64_int, 0x304000000000000000071AFD498D0001u128, 2000000000000001 , 0x00); // -- 2e15+1 dec_test!(bid128_to_int64_int_251, bid128_to_int64_int, 0x304000000000000000071AFD498D0001u128, 2000000000000001 , 0x00); // -- 2e15+ulp dec_test!(bid128_to_int64_int_252, bid128_to_int64_int, 0x3040000000000000799fd7edfff2b8feu128, 8763960817087592702 , 0x00); dec_test!(bid128_to_int64_int_253, bid128_to_int64_int, 0x30400000000000007FFFFFFFFFFFFFFFu128, 9223372036854775807 , 0x00); // -- 2^63-1 dec_test!(bid128_to_int64_int_254, bid128_to_int64_int, 0x30400000000000008000000000000000u128, -9223372036854775808, 0x01); // -- 2^63 dec_test!(bid128_to_int64_int_255, bid128_to_int64_int, 0x30400000000000008000000000000001u128, -9223372036854775808, 0x01); // -- 2^63+1 dec_test!(bid128_to_int64_int_256, bid128_to_int64_int, 0x3040000000000000FFFFFFFFFFFFFFFFu128, -9223372036854775808, 0x01); // -- 2^64-1 dec_test!(bid128_to_int64_int_257, bid128_to_int64_int, 0x30400000000000010000000000000000u128, -9223372036854775808, 0x01); // -- 2^64 dec_test!(bid128_to_int64_int_258, bid128_to_int64_int, 0x30400000000000010000000000000001u128, -9223372036854775808, 0x01); // -- 2^64+1 dec_test!(bid128_to_int64_int_259, bid128_to_int64_int, 0x3041ED09BEAD87C0378D8E6400000000u128, 0 , 0x00); dec_test!(bid128_to_int64_int_260, bid128_to_int64_int, 0x3042000000000000000000000000001Du128, 290 , 0x00); // -- 300-ulp dec_test!(bid128_to_int64_int_261, bid128_to_int64_int, 0x3042000000000000000000000000001Eu128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_262, bid128_to_int64_int, 0x3042000000000000000000000000001Fu128, 310 , 0x00); // -- 300+ulp dec_test!(bid128_to_int64_int_263, bid128_to_int64_int, 0x304200000000000000000000773593FFu128, 19999999990 , 0x00); // -- 2e10-ulp dec_test!(bid128_to_int64_int_264, bid128_to_int64_int, 0x30420000000000000000000077359400u128, 20000000000 , 0x00); // -- 2e10 dec_test!(bid128_to_int64_int_265, bid128_to_int64_int, 0x30420000000000000000000077359401u128, 20000000010 , 0x00); // -- 2e10+ulp dec_test!(bid128_to_int64_int_266, bid128_to_int64_int, 0x30440000000000000000000000000003u128, 300 , 0x00); // -- 300 dec_test!(bid128_to_int64_int_267, bid128_to_int64_int, 0x30520000000000000000000000000004u128, 4000000000 , 0x00); // -- 4e9 dec_test!(bid128_to_int64_int_268, bid128_to_int64_int, 0x30520000000000000000000000000005u128, 5000000000 , 0x00); // -- 5e9 dec_test!(bid128_to_int64_int_269, bid128_to_int64_int, 0x30540000000000000000000000000002u128, 20000000000 , 0x00); // -- 2e10 dec_test!(bid128_to_int64_int_270, bid128_to_int64_int, 0x305E0000000000000000000000000002u128, 2000000000000000 , 0x00); // -- 2e15 dec_test!(bid128_to_int64_int_271, bid128_to_int64_int, 0x3064000000000000000000000000000Fu128, -9223372036854775808, 0x01); // -- 1.5e19 dec_test!(bid128_to_int64_int_272, bid128_to_int64_int, 0x30640000000000000000000000000019u128, -9223372036854775808, 0x01); // -- 2.5e19 dec_test!(bid128_to_int64_int_273, bid128_to_int64_int, 0x30660000000000000000000000000001u128, -9223372036854775808, 0x01); // -- 1e19 dec_test!(bid128_to_int64_int_274, bid128_to_int64_int, 0x30660000000000000000000000000002u128, -9223372036854775808, 0x01); // -- 2e19 dec_test!(bid128_to_int64_int_275, bid128_to_int64_int, 0x30680000000000000000000000000001u128, -9223372036854775808, 0x01); // -- 1e20 dec_test!(bid128_to_int64_int_276, bid128_to_int64_int, 0x3316093020b04031a23d22b93a8bfc8eu128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_277, bid128_to_int64_int, 0x369668c685ffafa5710ea42d636d3adcu128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_278, bid128_to_int64_int, 0x4000000000000000b3c02053e084c426u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_279, bid128_to_int64_int, 0x4b2b6121bc44f7bb8f98b49503b97152u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_280, bid128_to_int64_int, 0x58ad74d659492874e67898635c82326eu128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_281, bid128_to_int64_int, 0x78000000000000000000000000000000u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_282, bid128_to_int64_int, 0x78000000000000000000000000000000u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_283, bid128_to_int64_int, 0x7bffdff4efff79338d6159cb6dcdd5a9u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_284, bid128_to_int64_int, 0x7c000000000000000000000000000000u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_285, bid128_to_int64_int, 0x7c003fffffffffff38c15b08ffffffffu128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_286, bid128_to_int64_int, 0x7c003fffffffffff38c15b0affffffffu128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_287, bid128_to_int64_int, 0x7e000000000000000000000000000000u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_288, bid128_to_int64_int, 0x83c60000000000000000000000000000u128, 0 , 0x00); dec_test!(bid128_to_int64_int_289, bid128_to_int64_int, 0x85d6b76e808146d576c6b11942e89daau128, 0 , 0x00); dec_test!(bid128_to_int64_int_290, bid128_to_int64_int, 0x86160000000000000000000000000000u128, 0 , 0x00); dec_test!(bid128_to_int64_int_291, bid128_to_int64_int, 0x8c4a5f7dc69db282de9ab1c630feccdeu128, 0 , 0x00); dec_test!(bid128_to_int64_int_292, bid128_to_int64_int, 0x9c52416e9b44e544255177fac6a40457u128, 0 , 0x00); dec_test!(bid128_to_int64_int_293, bid128_to_int64_int, 0xa90f3da616dbe6573715e70d172dc972u128, 0 , 0x00); dec_test!(bid128_to_int64_int_294, bid128_to_int64_int, 0xAFFCF684DF56C3E01BC6C731FFFFFFFFu128, 0 , 0x00); // -- -(0.5-ulp) dec_test!(bid128_to_int64_int_295, bid128_to_int64_int, 0xAFFCF684DF56C3E01BC6C73200000000u128, 0 , 0x00); // -- -(0.5) dec_test!(bid128_to_int64_int_296, bid128_to_int64_int, 0xAFFCF684DF56C3E01BC6C73200000001u128, 0 , 0x00); // -- -(0.5+ulp) dec_test!(bid128_to_int64_int_297, bid128_to_int64_int, 0xAFFDEC8B86EF679D76FC433D7FFFFFFFu128, 0 , 0x00); // -- -(0.999-ulp) dec_test!(bid128_to_int64_int_298, bid128_to_int64_int, 0xAFFDEC8B86EF679D76FC433D80000000u128, 0 , 0x00); // -- -(0.999) dec_test!(bid128_to_int64_int_299, bid128_to_int64_int, 0xAFFDEC8B86EF679D76FC433D80000001u128, 0 , 0x00); // -- -(0.999+ulp) dec_test!(bid128_to_int64_int_300, bid128_to_int64_int, 0xAFFE314DC6448D9338C15B09FFFFFFFFu128, 0 , 0x00); // -- -(1-ulp) dec_test!(bid128_to_int64_int_301, bid128_to_int64_int, 0xAFFE314DC6448D9338C15B0A00000000u128, -1 , 0x00); // -- -(1) dec_test!(bid128_to_int64_int_302, bid128_to_int64_int, 0xAFFE314DC6448D9338C15B0A00000001u128, -1 , 0x00); // -- -(1+ulp) dec_test!(bid128_to_int64_int_303, bid128_to_int64_int, 0xAFFE49F4A966D45CD522088EFFFFFFFFu128, -1 , 0x00); // -- -(1.5-ulp) dec_test!(bid128_to_int64_int_304, bid128_to_int64_int, 0xAFFE49F4A966D45CD522088F00000000u128, -1 , 0x00); // -- -(1.5) dec_test!(bid128_to_int64_int_305, bid128_to_int64_int, 0xAFFE49F4A966D45CD522088F00000001u128, -1 , 0x00); // -- -(1.5+ulp) dec_test!(bid128_to_int64_int_306, bid128_to_int64_int, 0xB00293E952CDA8B9AA44111DFFFFFFFFu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_307, bid128_to_int64_int, 0xB00293E952CDA8B9AA44111E00000000u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_308, bid128_to_int64_int, 0xB00293E952CDA8B9AA44111E00000001u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_309, bid128_to_int64_int, 0xB00294286EACB8CB0A8CB6B13FFFFFFFu128, -300 , 0x00); // -- -(300.5-ulp) dec_test!(bid128_to_int64_int_310, bid128_to_int64_int, 0xB00294286EACB8CB0A8CB6B140000000u128, -300 , 0x00); // -- -(300.5) dec_test!(bid128_to_int64_int_311, bid128_to_int64_int, 0xB00294286EACB8CB0A8CB6B140000001u128, -300 , 0x00); // -- -(300.5+ulp) dec_test!(bid128_to_int64_int_312, bid128_to_int64_int, 0xB0040ECA8847C4129106CE82FFFFFFFFu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_313, bid128_to_int64_int, 0xB0040ECA8847C4129106CE8300000000u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_314, bid128_to_int64_int, 0xB0040ECA8847C4129106CE8300000001u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_315, bid128_to_int64_int, 0xb006492490129a2008d87f606705af22u128, -14835 , 0x00); dec_test!(bid128_to_int64_int_316, bid128_to_int64_int, 0xB00A0003C95A2F0B4856475FDFFFFFFFu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_317, bid128_to_int64_int, 0xB00A0003C95A2F0B4856475FE0000000u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_318, bid128_to_int64_int, 0xB00A0003C95A2F0B4856475FE0000001u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_319, bid128_to_int64_int, 0xB00C000060EF6B1ABA6F07232FFFFFFFu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_320, bid128_to_int64_int, 0xB00C000060EF6B1ABA6F072330000000u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_321, bid128_to_int64_int, 0xB00C000060EF6B1ABA6F072330000001u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_322, bid128_to_int64_int, 0xB010C5371912364CE3056C27FFFFFFFFu128, -3999999999 , 0x00); // -- -(4e9-ulp) dec_test!(bid128_to_int64_int_323, bid128_to_int64_int, 0xB010C5371912364CE3056C2800000000u128, -4000000000 , 0x00); // -- -(4e9) dec_test!(bid128_to_int64_int_324, bid128_to_int64_int, 0xB010C5371912364CE3056C2800000001u128, -4000000000 , 0x00); // -- -(4e9+ulp) dec_test!(bid128_to_int64_int_325, bid128_to_int64_int, 0xB010F684DF56C3E01BC6C731FFFFFFFFu128, -4999999999 , 0x00); // -- -(5e9-ulp) dec_test!(bid128_to_int64_int_326, bid128_to_int64_int, 0xB010F684DF56C3E01BC6C73200000000u128, -5000000000 , 0x00); // -- -(5e9) dec_test!(bid128_to_int64_int_327, bid128_to_int64_int, 0xB010F684DF56C3E01BC6C73200000001u128, -5000000000 , 0x00); // -- -(5e9+ulp) dec_test!(bid128_to_int64_int_328, bid128_to_int64_int, 0xB012629B8C88FB62ED56E4238E3FFFFFu128, -19999999998 , 0x00); // -- -(2e10-1.5-ulp) dec_test!(bid128_to_int64_int_329, bid128_to_int64_int, 0xB012629B8C88FB62ED56E4238E400000u128, -19999999998 , 0x00); // -- -(2e10-1.5) dec_test!(bid128_to_int64_int_330, bid128_to_int64_int, 0xB012629B8C88FB62ED56E4238E400001u128, -19999999998 , 0x00); // -- -(2e10-1.5+ulp) dec_test!(bid128_to_int64_int_331, bid128_to_int64_int, 0xB012629B8C8905F96EBAD4C9097FFFFFu128, -19999999998 , 0x00); // -- -(2e10-1-ulp) dec_test!(bid128_to_int64_int_332, bid128_to_int64_int, 0xB012629B8C8905F96EBAD4C909800000u128, -19999999999 , 0x00); // -- -(2e10-1) dec_test!(bid128_to_int64_int_333, bid128_to_int64_int, 0xB012629B8C8905F96EBAD4C909800001u128, -19999999999 , 0x00); // -- -(2e10-1+ulp) dec_test!(bid128_to_int64_int_334, bid128_to_int64_int, 0xB012629B8C89108FF01EC56E84BFFFFFu128, -19999999999 , 0x00); // -- -(2e10-0.5-ulp) dec_test!(bid128_to_int64_int_335, bid128_to_int64_int, 0xB012629B8C89108FF01EC56E84C00000u128, -19999999999 , 0x00); // -- -(2e10-0.5) dec_test!(bid128_to_int64_int_336, bid128_to_int64_int, 0xB012629B8C89108FF01EC56E84C00001u128, -19999999999 , 0x00); // -- -(2e10-0.5+ulp) dec_test!(bid128_to_int64_int_337, bid128_to_int64_int, 0xB012629B8C891B267182B613FFFFFFFFu128, -19999999999 , 0x00); // -- -(2e10-ulp) dec_test!(bid128_to_int64_int_338, bid128_to_int64_int, 0xB012629B8C891B267182B61400000000u128, -20000000000 , 0x00); // -- -(2e10) dec_test!(bid128_to_int64_int_339, bid128_to_int64_int, 0xB012629B8C891B267182B61400000001u128, -20000000000 , 0x00); // -- -(2e10+ulp) dec_test!(bid128_to_int64_int_340, bid128_to_int64_int, 0xB012629B8C8925BCF2E6A6B97B3FFFFFu128, -20000000000 , 0x00); // -- -(2e10+0.5-ulp) dec_test!(bid128_to_int64_int_341, bid128_to_int64_int, 0xB012629B8C8925BCF2E6A6B97B400000u128, -20000000000 , 0x00); // -- -(2e10+0.5) dec_test!(bid128_to_int64_int_342, bid128_to_int64_int, 0xB012629B8C8925BCF2E6A6B97B400001u128, -20000000000 , 0x00); // -- -(2e10+0.5+ulp) dec_test!(bid128_to_int64_int_343, bid128_to_int64_int, 0xB012629B8C893053744A975EF67FFFFFu128, -20000000000 , 0x00); // -- -(2e10+1-ulp) dec_test!(bid128_to_int64_int_344, bid128_to_int64_int, 0xB012629B8C893053744A975EF6800000u128, -20000000001 , 0x00); // -- -(2e10+1) dec_test!(bid128_to_int64_int_345, bid128_to_int64_int, 0xB012629B8C893053744A975EF6800001u128, -20000000001 , 0x00); // -- -(2e10+1+ulp) dec_test!(bid128_to_int64_int_346, bid128_to_int64_int, 0xB012629B8C893AE9F5AE880471BFFFFFu128, -20000000001 , 0x00); // -- -(2e10+1.5-ulp) dec_test!(bid128_to_int64_int_347, bid128_to_int64_int, 0xB012629B8C893AE9F5AE880471C00000u128, -20000000001 , 0x00); // -- -(2e10+1.5) dec_test!(bid128_to_int64_int_348, bid128_to_int64_int, 0xB012629B8C893AE9F5AE880471C00001u128, -20000000001 , 0x00); // -- -(2e10+1.5+ulp) dec_test!(bid128_to_int64_int_349, bid128_to_int64_int, 0xB018AD78EBC5AC61FFFFFFFFFFFFFFFFu128, -35184372088831 , 0x00); // -- -(2^45-ulp) dec_test!(bid128_to_int64_int_350, bid128_to_int64_int, 0xB018AD78EBC5AC620000000000000000u128, -35184372088832 , 0x00); // -- -(2^45) dec_test!(bid128_to_int64_int_351, bid128_to_int64_int, 0xB018AD78EBC5AC620000000000000001u128, -35184372088832 , 0x00); // -- -(2^45+ulp) dec_test!(bid128_to_int64_int_352, bid128_to_int64_int, 0xB018AD78EBC5AC64B5E3AF16B187FFFFu128, -35184372088832 , 0x00); // -- -(2^45+0.5-ulp) dec_test!(bid128_to_int64_int_353, bid128_to_int64_int, 0xB018AD78EBC5AC64B5E3AF16B1880000u128, -35184372088832 , 0x00); // -- -(2^45+0.5) dec_test!(bid128_to_int64_int_354, bid128_to_int64_int, 0xB018AD78EBC5AC64B5E3AF16B1880001u128, -35184372088832 , 0x00); // -- -(2^45+0.5+ulp) dec_test!(bid128_to_int64_int_355, bid128_to_int64_int, 0xB01A0000000000A2E6C09AD3E0D3FFFFu128, -300 , 0x00); // -- -(300.5-ulp) dec_test!(bid128_to_int64_int_356, bid128_to_int64_int, 0xB01A0000000000A2E6C09AD3E0D40000u128, -300 , 0x00); // -- -(300.5) dec_test!(bid128_to_int64_int_357, bid128_to_int64_int, 0xB01A0000000000A2E6C09AD3E0D40001u128, -300 , 0x00); // -- -(300.5+ulp) dec_test!(bid128_to_int64_int_358, bid128_to_int64_int, 0xb01b062554b97238f3b937e6e10a4076u128, -531694897910126 , 0x00); dec_test!(bid128_to_int64_int_359, bid128_to_int64_int, 0xB01C629B8C891B265CB1A40684E9FFFFu128, -1999999999999998 , 0x00); // -- -(2e15-1.5-ulp) dec_test!(bid128_to_int64_int_360, bid128_to_int64_int, 0xB01C629B8C891B265CB1A40684EA0000u128, -1999999999999998 , 0x00); // -- -(2e15-1.5) dec_test!(bid128_to_int64_int_361, bid128_to_int64_int, 0xB01C629B8C891B265CB1A40684EA0001u128, -1999999999999998 , 0x00); // -- -(2e15-1.5+ulp) dec_test!(bid128_to_int64_int_362, bid128_to_int64_int, 0xB01C629B8C891B2663A1FF60589BFFFFu128, -1999999999999998 , 0x00); // -- -(2e15-1-ulp) dec_test!(bid128_to_int64_int_363, bid128_to_int64_int, 0xB01C629B8C891B2663A1FF60589C0000u128, -1999999999999999 , 0x00); // -- -(2e15-1) dec_test!(bid128_to_int64_int_364, bid128_to_int64_int, 0xB01C629B8C891B2663A1FF60589C0001u128, -1999999999999999 , 0x00); // -- -(2e15-1+ulp) dec_test!(bid128_to_int64_int_365, bid128_to_int64_int, 0xB01C629B8C891B266A925ABA2C4DFFFFu128, -1999999999999999 , 0x00); // -- -(2e15-0.5-ulp) dec_test!(bid128_to_int64_int_366, bid128_to_int64_int, 0xB01C629B8C891B266A925ABA2C4E0000u128, -1999999999999999 , 0x00); // -- -(2e15-0.5) dec_test!(bid128_to_int64_int_367, bid128_to_int64_int, 0xB01C629B8C891B266A925ABA2C4E0001u128, -1999999999999999 , 0x00); // -- -(2e15-0.5+ulp) dec_test!(bid128_to_int64_int_368, bid128_to_int64_int, 0xB01C629B8C891B267182B613FFFFFFFFu128, -1999999999999999 , 0x00); // -- -(2e15-ulp) dec_test!(bid128_to_int64_int_369, bid128_to_int64_int, 0xB01C629B8C891B267182B61400000000u128, -2000000000000000 , 0x00); // -- -(2e15) dec_test!(bid128_to_int64_int_370, bid128_to_int64_int, 0xB01C629B8C891B267182B61400000001u128, -2000000000000000 , 0x00); // -- -(2e15+ulp) dec_test!(bid128_to_int64_int_371, bid128_to_int64_int, 0xB01C629B8C891B267873116DD3B1FFFFu128, -2000000000000000 , 0x00); // -- -(2e15+0.5-ulp) dec_test!(bid128_to_int64_int_372, bid128_to_int64_int, 0xB01C629B8C891B267873116DD3B20000u128, -2000000000000000 , 0x00); // -- -(2e15+0.5) dec_test!(bid128_to_int64_int_373, bid128_to_int64_int, 0xB01C629B8C891B267873116DD3B20001u128, -2000000000000000 , 0x00); // -- -(2e15+0.5+ulp) dec_test!(bid128_to_int64_int_374, bid128_to_int64_int, 0xB01C629B8C891B267F636CC7A763FFFFu128, -2000000000000000 , 0x00); // -- -(2e15+1-ulp) dec_test!(bid128_to_int64_int_375, bid128_to_int64_int, 0xB01C629B8C891B267F636CC7A7640000u128, -2000000000000001 , 0x00); // -- -(2e15+1) dec_test!(bid128_to_int64_int_376, bid128_to_int64_int, 0xB01C629B8C891B267F636CC7A7640001u128, -2000000000000001 , 0x00); // -- -(2e15+1+ulp) dec_test!(bid128_to_int64_int_377, bid128_to_int64_int, 0xB01C629B8C891B268653C8217B15FFFFu128, -2000000000000001 , 0x00); // -- -(2e15+1.5-ulp) dec_test!(bid128_to_int64_int_378, bid128_to_int64_int, 0xB01C629B8C891B268653C8217B160000u128, -2000000000000001 , 0x00); // -- -(2e15+1.5) dec_test!(bid128_to_int64_int_379, bid128_to_int64_int, 0xB01C629B8C891B268653C8217B160001u128, -2000000000000001 , 0x00); // -- -(2e15+1.5+ulp) dec_test!(bid128_to_int64_int_380, bid128_to_int64_int, 0xB01E000000000001A055690D9DB7FFFFu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_381, bid128_to_int64_int, 0xB01E000000000001A055690D9DB80000u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_382, bid128_to_int64_int, 0xB01E000000000001A055690D9DB80001u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_383, bid128_to_int64_int, 0xB01E002C68AF0BB140B1A2BC2EC4FFFFu128, -35184372088832 , 0x00); // -- -(2^45+0.5-ulp) dec_test!(bid128_to_int64_int_384, bid128_to_int64_int, 0xB01E002C68AF0BB140B1A2BC2EC50000u128, -35184372088832 , 0x00); // -- -(2^45+0.5) dec_test!(bid128_to_int64_int_385, bid128_to_int64_int, 0xB01E002C68AF0BB140B1A2BC2EC50001u128, -35184372088832 , 0x00); // -- -(2^45+0.5+ulp) dec_test!(bid128_to_int64_int_386, bid128_to_int64_int, 0xB02000000000000029A2241AF62BFFFFu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_387, bid128_to_int64_int, 0xB02000000000000029A2241AF62C0000u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_388, bid128_to_int64_int, 0xB02000000000000029A2241AF62C0001u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_389, bid128_to_int64_int, 0xB020000470DE4DF81FFFFFFFFFFFFFFFu128, -35184372088831 , 0x00); // -- -(2^45-ulp) dec_test!(bid128_to_int64_int_390, bid128_to_int64_int, 0xB020000470DE4DF82000000000000000u128, -35184372088832 , 0x00); // -- -(2^45) dec_test!(bid128_to_int64_int_391, bid128_to_int64_int, 0xB020000470DE4DF82000000000000001u128, -35184372088832 , 0x00); // -- -(2^45+ulp) dec_test!(bid128_to_int64_int_392, bid128_to_int64_int, 0xB02000FC6F7C4045813459C637E07FFFu128, -2000000000000000 , 0x00); // -- -(2e15+0.5-ulp) dec_test!(bid128_to_int64_int_393, bid128_to_int64_int, 0xB02000FC6F7C4045813459C637E08000u128, -2000000000000000 , 0x00); // -- -(2e15+0.5) dec_test!(bid128_to_int64_int_394, bid128_to_int64_int, 0xB02000FC6F7C4045813459C637E08001u128, -2000000000000000 , 0x00); // -- -(2e15+0.5+ulp) dec_test!(bid128_to_int64_int_395, bid128_to_int64_int, 0xB02000FC6F7C40458157E0B8A7A17FFFu128, -2000000000000001 , 0x00); // -- -(2e15+1.5-ulp) dec_test!(bid128_to_int64_int_396, bid128_to_int64_int, 0xB02000FC6F7C40458157E0B8A7A18000u128, -2000000000000001 , 0x00); // -- -(2e15+1.5) dec_test!(bid128_to_int64_int_397, bid128_to_int64_int, 0xB02000FC6F7C40458157E0B8A7A18001u128, -2000000000000001 , 0x00); // -- -(2e15+1.5+ulp) dec_test!(bid128_to_int64_int_398, bid128_to_int64_int, 0xB02200193E5939A08CE4879688D63FFFu128, -1999999999999998 , 0x00); // -- -(2e15-1.5-ulp) dec_test!(bid128_to_int64_int_399, bid128_to_int64_int, 0xB02200193E5939A08CE4879688D64000u128, -1999999999999998 , 0x00); // -- -(2e15-1.5) dec_test!(bid128_to_int64_int_400, bid128_to_int64_int, 0xB02200193E5939A08CE4879688D64001u128, -1999999999999998 , 0x00); // -- -(2e15-1.5+ulp) dec_test!(bid128_to_int64_int_401, bid128_to_int64_int, 0xB02200193E5939A08CE815152D9CBFFFu128, -1999999999999999 , 0x00); // -- -(2e15-0.5-ulp) dec_test!(bid128_to_int64_int_402, bid128_to_int64_int, 0xB02200193E5939A08CE815152D9CC000u128, -1999999999999999 , 0x00); // -- -(2e15-0.5) dec_test!(bid128_to_int64_int_403, bid128_to_int64_int, 0xB02200193E5939A08CE815152D9CC001u128, -1999999999999999 , 0x00); // -- -(2e15-0.5+ulp) dec_test!(bid128_to_int64_int_404, bid128_to_int64_int, 0xb022e5d47ee1683be42cb2f98ef763ccu128, -4661507437301034383, 0x00); dec_test!(bid128_to_int64_int_405, bid128_to_int64_int, 0xB023C6BF52633FFFFFFAABC208D63FFFu128, -9223372036854775806, 0x00); // -- -(2^63-1.5-ulp) dec_test!(bid128_to_int64_int_406, bid128_to_int64_int, 0xB023C6BF52633FFFFFFAABC208D64000u128, -9223372036854775806, 0x00); // -- -(2^63-1.5) dec_test!(bid128_to_int64_int_407, bid128_to_int64_int, 0xB023C6BF52633FFFFFFAABC208D64001u128, -9223372036854775806, 0x00); // -- -(2^63-1.5+ulp) dec_test!(bid128_to_int64_int_408, bid128_to_int64_int, 0xB023C6BF52633FFFFFFC72815B397FFFu128, -9223372036854775806, 0x00); // -- -(2^63-1-ulp) dec_test!(bid128_to_int64_int_409, bid128_to_int64_int, 0xB023C6BF52633FFFFFFC72815B398000u128, -9223372036854775807, 0x00); // -- -(2^63-1) dec_test!(bid128_to_int64_int_410, bid128_to_int64_int, 0xB023C6BF52633FFFFFFC72815B398001u128, -9223372036854775807, 0x00); // -- -(2^63-1+ulp) dec_test!(bid128_to_int64_int_411, bid128_to_int64_int, 0xB023C6BF52633FFFFFFE3940AD9CBFFFu128, -9223372036854775807, 0x00); // -- -(2^63-0.5-ulp) dec_test!(bid128_to_int64_int_412, bid128_to_int64_int, 0xB023C6BF52633FFFFFFE3940AD9CC000u128, -9223372036854775807, 0x00); // -- -(2^63-0.5) dec_test!(bid128_to_int64_int_413, bid128_to_int64_int, 0xB023C6BF52633FFFFFFE3940AD9CC001u128, -9223372036854775807, 0x00); // -- -(2^63-0.5+ulp) dec_test!(bid128_to_int64_int_414, bid128_to_int64_int, 0xB023C6BF52633FFFFFFFFFFFFFFFFFFFu128, -9223372036854775807, 0x00); // -- -(2^63-ulp) dec_test!(bid128_to_int64_int_415, bid128_to_int64_int, 0xB023C6BF526340000000000000000000u128, -9223372036854775808, 0x00); // -- -(2^63) dec_test!(bid128_to_int64_int_416, bid128_to_int64_int, 0xB023C6BF526340000000000000000001u128, -9223372036854775808, 0x00); // -- -(2^63+ulp) dec_test!(bid128_to_int64_int_417, bid128_to_int64_int, 0xB023C6BF526340000001C6BF52633FFFu128, -9223372036854775808, 0x00); // -- -(2^63+0.5-ulp) dec_test!(bid128_to_int64_int_418, bid128_to_int64_int, 0xB023C6BF526340000001C6BF52634000u128, -9223372036854775808, 0x00); // -- -(2^63+0.5) dec_test!(bid128_to_int64_int_419, bid128_to_int64_int, 0xB023C6BF526340000001C6BF52634001u128, -9223372036854775808, 0x00); // -- -(2^63+0.5+ulp) dec_test!(bid128_to_int64_int_420, bid128_to_int64_int, 0xB023C6BF5263400000038D7EA4C67FFFu128, -9223372036854775808, 0x00); // -- -(2^63+1-ulp) dec_test!(bid128_to_int64_int_421, bid128_to_int64_int, 0xB023C6BF5263400000038D7EA4C68000u128, -9223372036854775808, 0x01); // -- -(2^63+1) dec_test!(bid128_to_int64_int_422, bid128_to_int64_int, 0xB023C6BF5263400000038D7EA4C68001u128, -9223372036854775808, 0x01); // -- -(2^63+1+ulp) dec_test!(bid128_to_int64_int_423, bid128_to_int64_int, 0xb023d46d1bd3ed40410f994fca1856e7u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_424, bid128_to_int64_int, 0xB024000000000000006A94D74F42FFFFu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_425, bid128_to_int64_int, 0xB024000000000000006A94D74F430000u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_426, bid128_to_int64_int, 0xB024000000000000006A94D74F430001u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_427, bid128_to_int64_int, 0xB024314DC6448D9338C15B09FFFFFFFFu128, -9223372036854775808, 0x01); // -- -(1e19-ulp) dec_test!(bid128_to_int64_int_428, bid128_to_int64_int, 0xB024314DC6448D9338C15B0A00000000u128, -9223372036854775808, 0x01); // -- -(1e19) dec_test!(bid128_to_int64_int_429, bid128_to_int64_int, 0xB024314DC6448D9338C15B0A00000001u128, -9223372036854775808, 0x01); // -- -(1e19+ulp) dec_test!(bid128_to_int64_int_430, bid128_to_int64_int, 0xB024314DC6448D9338C18883883D1FFFu128, -9223372036854775808, 0x01); // -- -(1e19+0.5-ulp) dec_test!(bid128_to_int64_int_431, bid128_to_int64_int, 0xB024314DC6448D9338C18883883D2000u128, -9223372036854775808, 0x01); // -- -(1e19+0.5) dec_test!(bid128_to_int64_int_432, bid128_to_int64_int, 0xB024314DC6448D9338C18883883D2001u128, -9223372036854775808, 0x01); // -- -(1e19+0.5+ulp) dec_test!(bid128_to_int64_int_433, bid128_to_int64_int, 0xB02449F4A966D45CD522088EFFFFFFFFu128, -9223372036854775808, 0x01); // -- -(1.5e19-ulp) dec_test!(bid128_to_int64_int_434, bid128_to_int64_int, 0xB02449F4A966D45CD522088F00000000u128, -9223372036854775808, 0x01); // -- -(1.5e19) dec_test!(bid128_to_int64_int_435, bid128_to_int64_int, 0xB02449F4A966D45CD522088F00000001u128, -9223372036854775808, 0x01); // -- -(1.5e19+ulp) dec_test!(bid128_to_int64_int_436, bid128_to_int64_int, 0xB0245AF3107A3FFFFFFFA50CEF85BFFFu128, -9223372036854775808, 0x01); // -- -(2^64-1-ulp) dec_test!(bid128_to_int64_int_437, bid128_to_int64_int, 0xB0245AF3107A3FFFFFFFA50CEF85C000u128, -9223372036854775808, 0x01); // -- -(2^64-1) dec_test!(bid128_to_int64_int_438, bid128_to_int64_int, 0xB0245AF3107A3FFFFFFFA50CEF85C001u128, -9223372036854775808, 0x01); // -- -(2^64-1+ulp) dec_test!(bid128_to_int64_int_439, bid128_to_int64_int, 0xB0245AF3107A3FFFFFFFD28677C2DFFFu128, -9223372036854775808, 0x01); // -- -(2^64-0.5-ulp) dec_test!(bid128_to_int64_int_440, bid128_to_int64_int, 0xB0245AF3107A3FFFFFFFD28677C2E000u128, -9223372036854775808, 0x01); // -- -(2^64-0.5) dec_test!(bid128_to_int64_int_441, bid128_to_int64_int, 0xB0245AF3107A3FFFFFFFD28677C2E001u128, -9223372036854775808, 0x01); // -- -(2^64-0.5+ulp) dec_test!(bid128_to_int64_int_442, bid128_to_int64_int, 0xB0245AF3107A3FFFFFFFFFFFFFFFFFFFu128, -9223372036854775808, 0x01); // -- -(2^64-ulp) dec_test!(bid128_to_int64_int_443, bid128_to_int64_int, 0xB0245AF3107A40000000000000000000u128, -9223372036854775808, 0x01); // -- -(2^64) dec_test!(bid128_to_int64_int_444, bid128_to_int64_int, 0xB0245AF3107A40000000000000000001u128, -9223372036854775808, 0x01); // -- -(2^64+ulp) dec_test!(bid128_to_int64_int_445, bid128_to_int64_int, 0xB0245AF3107A400000002D79883D1FFFu128, -9223372036854775808, 0x01); // -- -(2^64+0.5-ulp) dec_test!(bid128_to_int64_int_446, bid128_to_int64_int, 0xB0245AF3107A400000002D79883D2000u128, -9223372036854775808, 0x01); // -- -(2^64+0.5) dec_test!(bid128_to_int64_int_447, bid128_to_int64_int, 0xB0245AF3107A400000002D79883D2001u128, -9223372036854775808, 0x01); // -- -(2^64+0.5+ulp) dec_test!(bid128_to_int64_int_448, bid128_to_int64_int, 0xB0245AF3107A400000005AF3107A3FFFu128, -9223372036854775808, 0x01); // -- -(2^64+1-ulp) dec_test!(bid128_to_int64_int_449, bid128_to_int64_int, 0xB0245AF3107A400000005AF3107A4000u128, -9223372036854775808, 0x01); // -- -(2^64+1) dec_test!(bid128_to_int64_int_450, bid128_to_int64_int, 0xB0245AF3107A400000005AF3107A4001u128, -9223372036854775808, 0x01); // -- -(2^64+1+ulp) dec_test!(bid128_to_int64_int_451, bid128_to_int64_int, 0xB024629B8C891B267182B613FFFFFFFFu128, -9223372036854775808, 0x01); // -- -(2e19-ulp) dec_test!(bid128_to_int64_int_452, bid128_to_int64_int, 0xB024629B8C891B267182B61400000000u128, -9223372036854775808, 0x01); // -- -(2e19) dec_test!(bid128_to_int64_int_453, bid128_to_int64_int, 0xB024629B8C891B267182B61400000001u128, -9223372036854775808, 0x01); // -- -(2e19+ulp) dec_test!(bid128_to_int64_int_454, bid128_to_int64_int, 0xB0247B426FAB61F00DE36398FFFFFFFFu128, -9223372036854775808, 0x01); // -- -(2.5e19-ulp) dec_test!(bid128_to_int64_int_455, bid128_to_int64_int, 0xB0247B426FAB61F00DE3639900000000u128, -9223372036854775808, 0x01); // -- -(2.5e19) dec_test!(bid128_to_int64_int_456, bid128_to_int64_int, 0xB0247B426FAB61F00DE3639900000001u128, -9223372036854775808, 0x01); // -- -(2.5e19+ulp) dec_test!(bid128_to_int64_int_457, bid128_to_int64_int, 0xB026314DC6448D9338C15B09FFFFFFFFu128, -9223372036854775808, 0x01); // -- -(1e20-ulp) dec_test!(bid128_to_int64_int_458, bid128_to_int64_int, 0xB026314DC6448D9338C15B0A00000000u128, -9223372036854775808, 0x01); // -- -(1e20) dec_test!(bid128_to_int64_int_459, bid128_to_int64_int, 0xB026314DC6448D9338C15B0A00000001u128, -9223372036854775808, 0x01); // -- -(1e20+ulp) dec_test!(bid128_to_int64_int_460, bid128_to_int64_int, 0xB02A00000000006C6B935B68D08DA3FFu128, -19999999998 , 0x00); // -- -(2e10-1.5-ulp) dec_test!(bid128_to_int64_int_461, bid128_to_int64_int, 0xB02A00000000006C6B935B68D08DA400u128, -19999999998 , 0x00); // -- -(2e10-1.5) dec_test!(bid128_to_int64_int_462, bid128_to_int64_int, 0xB02A00000000006C6B935B68D08DA401u128, -19999999998 , 0x00); // -- -(2e10-1.5+ulp) dec_test!(bid128_to_int64_int_463, bid128_to_int64_int, 0xB02A00000000006C6B935B8019048BFFu128, -19999999999 , 0x00); // -- -(2e10-0.5-ulp) dec_test!(bid128_to_int64_int_464, bid128_to_int64_int, 0xB02A00000000006C6B935B8019048C00u128, -19999999999 , 0x00); // -- -(2e10-0.5) dec_test!(bid128_to_int64_int_465, bid128_to_int64_int, 0xB02A00000000006C6B935B8019048C01u128, -19999999999 , 0x00); // -- -(2e10-0.5+ulp) dec_test!(bid128_to_int64_int_466, bid128_to_int64_int, 0xB02C000000000000000002BBA7F521FFu128, -300 , 0x00); // -- -(300.5-ulp) dec_test!(bid128_to_int64_int_467, bid128_to_int64_int, 0xB02C000000000000000002BBA7F52200u128, -300 , 0x00); // -- -(300.5) dec_test!(bid128_to_int64_int_468, bid128_to_int64_int, 0xB02C000000000000000002BBA7F52201u128, -300 , 0x00); // -- -(300.5+ulp) dec_test!(bid128_to_int64_int_469, bid128_to_int64_int, 0xB02C00000000000AD78EBC5872141BFFu128, -19999999998 , 0x00); // -- -(2e10-1-ulp) dec_test!(bid128_to_int64_int_470, bid128_to_int64_int, 0xB02C00000000000AD78EBC5872141C00u128, -19999999999 , 0x00); // -- -(2e10-1) dec_test!(bid128_to_int64_int_471, bid128_to_int64_int, 0xB02C00000000000AD78EBC5872141C01u128, -19999999999 , 0x00); // -- -(2e10-1+ulp) dec_test!(bid128_to_int64_int_472, bid128_to_int64_int, 0xB02C00000000000AD78EBC5BF025F1FFu128, -20000000000 , 0x00); // -- -(2e10+0.5-ulp) dec_test!(bid128_to_int64_int_473, bid128_to_int64_int, 0xB02C00000000000AD78EBC5BF025F200u128, -20000000000 , 0x00); // -- -(2e10+0.5) dec_test!(bid128_to_int64_int_474, bid128_to_int64_int, 0xB02C00000000000AD78EBC5BF025F201u128, -20000000000 , 0x00); // -- -(2e10+0.5+ulp) dec_test!(bid128_to_int64_int_475, bid128_to_int64_int, 0xB02C00000000000AD78EBC5E4431D5FFu128, -20000000001 , 0x00); // -- -(2e10+1.5-ulp) dec_test!(bid128_to_int64_int_476, bid128_to_int64_int, 0xB02C00000000000AD78EBC5E4431D600u128, -20000000001 , 0x00); // -- -(2e10+1.5) dec_test!(bid128_to_int64_int_477, bid128_to_int64_int, 0xB02C00000000000AD78EBC5E4431D601u128, -20000000001 , 0x00); // -- -(2e10+1.5+ulp) dec_test!(bid128_to_int64_int_478, bid128_to_int64_int, 0xB02C000000108B2A2C28028E3FF41BFFu128, -1999999999999998 , 0x00); // -- -(2e15-1-ulp) dec_test!(bid128_to_int64_int_479, bid128_to_int64_int, 0xB02C000000108B2A2C28028E3FF41C00u128, -1999999999999999 , 0x00); // -- -(2e15-1) dec_test!(bid128_to_int64_int_480, bid128_to_int64_int, 0xB02C000000108B2A2C28028E3FF41C01u128, -1999999999999999 , 0x00); // -- -(2e15-1+ulp) dec_test!(bid128_to_int64_int_481, bid128_to_int64_int, 0xB02E000000000001158E46094F6AC9FFu128, -20000000000 , 0x00); // -- -(2e10+1-ulp) dec_test!(bid128_to_int64_int_482, bid128_to_int64_int, 0xB02E000000000001158E46094F6ACA00u128, -20000000001 , 0x00); // -- -(2e10+1) dec_test!(bid128_to_int64_int_483, bid128_to_int64_int, 0xB02E000000000001158E46094F6ACA01u128, -20000000001 , 0x00); // -- -(2e10+1+ulp) dec_test!(bid128_to_int64_int_484, bid128_to_int64_int, 0xB02E00000001A784379D99DB7D9AC9FFu128, -2000000000000000 , 0x00); // -- -(2e15+1-ulp) dec_test!(bid128_to_int64_int_485, bid128_to_int64_int, 0xB02E00000001A784379D99DB7D9ACA00u128, -2000000000000001 , 0x00); // -- -(2e15+1) dec_test!(bid128_to_int64_int_486, bid128_to_int64_int, 0xB02E00000001A784379D99DB7D9ACA01u128, -2000000000000001 , 0x00); // -- -(2e15+1+ulp) dec_test!(bid128_to_int64_int_487, bid128_to_int64_int, 0xB03000000000000000000006FC23ABFFu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_488, bid128_to_int64_int, 0xB03000000000000000000006FC23AC00u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_489, bid128_to_int64_int, 0xB03000000000000000000006FC23AC01u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_490, bid128_to_int64_int, 0xB03200000000000000000000B2D05DFFu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_491, bid128_to_int64_int, 0xB03200000000000000000000B2D05E00u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_492, bid128_to_int64_int, 0xB03200000000000000000000B2D05E01u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_493, bid128_to_int64_int, 0xB03800000000000000000000002DDA47u128, -300 , 0x00); // -- -(300.5-ulp) dec_test!(bid128_to_int64_int_494, bid128_to_int64_int, 0xB03800000000000000000000002DDA48u128, -300 , 0x00); // -- -(300.5) dec_test!(bid128_to_int64_int_495, bid128_to_int64_int, 0xB03800000000000000000000002DDA49u128, -300 , 0x00); // -- -(300.5+ulp) dec_test!(bid128_to_int64_int_496, bid128_to_int64_int, 0xB03A00000000000000000000000003E7u128, 0 , 0x00); // -- -(0.999) dec_test!(bid128_to_int64_int_497, bid128_to_int64_int, 0xB03A00000000000000000000000495D3u128, -300 , 0x00); // -- -(300.5-ulp) dec_test!(bid128_to_int64_int_498, bid128_to_int64_int, 0xB03A00000000000000000000000495D4u128, -300 , 0x00); // -- -(300.5) dec_test!(bid128_to_int64_int_499, bid128_to_int64_int, 0xB03A00000000000000000000000495D5u128, -300 , 0x00); // -- -(300.5+ulp) dec_test!(bid128_to_int64_int_500, bid128_to_int64_int, 0xB03C0000000000000000000000007561u128, -300 , 0x00); // -- -(300.5-ulp) dec_test!(bid128_to_int64_int_501, bid128_to_int64_int, 0xB03C0000000000000000000000007562u128, -300 , 0x00); // -- -(300.5) dec_test!(bid128_to_int64_int_502, bid128_to_int64_int, 0xB03C0000000000000000000000007563u128, -300 , 0x00); // -- -(300.5+ulp) dec_test!(bid128_to_int64_int_503, bid128_to_int64_int, 0xB03E0000000000000000000000000005u128, 0 , 0x00); // -- -(0.5) dec_test!(bid128_to_int64_int_504, bid128_to_int64_int, 0xB03E000000000000000000000000000Fu128, -1 , 0x00); // -- -(1.5) dec_test!(bid128_to_int64_int_505, bid128_to_int64_int, 0xB03E0000000000000000000000000BB7u128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_506, bid128_to_int64_int, 0xB03E0000000000000000000000000BB8u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_507, bid128_to_int64_int, 0xB03E0000000000000000000000000BB9u128, -300 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_508, bid128_to_int64_int, 0xB03E0000000000000000000000000BBDu128, -300 , 0x00); // -- -(300.5) dec_test!(bid128_to_int64_int_509, bid128_to_int64_int, 0xB03E0000000000000000002E90EDCFF1u128, -19999999998 , 0x00); // -- -(2e10-1.5) dec_test!(bid128_to_int64_int_510, bid128_to_int64_int, 0xB03E0000000000000000002E90EDCFFBu128, -19999999999 , 0x00); // -- -(2e10-0.5) dec_test!(bid128_to_int64_int_511, bid128_to_int64_int, 0xB03E0000000000000000002E90EDD005u128, -20000000000 , 0x00); // -- -(2e10+0.5) dec_test!(bid128_to_int64_int_512, bid128_to_int64_int, 0xB03E0000000000000000002E90EDD00Fu128, -20000000001 , 0x00); // -- -(2e10+1.5) dec_test!(bid128_to_int64_int_513, bid128_to_int64_int, 0xB03E0000000000000001400000000005u128, -35184372088832 , 0x00); // -- -(2^45+0.5) dec_test!(bid128_to_int64_int_514, bid128_to_int64_int, 0xB03E00000000000000470DE4DF81FFF1u128, -1999999999999998 , 0x00); // -- -(2e15-1.5) dec_test!(bid128_to_int64_int_515, bid128_to_int64_int, 0xB03E00000000000000470DE4DF81FFFBu128, -1999999999999999 , 0x00); // -- -(2e15-0.5) dec_test!(bid128_to_int64_int_516, bid128_to_int64_int, 0xB03E00000000000000470DE4DF820005u128, -2000000000000000 , 0x00); // -- -(2e15+0.5) dec_test!(bid128_to_int64_int_517, bid128_to_int64_int, 0xB03E00000000000000470DE4DF82000Fu128, -2000000000000001 , 0x00); // -- -(2e15+1.5) dec_test!(bid128_to_int64_int_518, bid128_to_int64_int, 0xB03E000000000004FFFFFFFFFFFFFFF1u128, -9223372036854775806, 0x00); // -- -(2^63-1.5) dec_test!(bid128_to_int64_int_519, bid128_to_int64_int, 0xB03E000000000004FFFFFFFFFFFFFFFBu128, -9223372036854775807, 0x00); // -- -(2^63-0.5) dec_test!(bid128_to_int64_int_520, bid128_to_int64_int, 0xB03E0000000000050000000000000005u128, -9223372036854775808, 0x00); // -- -(2^63+0.5) dec_test!(bid128_to_int64_int_521, bid128_to_int64_int, 0xB03E0000000000056BC75E2D63100005u128, -9223372036854775808, 0x01); // -- -(1e19+0.5) dec_test!(bid128_to_int64_int_522, bid128_to_int64_int, 0xB03E000000000009FFFFFFFFFFFFFFFBu128, -9223372036854775808, 0x01); // -- -(2^64-0.5) dec_test!(bid128_to_int64_int_523, bid128_to_int64_int, 0xB03E00000000000A0000000000000005u128, -9223372036854775808, 0x01); // -- -(2^64+0.5) dec_test!(bid128_to_int64_int_524, bid128_to_int64_int, 0xB0400000000000000000000000000001u128, -1 , 0x00); // -- -(1) dec_test!(bid128_to_int64_int_525, bid128_to_int64_int, 0xB040000000000000000000000000012Bu128, -299 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_526, bid128_to_int64_int, 0xB040000000000000000000000000012Cu128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_527, bid128_to_int64_int, 0xB040000000000000000000000000012Du128, -301 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_528, bid128_to_int64_int, 0xB04000000000000000000004A817C7FFu128, -19999999999 , 0x00); // -- -(2e10-1) dec_test!(bid128_to_int64_int_529, bid128_to_int64_int, 0xB04000000000000000000004A817C801u128, -20000000001 , 0x00); // -- -(2e10+1) dec_test!(bid128_to_int64_int_530, bid128_to_int64_int, 0xB0400000000000000000200000000000u128, -35184372088832 , 0x00); // -- -(2^45) dec_test!(bid128_to_int64_int_531, bid128_to_int64_int, 0xB04000000000000000071AFD498CFFFFu128, -1999999999999999 , 0x00); // -- -(2e15-1) dec_test!(bid128_to_int64_int_532, bid128_to_int64_int, 0xB04000000000000000071AFD498CFFFFu128, -1999999999999999 , 0x00); // -- -(2e15-ulp) dec_test!(bid128_to_int64_int_533, bid128_to_int64_int, 0xB04000000000000000071AFD498D0000u128, -2000000000000000 , 0x00); // -- -(2e15) dec_test!(bid128_to_int64_int_534, bid128_to_int64_int, 0xB04000000000000000071AFD498D0001u128, -2000000000000001 , 0x00); // -- -(2e15+1) dec_test!(bid128_to_int64_int_535, bid128_to_int64_int, 0xB04000000000000000071AFD498D0001u128, -2000000000000001 , 0x00); // -- -(2e15+ulp) dec_test!(bid128_to_int64_int_536, bid128_to_int64_int, 0xb040000000000000310f6850b95b60acu128, -3535158928425574572, 0x00); dec_test!(bid128_to_int64_int_537, bid128_to_int64_int, 0xB0400000000000007FFFFFFFFFFFFFFFu128, -9223372036854775807, 0x00); // -- -(2^63-1) dec_test!(bid128_to_int64_int_538, bid128_to_int64_int, 0xB0400000000000008000000000000000u128, -9223372036854775808, 0x00); // -- -(2^63) dec_test!(bid128_to_int64_int_539, bid128_to_int64_int, 0xB0400000000000008000000000000001u128, -9223372036854775808, 0x01); // -- -(2^63+1) dec_test!(bid128_to_int64_int_540, bid128_to_int64_int, 0xB040000000000000FFFFFFFFFFFFFFFFu128, -9223372036854775808, 0x01); // -- -(2^64-1) dec_test!(bid128_to_int64_int_541, bid128_to_int64_int, 0xB0400000000000010000000000000000u128, -9223372036854775808, 0x01); // -- -(2^64) dec_test!(bid128_to_int64_int_542, bid128_to_int64_int, 0xB0400000000000010000000000000001u128, -9223372036854775808, 0x01); // -- -(2^64+1) dec_test!(bid128_to_int64_int_543, bid128_to_int64_int, 0xB042000000000000000000000000001Du128, -290 , 0x00); // -- -(300-ulp) dec_test!(bid128_to_int64_int_544, bid128_to_int64_int, 0xB042000000000000000000000000001Eu128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_545, bid128_to_int64_int, 0xB042000000000000000000000000001Fu128, -310 , 0x00); // -- -(300+ulp) dec_test!(bid128_to_int64_int_546, bid128_to_int64_int, 0xB04200000000000000000000773593FFu128, -19999999990 , 0x00); // -- -(2e10-ulp) dec_test!(bid128_to_int64_int_547, bid128_to_int64_int, 0xB0420000000000000000000077359400u128, -20000000000 , 0x00); // -- -(2e10) dec_test!(bid128_to_int64_int_548, bid128_to_int64_int, 0xB0420000000000000000000077359401u128, -20000000010 , 0x00); // -- -(2e10+ulp) dec_test!(bid128_to_int64_int_549, bid128_to_int64_int, 0xB0440000000000000000000000000003u128, -300 , 0x00); // -- -(300) dec_test!(bid128_to_int64_int_550, bid128_to_int64_int, 0xB0520000000000000000000000000004u128, -4000000000 , 0x00); // -- -(4e9) dec_test!(bid128_to_int64_int_551, bid128_to_int64_int, 0xB0520000000000000000000000000005u128, -5000000000 , 0x00); // -- -(5e9) dec_test!(bid128_to_int64_int_552, bid128_to_int64_int, 0xB0540000000000000000000000000002u128, -20000000000 , 0x00); // -- -(2e10) dec_test!(bid128_to_int64_int_553, bid128_to_int64_int, 0xB05E0000000000000000000000000002u128, -2000000000000000 , 0x00); // -- -(2e15) dec_test!(bid128_to_int64_int_554, bid128_to_int64_int, 0xB064000000000000000000000000000Fu128, -9223372036854775808, 0x01); // -- -(1.5e19) dec_test!(bid128_to_int64_int_555, bid128_to_int64_int, 0xB0640000000000000000000000000019u128, -9223372036854775808, 0x01); // -- -(2.5e19) dec_test!(bid128_to_int64_int_556, bid128_to_int64_int, 0xB0660000000000000000000000000001u128, -9223372036854775808, 0x01); // -- -(1e19) dec_test!(bid128_to_int64_int_557, bid128_to_int64_int, 0xB0660000000000000000000000000002u128, -9223372036854775808, 0x01); // -- -(2e19) dec_test!(bid128_to_int64_int_558, bid128_to_int64_int, 0xB0680000000000000000000000000001u128, -9223372036854775808, 0x01); // -- -(1e20) dec_test!(bid128_to_int64_int_559, bid128_to_int64_int, 0xb2f80000000000000000000000000000u128, 0 , 0x00); dec_test!(bid128_to_int64_int_560, bid128_to_int64_int, 0xbac0cbb9ff19d795f6919cc8c655551cu128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_561, bid128_to_int64_int, 0xbb9e02aa5ae2f9cf93cac171b18e6083u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_562, bid128_to_int64_int, 0xc557d31f7e390d7622de6fc7de996384u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_563, bid128_to_int64_int, 0xc913e39a9cfe8b37474d8d10523108a4u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_564, bid128_to_int64_int, 0xd5ee398e68c72353fd1e440f2f0be2a5u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_565, bid128_to_int64_int, 0xf7ff7bfdf7bffdfd844085c00851a882u128, 0 , 0x00); dec_test!(bid128_to_int64_int_566, bid128_to_int64_int, 0xf8000000000000000000000000000000u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_567, bid128_to_int64_int, 0xf8c99000a1c68280e801225cfb931382u128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_568, bid128_to_int64_int, 0xfdfdfff7eab2ffeb30221a26041bd94cu128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_569, bid128_to_int64_int, 0xfffffffffffffffdfeffdffffe7f9f3fu128, -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_570, bid128_to_int64_int, "-Infinity" , -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_571, bid128_to_int64_int, "Infinity" , -9223372036854775808, 0x01); dec_test!(bid128_to_int64_int_572, bid128_to_int64_int, "SNaN" , -9223372036854775808, 0x01);