simfony_as_rust/jet/multi_bit_logic.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070
/* This file has been automatically generated. */
//! # Multi-bit logic
//!
//! This module defines jets that operate on strings of bits.
#![allow(unused)]
#![allow(clippy::complexity)]
use super::*;
/// Check if the value is [`u8::MAX`].
pub fn all_8(a: u8) -> bool {
todo!()
}
/// Check if the value is [`u16::MAX`].
pub fn all_16(a: u16) -> bool {
todo!()
}
/// Check if the value is [`u32::MAX`].
pub fn all_32(a: u32) -> bool {
todo!()
}
/// Check if the value is [`u64::MAX`].
pub fn all_64(a: u64) -> bool {
todo!()
}
/// Bitwise AND of two 1-bit values.
pub fn and_1(a: u1, b: u1) -> u1 {
todo!()
}
/// Bitwise AND of two 8-bit values.
pub fn and_8(a: u8, b: u8) -> u8 {
todo!()
}
/// Bitwise AND of two 16-bit values.
pub fn and_16(a: u16, b: u16) -> u16 {
todo!()
}
/// Bitwise AND of two 32-bit values
pub fn and_32(a: u32, b: u32) -> u32 {
todo!()
}
/// Bitwise AND of two 64-bit values
pub fn and_64(a: u64, b: u64) -> u64 {
todo!()
}
/// Bitwise CHOICE of a bit and two 1-bit values. If the bit is true, then take the first value, else take the second value.
pub fn ch_1(a: u1, b: u1, c: u1) -> u1 {
todo!()
}
/// Bitwise CHOICE of a bit and two 8-bit values. If the bit is true, then take the first value, else take the second value.
pub fn ch_8(a: u8, b: u8, c: u8) -> u8 {
todo!()
}
/// Bitwise CHOICE of a bit and two 16-bit values. If the bit is true, then take the first value, else take the second value.
pub fn ch_16(a: u16, b: (u16, u16)) -> u16 {
todo!()
}
/// Bitwise CHOICE of a bit and two 32-bit values. If the bit is true, then take the first value, else take the second value.
pub fn ch_32(a: u32, b: (u32, u32)) -> u32 {
todo!()
}
/// Bitwise CHOICE of a bit and two 64-bit values. If the bit is true, then take the first value, else take the second value.
pub fn ch_64(a: u64, b: (u64, u64)) -> u64 {
todo!()
}
/// Bitwise NOT of a 1-bit value.
pub fn complement_1(a: u1) -> u1 {
todo!()
}
/// Bitwise NOT of an 8-bit value.
pub fn complement_8(a: u8) -> u8 {
todo!()
}
/// Bitwise NOT of a 16-bit value.
pub fn complement_16(a: u16) -> u16 {
todo!()
}
/// Bitwise NOT of a 32-bit value.
pub fn complement_32(a: u32) -> u32 {
todo!()
}
/// Bitwise NOT of a 64-bit value.
pub fn complement_64(a: u64) -> u64 {
todo!()
}
/// Check if two 1-bit values are equal.
pub fn eq_1(a: u1, b: u1) -> bool {
todo!()
}
/// Check if two 8-bit values are equal.
pub fn eq_8(a: u8, b: u8) -> bool {
todo!()
}
/// Check if two 16-bit values are equal.
pub fn eq_16(a: u16, b: u16) -> bool {
todo!()
}
/// Check if two 32-bit values are equal.
pub fn eq_32(a: u32, b: u32) -> bool {
todo!()
}
/// Check if two 64-bit values are equal.
pub fn eq_64(a: u64, b: u64) -> bool {
todo!()
}
/// Check if two 256-bit values are equal.
pub fn eq_256(a: u256, b: u256) -> bool {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 1-bit value into a 16-bit value. Return the shifted value and the 1 bit that was shifted out.
pub fn full_left_shift_16_1(a: u16, b: u1) -> (u1, u16) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 2-bit value into a 16-bit value. Return the shifted value and the 2 bits that were shifted out.
pub fn full_left_shift_16_2(a: u16, b: u2) -> (u2, u16) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 4-bit value into a 16-bit value. Return the shifted value and the 4 bits that were shifted out.
pub fn full_left_shift_16_4(a: u16, b: u4) -> (u4, u16) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 8-bit value into a 16-bit value. Return the shifted value and the 8 bits that were shifted out.
pub fn full_left_shift_16_8(a: u16, b: u8) -> (u8, u16) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 1-bit value into a 32-bit value. Return the shifted value and the 1 bit that was shifted out.
pub fn full_left_shift_32_1(a: u32, b: u1) -> (u1, u32) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 2-bit value into a 32-bit value. Return the shifted value and the 2 bits that were shifted out.
pub fn full_left_shift_32_2(a: u32, b: u2) -> (u2, u32) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 4-bit value into a 32-bit value. Return the shifted value and the 4 bits that were shifted out.
pub fn full_left_shift_32_4(a: u32, b: u4) -> (u4, u32) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 8-bit value into a 32-bit value. Return the shifted value and the 8 bits that were shifted out.
pub fn full_left_shift_32_8(a: u32, b: u8) -> (u8, u32) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 16-bit value into a 32-bit value. Return the shifted value and the 16 bits that were shifted out.
pub fn full_left_shift_32_16(a: u32, b: u16) -> (u16, u32) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 1-bit value into a 64-bit value. Return the shifted value and the 1 bit that was shifted out.
pub fn full_left_shift_64_1(a: u64, b: u1) -> (u1, u64) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 2-bit value into a 64-bit value. Return the shifted value and the 2 bits that were shifted out.
pub fn full_left_shift_64_2(a: u64, b: u2) -> (u2, u64) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 4-bit value into a 64-bit value. Return the shifted value and the 4 bits that were shifted out.
pub fn full_left_shift_64_4(a: u64, b: u4) -> (u4, u64) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 8-bit value into a 64-bit value. Return the shifted value and the 8 bits that were shifted out.
pub fn full_left_shift_64_8(a: u64, b: u8) -> (u8, u64) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 16-bit value into a 64-bit value. Return the shifted value and the 16 bits that were shifted out.
pub fn full_left_shift_64_16(a: u64, b: u16) -> (u16, u64) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 32-bit value into a 64-bit value. Return the shifted value and the 32 bits that were shifted out.
pub fn full_left_shift_64_32(a: u64, b: u32) -> (u32, u64) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 1-bit value into a 8-bit value. Return the shifted value and the 1 bit that was shifted out.
pub fn full_left_shift_8_1(a: u8, b: u1) -> (u1, u8) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 2-bit value into a 8-bit value. Return the shifted value and the 2 bits that were shifted out.
pub fn full_left_shift_8_2(a: u8, b: u2) -> (u2, u8) {
todo!()
}
/// Helper for left-shifting bits. The bits are shifted from a 4-bit value into a 8-bit value. Return the shifted value and the 4 bits that were shifted out.
pub fn full_left_shift_8_4(a: u8, b: u4) -> (u4, u8) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 1-bit value into a 16-bit value. Return the shifted value and the 1 bit that was shifted out.
pub fn full_right_shift_16_1(a: u1, b: u16) -> (u16, u1) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 2-bit value into a 16-bit value. Return the shifted value and the 2 bits that were shifted out.
pub fn full_right_shift_16_2(a: u2, b: u16) -> (u16, u2) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 4-bit value into a 16-bit value. Return the shifted value and the 4 bits that were shifted out.
pub fn full_right_shift_16_4(a: u4, b: u16) -> (u16, u4) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 8-bit value into a 16-bit value. Return the shifted value and the 8 bits that were shifted out.
pub fn full_right_shift_16_8(a: u8, b: u16) -> (u16, u8) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 1-bit value into a 32-bit value. Return the shifted value and the 1 bit that was shifted out.
pub fn full_right_shift_32_1(a: u1, b: u32) -> (u32, u1) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 2-bit value into a 32-bit value. Return the shifted value and the 2 bits that were shifted out.
pub fn full_right_shift_32_2(a: u2, b: u32) -> (u32, u2) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 4-bit value into a 32-bit value. Return the shifted value and the 4 bits that were shifted out.
pub fn full_right_shift_32_4(a: u4, b: u32) -> (u32, u4) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 8-bit value into a 32-bit value. Return the shifted value and the 8 bits that were shifted out.
pub fn full_right_shift_32_8(a: u8, b: u32) -> (u32, u8) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 16-bit value into a 32-bit value. Return the shifted value and the 16 bits that were shifted out.
pub fn full_right_shift_32_16(a: u16, b: u32) -> (u32, u16) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 1-bit value into a 64-bit value. Return the shifted value and the 1 bit that was shifted out.
pub fn full_right_shift_64_1(a: u1, b: u64) -> (u64, u1) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 2-bit value into a 64-bit value. Return the shifted value and the 2 bits that were shifted out.
pub fn full_right_shift_64_2(a: u2, b: u64) -> (u64, u2) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 4-bit value into a 64-bit value. Return the shifted value and the 4 bits that were shifted out.
pub fn full_right_shift_64_4(a: u4, b: u64) -> (u64, u4) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 8-bit value into a 64-bit value. Return the shifted value and the 8 bits that were shifted out.
pub fn full_right_shift_64_8(a: u8, b: u64) -> (u64, u8) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 16-bit value into a 64-bit value. Return the shifted value and the 16 bits that were shifted out.
pub fn full_right_shift_64_16(a: u16, b: u64) -> (u64, u16) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 32-bit value into a 64-bit value. Return the shifted value and the 32 bits that were shifted out.
pub fn full_right_shift_64_32(a: u32, b: u64) -> (u64, u32) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 1-bit value into a 8-bit value. Return the shifted value and the 1 bit that was shifted out.
pub fn full_right_shift_8_1(a: u1, b: u8) -> (u8, u1) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 2-bit value into a 8-bit value. Return the shifted value and the 2 bits that were shifted out.
pub fn full_right_shift_8_2(a: u2, b: u8) -> (u8, u2) {
todo!()
}
/// Helper for right-shifting bits. The bits are shifted from a 4-bit value into a 8-bit value. Return the shifted value and the 4 bits that were shifted out.
pub fn full_right_shift_8_4(a: u4, b: u8) -> (u8, u4) {
todo!()
}
/// Return `u1::MAX` = 1.
pub fn high_1() -> u1 {
todo!()
}
/// Return [`u8::MAX`].
pub fn high_8() -> u8 {
todo!()
}
/// Return [`u16::MAX`].
pub fn high_16() -> u16 {
todo!()
}
/// Return [`u32::MAX`].
pub fn high_32() -> u32 {
todo!()
}
/// Return [`u64::MAX`].
pub fn high_64() -> u64 {
todo!()
}
/// Extend a 16-bit value to a 32-bit value by padding its left with the MSB.
pub fn left_extend_16_32(a: u16) -> u32 {
todo!()
}
/// Extend a 16-bit value to a 64-bit value by padding its left with the MSB.
pub fn left_extend_16_64(a: u16) -> u64 {
todo!()
}
/// Extend a 1-bit value to an 8-bit value by padding its left with the MSB.
pub fn left_extend_1_8(a: u1) -> u8 {
todo!()
}
/// Extend a 1-bit value to a 16-bit value by padding its left with the MSB.
pub fn left_extend_1_16(a: u1) -> u16 {
todo!()
}
/// Extend a 1-bit value to a 32-bit value by padding its left with the MSB.
pub fn left_extend_1_32(a: u1) -> u32 {
todo!()
}
/// Extend a 1-bit value to a 64-bit value by padding its left with the MSB.
pub fn left_extend_1_64(a: u1) -> u64 {
todo!()
}
/// Extend a 16-bit value to a 64-bit value by padding its left with the MSB.
pub fn left_extend_32_64(a: u32) -> u64 {
todo!()
}
/// Extend an 8-bit value to a 16-bit value by padding its left with the MSB.
pub fn left_extend_8_16(a: u8) -> u16 {
todo!()
}
/// Extend an 8-bit value to a 32-bit value by padding its left with the MSB.
pub fn left_extend_8_32(a: u8) -> u32 {
todo!()
}
/// Extend an 8-bit value to a 64-bit value by padding its left with the MSB.
pub fn left_extend_8_64(a: u8) -> u64 {
todo!()
}
/// Extend a 16-bit value to a 32-bit value by padding its left with ones.
pub fn left_pad_high_16_32(a: u16) -> u32 {
todo!()
}
/// Extend a 16-bit value to a 64-bit value by padding its left with ones.
pub fn left_pad_high_16_64(a: u16) -> u64 {
todo!()
}
/// Extend a 1-bit value to an 8-bit value by padding its left with ones.
pub fn left_pad_high_1_8(a: u1) -> u8 {
todo!()
}
/// Extend a 1-bit value to a 16-bit value by padding its left with ones.
pub fn left_pad_high_1_16(a: u1) -> u16 {
todo!()
}
/// Extend a 1-bit value to a 32-bit value by padding its left with ones.
pub fn left_pad_high_1_32(a: u1) -> u32 {
todo!()
}
/// Extend a 1-bit value to a 64-bit value by padding its left with ones.
pub fn left_pad_high_1_64(a: u1) -> u64 {
todo!()
}
/// Extend a 32-bit value to a 64-bit value by padding its left with ones.
pub fn left_pad_high_32_64(a: u32) -> u64 {
todo!()
}
/// Extend an 8-bit value to a 16-bit value by padding its left with ones.
pub fn left_pad_high_8_16(a: u8) -> u16 {
todo!()
}
/// Extend an 8-bit value to a 32-bit value by padding its left with ones.
pub fn left_pad_high_8_32(a: u8) -> u32 {
todo!()
}
/// Extend a 1-bit value to a 64-bit value by padding its left with ones.
pub fn left_pad_high_8_64(a: u8) -> u64 {
todo!()
}
/// Extend a 16-bit value to a 32-bit value by padding its left with zeroes.
pub fn left_pad_low_16_32(a: u16) -> u32 {
todo!()
}
/// Extend a 16-bit value to a 64-bit value by padding its left with zeroes.
pub fn left_pad_low_16_64(a: u16) -> u64 {
todo!()
}
/// Extend a 1-bit value to an 8-bit value by padding its left with zeroes.
pub fn left_pad_low_1_8(a: u1) -> u8 {
todo!()
}
/// Extend a 1-bit value to a 16-bit value by padding its left with zeroes.
pub fn left_pad_low_1_16(a: u1) -> u16 {
todo!()
}
/// Extend a 1-bit value to a 32-bit value by padding its left with zeroes.
pub fn left_pad_low_1_32(a: u1) -> u32 {
todo!()
}
/// Extend a 1-bit value to a 64-bit value by padding its left with zeroes.
pub fn left_pad_low_1_64(a: u1) -> u64 {
todo!()
}
/// Extend a 32-bit value to a 64-bit value by padding its left with zeroes.
pub fn left_pad_low_32_64(a: u32) -> u64 {
todo!()
}
/// Extend an 8-bit value to a 16-bit value by padding its left with zeroes.
pub fn left_pad_low_8_16(a: u8) -> u16 {
todo!()
}
/// Extend an 8-bit value to a 32-bit value by padding its left with zeroes.
pub fn left_pad_low_8_32(a: u8) -> u32 {
todo!()
}
/// Extend an 8-bit value to a 64-bit value by padding its left with zeroes.
pub fn left_pad_low_8_64(a: u8) -> u64 {
todo!()
}
/// Left-rotate an 8-bit value by the given amount.
pub fn left_rotate_8(a: u4, b: u8) -> u8 {
todo!()
}
/// Left-rotate a 16-bit value by the given amount.
pub fn left_rotate_16(a: u4, b: u16) -> u16 {
todo!()
}
/// Left-rotate a 32-bit value by the given amount.
pub fn left_rotate_32(a: u8, b: u32) -> u32 {
todo!()
}
/// Left-rotate a 64-bit value by the given amount.
pub fn left_rotate_64(a: u8, b: u64) -> u64 {
todo!()
}
/// Left-shift an 8-bit value by the given amount. Bits are filled with zeroes.
pub fn left_shift_8(a: u4, b: u8) -> u8 {
todo!()
}
/// Left-shift a 16-bit value by the given amount. Bits are filled with zeroes.
pub fn left_shift_16(a: u4, b: u16) -> u16 {
todo!()
}
/// Left-shift a 32-bit value by the given amount. Bits are filled with zeroes.
pub fn left_shift_32(a: u8, b: u32) -> u32 {
todo!()
}
/// Left-shift a 64-bit value by the given amount. Bits are filled with zeroes.
pub fn left_shift_64(a: u8, b: u64) -> u64 {
todo!()
}
/// Left-shift an 8-bit value by the given amount. Bits are filled with the given bit.
pub fn left_shift_with_8(a: u1, b: u4, c: u8) -> u8 {
todo!()
}
/// Left-shift a 16-bit value by the given amount. Bits are filled with the given bit.
pub fn left_shift_with_16(a: u1, b: u4, c: u16) -> u16 {
todo!()
}
/// Left-shift a 32-bit value by the given amount. Bits are filled with the given bit.
pub fn left_shift_with_32(a: u1, b: u8, c: u32) -> u32 {
todo!()
}
/// Left-shift a 64-bit value by the given amount. Bits are filled with the given bit.
pub fn left_shift_with_64(a: u1, b: u8, c: u64) -> u64 {
todo!()
}
/// Return the most significant 1 bit of a 16-bit value.
pub fn leftmost_16_1(a: u16) -> u1 {
todo!()
}
/// Return the most significant 2 bits of a 16-bit value.
pub fn leftmost_16_2(a: u16) -> u2 {
todo!()
}
/// Return the most significant 4 bits of a 16-bit value.
pub fn leftmost_16_4(a: u16) -> u4 {
todo!()
}
/// Return the most significant 8 bits of a 16-bit value.
pub fn leftmost_16_8(a: u16) -> u8 {
todo!()
}
/// Return the most significant 1 bit of a 32-bit value.
pub fn leftmost_32_1(a: u32) -> u1 {
todo!()
}
/// Return the most significant 2 bits of a 32-bit value.
pub fn leftmost_32_2(a: u32) -> u2 {
todo!()
}
/// Return the most significant 4 bits of a 32-bit value.
pub fn leftmost_32_4(a: u32) -> u4 {
todo!()
}
/// Return the most significant 8 bits of a 32-bit value.
pub fn leftmost_32_8(a: u32) -> u8 {
todo!()
}
/// Return the most significant 16 bits of a 32-bit value.
pub fn leftmost_32_16(a: u32) -> u16 {
todo!()
}
/// Return the most significant 1 bits of a 64-bit value.
pub fn leftmost_64_1(a: u64) -> u1 {
todo!()
}
/// Return the most significant 2 bits of a 64-bit value.
pub fn leftmost_64_2(a: u64) -> u2 {
todo!()
}
/// Return the most significant 4 bits of a 64-bit value.
pub fn leftmost_64_4(a: u64) -> u4 {
todo!()
}
/// Return the most significant 8 bits of a 64-bit value.
pub fn leftmost_64_8(a: u64) -> u8 {
todo!()
}
/// Return the most significant 16 bits of a 64-bit value.
pub fn leftmost_64_16(a: u64) -> u16 {
todo!()
}
/// Return the most significant 32 bits of a 64-bit value.
pub fn leftmost_64_32(a: u64) -> u32 {
todo!()
}
/// Return the most significant 1 bits of an 8-bit value.
pub fn leftmost_8_1(a: u8) -> u1 {
todo!()
}
/// Return the most significant 1 bits of an 8-bit value.
pub fn leftmost_8_2(a: u8) -> u2 {
todo!()
}
/// Return the most significant 1 bits of an 8-bit value.
pub fn leftmost_8_4(a: u8) -> u4 {
todo!()
}
/// Return `u1::MIN` = 1.
pub fn low_1() -> u1 {
todo!()
}
/// Return [`u8::MIN`].
pub fn low_8() -> u8 {
todo!()
}
/// Return [`u16::MIN`].
pub fn low_16() -> u16 {
todo!()
}
/// Return [`u32::MIN`].
pub fn low_32() -> u32 {
todo!()
}
/// Return [`u64::MIN`].
pub fn low_64() -> u64 {
todo!()
}
/// Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
pub fn maj_1(a: u1, b: u1, c: u1) -> u1 {
todo!()
}
/// Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
pub fn maj_8(a: u8, b: u8, c: u8) -> u8 {
todo!()
}
/// Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
pub fn maj_16(a: u16, b: (u16, u16)) -> u16 {
todo!()
}
/// Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
pub fn maj_32(a: u32, b: (u32, u32)) -> u32 {
todo!()
}
/// Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
pub fn maj_64(a: u64, b: (u64, u64)) -> u64 {
todo!()
}
/// Bitwise OR of two 1-bit values.
pub fn or_1(a: u1, b: u1) -> u1 {
todo!()
}
/// Bitwise OR of two 8-bit values.
pub fn or_8(a: u8, b: u8) -> u8 {
todo!()
}
/// Bitwise OR of two 16-bit values.
pub fn or_16(a: u16, b: u16) -> u16 {
todo!()
}
/// Bitwise OR of two 32-bit values.
pub fn or_32(a: u32, b: u32) -> u32 {
todo!()
}
/// Bitwise OR of two 64-bit values.
pub fn or_64(a: u64, b: u64) -> u64 {
todo!()
}
/// Extend a 16-bit value to a 32-bit value by padding its right with the MSB.
pub fn right_extend_16_32(a: u16) -> u32 {
todo!()
}
/// Extend a 16-bit value to a 64-bit value by padding its right with the MSB.
pub fn right_extend_16_64(a: u16) -> u64 {
todo!()
}
/// Extend a 16-bit value to a 64-bit value by padding its right with the MSB.
pub fn right_extend_32_64(a: u32) -> u64 {
todo!()
}
/// Extend an 8-bit value to a 16-bit value by padding its right with the MSB.
pub fn right_extend_8_16(a: u8) -> u16 {
todo!()
}
/// Extend an 8-bit value to a 32-bit value by padding its right with the MSB.
pub fn right_extend_8_32(a: u8) -> u32 {
todo!()
}
/// Extend an 8-bit value to a 64-bit value by padding its right with the MSB.
pub fn right_extend_8_64(a: u8) -> u64 {
todo!()
}
/// Extend a 16-bit value to a 32-bit value by padding its right with ones.
pub fn right_pad_high_16_32(a: u16) -> u32 {
todo!()
}
/// Extend a 16-bit value to a 64-bit value by padding its right with ones.
pub fn right_pad_high_16_64(a: u16) -> u64 {
todo!()
}
/// Extend a 1-bit value to an 8-bit value by padding its right with ones.
pub fn right_pad_high_1_8(a: u1) -> u8 {
todo!()
}
/// Extend a 1-bit value to a 16-bit value by padding its right with ones.
pub fn right_pad_high_1_16(a: u1) -> u16 {
todo!()
}
/// Extend a 1-bit value to a 32-bit value by padding its right with ones.
pub fn right_pad_high_1_32(a: u1) -> u32 {
todo!()
}
/// Extend a 1-bit value to a 64-bit value by padding its right with ones.
pub fn right_pad_high_1_64(a: u1) -> u64 {
todo!()
}
/// Extend a 32-bit value to a 64-bit value by padding its right with ones.
pub fn right_pad_high_32_64(a: u32) -> u64 {
todo!()
}
/// Extend an 8-bit value to a 16-bit value by padding its right with ones.
pub fn right_pad_high_8_16(a: u8) -> u16 {
todo!()
}
/// Extend an 8-bit value to a 32-bit value by padding its right with ones.
pub fn right_pad_high_8_32(a: u8) -> u32 {
todo!()
}
/// Extend a 1-bit value to a 64-bit value by padding its right with ones.
pub fn right_pad_high_8_64(a: u8) -> u64 {
todo!()
}
/// Extend a 16-bit value to a 32-bit value by padding its right with zeroes.
pub fn right_pad_low_16_32(a: u16) -> u32 {
todo!()
}
/// Extend a 16-bit value to a 64-bit value by padding its right with zeroes.
pub fn right_pad_low_16_64(a: u16) -> u64 {
todo!()
}
/// Extend a 1-bit value to an 8-bit value by padding its right with zeroes.
pub fn right_pad_low_1_8(a: u1) -> u8 {
todo!()
}
/// Extend a 1-bit value to a 16-bit value by padding its right with zeroes.
pub fn right_pad_low_1_16(a: u1) -> u16 {
todo!()
}
/// Extend a 1-bit value to a 32-bit value by padding its right with zeroes.
pub fn right_pad_low_1_32(a: u1) -> u32 {
todo!()
}
/// Extend a 1-bit value to a 64-bit value by padding its right with zeroes.
pub fn right_pad_low_1_64(a: u1) -> u64 {
todo!()
}
/// Extend a 32-bit value to a 64-bit value by padding its right with zeroes.
pub fn right_pad_low_32_64(a: u32) -> u64 {
todo!()
}
/// Extend an 8-bit value to a 16-bit value by padding its right with zeroes.
pub fn right_pad_low_8_16(a: u8) -> u16 {
todo!()
}
/// Extend an 8-bit value to a 32-bit value by padding its right with zeroes.
pub fn right_pad_low_8_32(a: u8) -> u32 {
todo!()
}
/// Extend an 8-bit value to a 64-bit value by padding its right with zeroes.
pub fn right_pad_low_8_64(a: u8) -> u64 {
todo!()
}
/// Right-rotate an 8-bit value by the given amount.
pub fn right_rotate_8(a: u4, b: u8) -> u8 {
todo!()
}
/// Right-rotate a 16-bit value by the given amount.
pub fn right_rotate_16(a: u4, b: u16) -> u16 {
todo!()
}
/// Right-rotate a 32-bit value by the given amount.
pub fn right_rotate_32(a: u8, b: u32) -> u32 {
todo!()
}
/// Right-rotate a 64-bit value by the given amount.
pub fn right_rotate_64(a: u8, b: u64) -> u64 {
todo!()
}
/// Right-shift an 8-bit value by the given amount. Bits are filled with zeroes.
pub fn right_shift_8(a: u4, b: u8) -> u8 {
todo!()
}
/// Right-shift a 16-bit value by the given amount. Bits are filled with zeroes.
pub fn right_shift_16(a: u4, b: u16) -> u16 {
todo!()
}
/// Right-shift a 32-bit value by the given amount. Bits are filled with zeroes.
pub fn right_shift_32(a: u8, b: u32) -> u32 {
todo!()
}
/// Right-shift a 64-bit value by the given amount. Bits are filled with zeroes.
pub fn right_shift_64(a: u8, b: u64) -> u64 {
todo!()
}
/// Right-shift an 8-bit value by the given amount. Bits are filled with the given bit.
pub fn right_shift_with_8(a: u1, b: u4, c: u8) -> u8 {
todo!()
}
/// Right-shift a 16-bit value by the given amount. Bits are filled with the given bit.
pub fn right_shift_with_16(a: u1, b: u4, c: u16) -> u16 {
todo!()
}
/// Right-shift a 32-bit value by the given amount. Bits are filled with the given bit.
pub fn right_shift_with_32(a: u1, b: u8, c: u32) -> u32 {
todo!()
}
/// Right-shift a 64-bit value by the given amount. Bits are filled with the given bit.
pub fn right_shift_with_64(a: u1, b: u8, c: u64) -> u64 {
todo!()
}
/// Return the least significant 1 bit of a 16-bit value.
pub fn rightmost_16_1(a: u16) -> u1 {
todo!()
}
/// Return the least significant 2 bits of a 16-bit value.
pub fn rightmost_16_2(a: u16) -> u2 {
todo!()
}
/// Return the least significant 4 bits of a 16-bit value.
pub fn rightmost_16_4(a: u16) -> u4 {
todo!()
}
/// Return the least significant 8 bits of a 16-bit value.
pub fn rightmost_16_8(a: u16) -> u8 {
todo!()
}
/// Return the least significant 1 bit of a 32-bit value.
pub fn rightmost_32_1(a: u32) -> u1 {
todo!()
}
/// Return the least significant 2 bits of a 32-bit value.
pub fn rightmost_32_2(a: u32) -> u2 {
todo!()
}
/// Return the least significant 4 bits of a 32-bit value.
pub fn rightmost_32_4(a: u32) -> u4 {
todo!()
}
/// Return the least significant 8 bits of a 32-bit value.
pub fn rightmost_32_8(a: u32) -> u8 {
todo!()
}
/// Return the least significant 16 bits of a 32-bit value.
pub fn rightmost_32_16(a: u32) -> u16 {
todo!()
}
/// Return the least significant 1 bits of a 64-bit value.
pub fn rightmost_64_1(a: u64) -> u1 {
todo!()
}
/// Return the least significant 2 bits of a 64-bit value.
pub fn rightmost_64_2(a: u64) -> u2 {
todo!()
}
/// Return the least significant 4 bits of a 64-bit value.
pub fn rightmost_64_4(a: u64) -> u4 {
todo!()
}
/// Return the least significant 8 bits of a 64-bit value.
pub fn rightmost_64_8(a: u64) -> u8 {
todo!()
}
/// Return the least significant 16 bits of a 64-bit value.
pub fn rightmost_64_16(a: u64) -> u16 {
todo!()
}
/// Return the least significant 32 bits of a 64-bit value.
pub fn rightmost_64_32(a: u64) -> u32 {
todo!()
}
/// Return the least significant 1 bits of an 8-bit value.
pub fn rightmost_8_1(a: u8) -> u1 {
todo!()
}
/// Return the least significant 1 bits of an 8-bit value.
pub fn rightmost_8_2(a: u8) -> u2 {
todo!()
}
/// Return the least significant 1 bits of an 8-bit value.
pub fn rightmost_8_4(a: u8) -> u4 {
todo!()
}
/// Check if a 1-bit value is nonzero.
pub fn some_1(a: u1) -> bool {
todo!()
}
/// Check if an 8-bit value is nonzero.
pub fn some_8(a: u8) -> bool {
todo!()
}
/// Check if a 16-bit value is nonzero.
pub fn some_16(a: u16) -> bool {
todo!()
}
/// Check if a 32-bit value is nonzero.
pub fn some_32(a: u32) -> bool {
todo!()
}
/// Check if a 64-bit value is nonzero.
pub fn some_64(a: u64) -> bool {
todo!()
}
/// Bitwise XOR of two 1-bit values.
pub fn xor_1(a: u1, b: u1) -> u1 {
todo!()
}
/// Bitwise XOR of two 8-bit values.
pub fn xor_8(a: u8, b: u8) -> u8 {
todo!()
}
/// Bitwise XOR of two 16-bit values.
pub fn xor_16(a: u16, b: u16) -> u16 {
todo!()
}
/// Bitwise XOR of two 32-bit values.
pub fn xor_32(a: u32, b: u32) -> u32 {
todo!()
}
/// Bitwise XOR of two 64-bit values.
pub fn xor_64(a: u64, b: u64) -> u64 {
todo!()
}
/// Bitwise XOR of three 1-bit values.
pub fn xor_xor_1(a: u1, b: u1, c: u1) -> u1 {
todo!()
}
/// Bitwise XOR of three 8-bit values.
pub fn xor_xor_8(a: u8, b: u8, c: u8) -> u8 {
todo!()
}
/// Bitwise XOR of three 16-bit values.
pub fn xor_xor_16(a: u16, b: (u16, u16)) -> u16 {
todo!()
}
/// Bitwise XOR of three 32-bit values.
pub fn xor_xor_32(a: u32, b: (u32, u32)) -> u32 {
todo!()
}
/// Bitwise XOR of three 64-bit values.
pub fn xor_xor_64(a: u64, b: (u64, u64)) -> u64 {
todo!()
}