Ignore:
Timestamp:
Apr 15, 2020, 2:43:13 PM (20 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
0a6da484, 7c5d8c4
Parents:
4ea5308
Message:

second draft of bitmanip using specialized rather than polymorphic routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/.expect/bitmanip3.x64.txt

    r4ea5308 r21923bd  
    427427short int
    428428floor(0, 0) = 0, floor(2, 0) = 0, floor(-2, 0) = 0
    429 floor(1 1) = 1, floor(3 1) = 3, floor(-3 1) = -3
    430 floor(2 2) = 2, floor(4 2) = 4, floor(-4 2) = -4
    431 floor(4 4) = 4, floor(6 4) = 4, floor(-6 4) = -8
    432 floor(8 8) = 8, floor(10 8) = 8, floor(-10 8) = -16
    433 floor(16 16) = 16, floor(18 16) = 16, floor(-18 16) = -32
    434 floor(32 32) = 32, floor(34 32) = 32, floor(-34 32) = -64
    435 floor(64 64) = 64, floor(66 64) = 64, floor(-66 64) = -128
    436 floor(128 128) = 128, floor(130 128) = 128, floor(-130 128) = -256
    437 floor(256 256) = 256, floor(258 256) = 256, floor(-258 256) = -512
    438 floor(512 512) = 512, floor(514 512) = 512, floor(-514 512) = -1024
    439 floor(1024 1024) = 1024, floor(1026 1024) = 1024, floor(-1026 1024) = -2048
    440 floor(2048 2048) = 2048, floor(2050 2048) = 2048, floor(-2050 2048) = -4096
    441 floor(4096 4096) = 4096, floor(4098 4096) = 4096, floor(-4098 4096) = -8192
    442 floor(8192 8192) = 8192, floor(8194 8192) = 8192, floor(-8194 8192) = -16384
    443 floor(16384 16384) = 16384, floor(16386 16384) = 16384, floor(-16386 16384) = -32768
    444 floor(-32768 -32768) = -32768, floor(-32766 -32768) = -32768, floor(32766 -32768) = 0
     429floor(1, 1) = 1, floor(3, 1) = 3, floor(-3, 1) = -3
     430floor(2, 2) = 2, floor(4, 2) = 4, floor(-4, 2) = -4
     431floor(4, 4) = 4, floor(6, 4) = 4, floor(-6, 4) = -8
     432floor(8, 8) = 8, floor(10, 8) = 8, floor(-10, 8) = -16
     433floor(16, 16) = 16, floor(18, 16) = 16, floor(-18, 16) = -32
     434floor(32, 32) = 32, floor(34, 32) = 32, floor(-34, 32) = -64
     435floor(64, 64) = 64, floor(66, 64) = 64, floor(-66, 64) = -128
     436floor(128, 128) = 128, floor(130, 128) = 128, floor(-130, 128) = -256
     437floor(256, 256) = 256, floor(258, 256) = 256, floor(-258, 256) = -512
     438floor(512, 512) = 512, floor(514, 512) = 512, floor(-514, 512) = -1024
     439floor(1024, 1024) = 1024, floor(1026, 1024) = 1024, floor(-1026, 1024) = -2048
     440floor(2048, 2048) = 2048, floor(2050, 2048) = 2048, floor(-2050, 2048) = -4096
     441floor(4096, 4096) = 4096, floor(4098, 4096) = 4096, floor(-4098, 4096) = -8192
     442floor(8192, 8192) = 8192, floor(8194, 8192) = 8192, floor(-8194, 8192) = -16384
     443floor(16384, 16384) = 16384, floor(16386, 16384) = 16384, floor(-16386, 16384) = -32768
     444floor(-32768, -32768) = -32768, floor(-32766, -32768) = -32768, floor(32766, -32768) = 0
    445445
    446446unsigned short int
     
    668668
    669669long long int
    670 floor(0 0) = 0, floor(2 0) = 0, floor(-2 0) = 0
    671 floor(1 1) = 1, floor(3 1) = 3, floor(-3 1) = -3
    672 floor(2 2) = 2, floor(4 2) = 4, floor(-4 2) = -4
    673 floor(4 4) = 4, floor(6 4) = 4, floor(-6 4) = -8
    674 floor(8 8) = 8, floor(10 8) = 8, floor(-10 8) = -16
    675 floor(16 16) = 16, floor(18 16) = 16, floor(-18 16) = -32
    676 floor(32 32) = 32, floor(34 32) = 32, floor(-34 32) = -64
    677 floor(64 64) = 64, floor(66 64) = 64, floor(-66 64) = -128
    678 floor(128 128) = 128, floor(130 128) = 128, floor(-130 128) = -256
    679 floor(256 256) = 256, floor(258 256) = 256, floor(-258 256) = -512
    680 floor(512 512) = 512, floor(514 512) = 512, floor(-514 512) = -1024
    681 floor(1024 1024) = 1024, floor(1026 1024) = 1024, floor(-1026 1024) = -2048
    682 floor(2048 2048) = 2048, floor(2050 2048) = 2048, floor(-2050 2048) = -4096
    683 floor(4096 4096) = 4096, floor(4098 4096) = 4096, floor(-4098 4096) = -8192
    684 floor(8192 8192) = 8192, floor(8194 8192) = 8192, floor(-8194 8192) = -16384
    685 floor(16384 16384) = 16384, floor(16386 16384) = 16384, floor(-16386 16384) = -32768
    686 floor(32768 32768) = 32768, floor(32770 32768) = 32768, floor(-32770 32768) = -65536
    687 floor(65536 65536) = 65536, floor(65538 65536) = 65536, floor(-65538 65536) = -131072
    688 floor(131072 131072) = 131072, floor(131074 131072) = 131072, floor(-131074 131072) = -262144
    689 floor(262144 262144) = 262144, floor(262146 262144) = 262144, floor(-262146 262144) = -524288
    690 floor(524288 524288) = 524288, floor(524290 524288) = 524288, floor(-524290 524288) = -1048576
    691 floor(1048576 1048576) = 1048576, floor(1048578 1048576) = 1048576, floor(-1048578 1048576) = -2097152
    692 floor(2097152 2097152) = 2097152, floor(2097154 2097152) = 2097152, floor(-2097154 2097152) = -4194304
    693 floor(4194304 4194304) = 4194304, floor(4194306 4194304) = 4194304, floor(-4194306 4194304) = -8388608
    694 floor(8388608 8388608) = 8388608, floor(8388610 8388608) = 8388608, floor(-8388610 8388608) = -16777216
    695 floor(16777216 16777216) = 16777216, floor(16777218 16777216) = 16777216, floor(-16777218 16777216) = -33554432
    696 floor(33554432 33554432) = 33554432, floor(33554434 33554432) = 33554432, floor(-33554434 33554432) = -67108864
    697 floor(67108864 67108864) = 67108864, floor(67108866 67108864) = 67108864, floor(-67108866 67108864) = -134217728
    698 floor(134217728 134217728) = 134217728, floor(134217730 134217728) = 134217728, floor(-134217730 134217728) = -268435456
    699 floor(268435456 268435456) = 268435456, floor(268435458 268435456) = 268435456, floor(-268435458 268435456) = -536870912
    700 floor(536870912 536870912) = 536870912, floor(536870914 536870912) = 536870912, floor(-536870914 536870912) = -1073741824
    701 floor(1073741824 1073741824) = 1073741824, floor(1073741826 1073741824) = 1073741824, floor(-1073741826 1073741824) = -2147483648
    702 floor(2147483648 2147483648) = 2147483648, floor(2147483650 2147483648) = 2147483648, floor(-2147483650 2147483648) = -4294967296
    703 floor(4294967296 4294967296) = 4294967296, floor(4294967298 4294967296) = 4294967296, floor(-4294967298 4294967296) = -8589934592
    704 floor(8589934592 8589934592) = 8589934592, floor(8589934594 8589934592) = 8589934592, floor(-8589934594 8589934592) = -17179869184
    705 floor(17179869184 17179869184) = 17179869184, floor(17179869186 17179869184) = 17179869184, floor(-17179869186 17179869184) = -34359738368
    706 floor(34359738368 34359738368) = 34359738368, floor(34359738370 34359738368) = 34359738368, floor(-34359738370 34359738368) = -68719476736
    707 floor(68719476736 68719476736) = 68719476736, floor(68719476738 68719476736) = 68719476736, floor(-68719476738 68719476736) = -137438953472
    708 floor(137438953472 137438953472) = 137438953472, floor(137438953474 137438953472) = 137438953472, floor(-137438953474 137438953472) = -274877906944
    709 floor(274877906944 274877906944) = 274877906944, floor(274877906946 274877906944) = 274877906944, floor(-274877906946 274877906944) = -549755813888
    710 floor(549755813888 549755813888) = 549755813888, floor(549755813890 549755813888) = 549755813888, floor(-549755813890 549755813888) = -1099511627776
    711 floor(1099511627776 1099511627776) = 1099511627776, floor(1099511627778 1099511627776) = 1099511627776, floor(-1099511627778 1099511627776) = -2199023255552
    712 floor(2199023255552 2199023255552) = 2199023255552, floor(2199023255554 2199023255552) = 2199023255552, floor(-2199023255554 2199023255552) = -4398046511104
    713 floor(4398046511104 4398046511104) = 4398046511104, floor(4398046511106 4398046511104) = 4398046511104, floor(-4398046511106 4398046511104) = -8796093022208
    714 floor(8796093022208 8796093022208) = 8796093022208, floor(8796093022210 8796093022208) = 8796093022208, floor(-8796093022210 8796093022208) = -17592186044416
    715 floor(17592186044416 17592186044416) = 17592186044416, floor(17592186044418 17592186044416) = 17592186044416, floor(-17592186044418 17592186044416) = -35184372088832
    716 floor(35184372088832 35184372088832) = 35184372088832, floor(35184372088834 35184372088832) = 35184372088832, floor(-35184372088834 35184372088832) = -70368744177664
    717 floor(70368744177664 70368744177664) = 70368744177664, floor(70368744177666 70368744177664) = 70368744177664, floor(-70368744177666 70368744177664) = -140737488355328
    718 floor(140737488355328 140737488355328) = 140737488355328, floor(140737488355330 140737488355328) = 140737488355328, floor(-140737488355330 140737488355328) = -281474976710656
    719 floor(281474976710656 281474976710656) = 281474976710656, floor(281474976710658 281474976710656) = 281474976710656, floor(-281474976710658 281474976710656) = -562949953421312
    720 floor(562949953421312 562949953421312) = 562949953421312, floor(562949953421314 562949953421312) = 562949953421312, floor(-562949953421314 562949953421312) = -1125899906842624
    721 floor(1125899906842624 1125899906842624) = 1125899906842624, floor(1125899906842626 1125899906842624) = 1125899906842624, floor(-1125899906842626 1125899906842624) = -2251799813685248
    722 floor(2251799813685248 2251799813685248) = 2251799813685248, floor(2251799813685250 2251799813685248) = 2251799813685248, floor(-2251799813685250 2251799813685248) = -4503599627370496
    723 floor(4503599627370496 4503599627370496) = 4503599627370496, floor(4503599627370498 4503599627370496) = 4503599627370496, floor(-4503599627370498 4503599627370496) = -9007199254740992
    724 floor(9007199254740992 9007199254740992) = 9007199254740992, floor(9007199254740994 9007199254740992) = 9007199254740992, floor(-9007199254740994 9007199254740992) = -18014398509481984
    725 floor(18014398509481984 18014398509481984) = 18014398509481984, floor(18014398509481986 18014398509481984) = 18014398509481984, floor(-18014398509481986 18014398509481984) = -36028797018963968
    726 floor(36028797018963968 36028797018963968) = 36028797018963968, floor(36028797018963970 36028797018963968) = 36028797018963968, floor(-36028797018963970 36028797018963968) = -72057594037927936
    727 floor(72057594037927936 72057594037927936) = 72057594037927936, floor(72057594037927938 72057594037927936) = 72057594037927936, floor(-72057594037927938 72057594037927936) = -144115188075855872
    728 floor(144115188075855872 144115188075855872) = 144115188075855872, floor(144115188075855874 144115188075855872) = 144115188075855872, floor(-144115188075855874 144115188075855872) = -288230376151711744
    729 floor(288230376151711744 288230376151711744) = 288230376151711744, floor(288230376151711746 288230376151711744) = 288230376151711744, floor(-288230376151711746 288230376151711744) = -576460752303423488
    730 floor(576460752303423488 576460752303423488) = 576460752303423488, floor(576460752303423490 576460752303423488) = 576460752303423488, floor(-576460752303423490 576460752303423488) = -1152921504606846976
    731 floor(1152921504606846976 1152921504606846976) = 1152921504606846976, floor(1152921504606846978 1152921504606846976) = 1152921504606846976, floor(-1152921504606846978 1152921504606846976) = -2305843009213693952
    732 floor(2305843009213693952 2305843009213693952) = 2305843009213693952, floor(2305843009213693954 2305843009213693952) = 2305843009213693952, floor(-2305843009213693954 2305843009213693952) = -4611686018427387904
    733 floor(4611686018427387904 4611686018427387904) = 4611686018427387904, floor(4611686018427387906 4611686018427387904) = 4611686018427387904, floor(-4611686018427387906 4611686018427387904) = -9223372036854775808
    734 floor(-9223372036854775808 -9223372036854775808) = -9223372036854775808, floor(-9223372036854775806 -9223372036854775808) = -9223372036854775808, floor(9223372036854775806 -9223372036854775808) = 0
     670floor(0, 0) = 0, floor(2, 0) = 0, floor(-2, 0) = 0
     671floor(1, 1) = 1, floor(3, 1) = 3, floor(-3, 1) = -3
     672floor(2, 2) = 2, floor(4, 2) = 4, floor(-4, 2) = -4
     673floor(4, 4) = 4, floor(6, 4) = 4, floor(-6, 4) = -8
     674floor(8, 8) = 8, floor(10, 8) = 8, floor(-10, 8) = -16
     675floor(16, 16) = 16, floor(18, 16) = 16, floor(-18, 16) = -32
     676floor(32, 32) = 32, floor(34, 32) = 32, floor(-34, 32) = -64
     677floor(64, 64) = 64, floor(66, 64) = 64, floor(-66, 64) = -128
     678floor(128, 128) = 128, floor(130, 128) = 128, floor(-130, 128) = -256
     679floor(256, 256) = 256, floor(258, 256) = 256, floor(-258, 256) = -512
     680floor(512, 512) = 512, floor(514, 512) = 512, floor(-514, 512) = -1024
     681floor(1024, 1024) = 1024, floor(1026, 1024) = 1024, floor(-1026, 1024) = -2048
     682floor(2048, 2048) = 2048, floor(2050, 2048) = 2048, floor(-2050, 2048) = -4096
     683floor(4096, 4096) = 4096, floor(4098, 4096) = 4096, floor(-4098, 4096) = -8192
     684floor(8192, 8192) = 8192, floor(8194, 8192) = 8192, floor(-8194, 8192) = -16384
     685floor(16384, 16384) = 16384, floor(16386, 16384) = 16384, floor(-16386, 16384) = -32768
     686floor(32768, 32768) = 32768, floor(32770, 32768) = 32768, floor(-32770, 32768) = -65536
     687floor(65536, 65536) = 65536, floor(65538, 65536) = 65536, floor(-65538, 65536) = -131072
     688floor(131072, 131072) = 131072, floor(131074, 131072) = 131072, floor(-131074, 131072) = -262144
     689floor(262144, 262144) = 262144, floor(262146, 262144) = 262144, floor(-262146, 262144) = -524288
     690floor(524288, 524288) = 524288, floor(524290, 524288) = 524288, floor(-524290, 524288) = -1048576
     691floor(1048576, 1048576) = 1048576, floor(1048578, 1048576) = 1048576, floor(-1048578, 1048576) = -2097152
     692floor(2097152, 2097152) = 2097152, floor(2097154, 2097152) = 2097152, floor(-2097154, 2097152) = -4194304
     693floor(4194304, 4194304) = 4194304, floor(4194306, 4194304) = 4194304, floor(-4194306, 4194304) = -8388608
     694floor(8388608, 8388608) = 8388608, floor(8388610, 8388608) = 8388608, floor(-8388610, 8388608) = -16777216
     695floor(16777216, 16777216) = 16777216, floor(16777218, 16777216) = 16777216, floor(-16777218, 16777216) = -33554432
     696floor(33554432, 33554432) = 33554432, floor(33554434, 33554432) = 33554432, floor(-33554434, 33554432) = -67108864
     697floor(67108864, 67108864) = 67108864, floor(67108866, 67108864) = 67108864, floor(-67108866, 67108864) = -134217728
     698floor(134217728, 134217728) = 134217728, floor(134217730, 134217728) = 134217728, floor(-134217730, 134217728) = -268435456
     699floor(268435456, 268435456) = 268435456, floor(268435458, 268435456) = 268435456, floor(-268435458, 268435456) = -536870912
     700floor(536870912, 536870912) = 536870912, floor(536870914, 536870912) = 536870912, floor(-536870914, 536870912) = -1073741824
     701floor(1073741824, 1073741824) = 1073741824, floor(1073741826, 1073741824) = 1073741824, floor(-1073741826, 1073741824) = -2147483648
     702floor(2147483648, 2147483648) = 2147483648, floor(2147483650, 2147483648) = 2147483648, floor(-2147483650, 2147483648) = -4294967296
     703floor(4294967296, 4294967296) = 4294967296, floor(4294967298, 4294967296) = 4294967296, floor(-4294967298, 4294967296) = -8589934592
     704floor(8589934592, 8589934592) = 8589934592, floor(8589934594, 8589934592) = 8589934592, floor(-8589934594, 8589934592) = -17179869184
     705floor(17179869184, 17179869184) = 17179869184, floor(17179869186, 17179869184) = 17179869184, floor(-17179869186, 17179869184) = -34359738368
     706floor(34359738368, 34359738368) = 34359738368, floor(34359738370, 34359738368) = 34359738368, floor(-34359738370, 34359738368) = -68719476736
     707floor(68719476736, 68719476736) = 68719476736, floor(68719476738, 68719476736) = 68719476736, floor(-68719476738, 68719476736) = -137438953472
     708floor(137438953472, 137438953472) = 137438953472, floor(137438953474, 137438953472) = 137438953472, floor(-137438953474, 137438953472) = -274877906944
     709floor(274877906944, 274877906944) = 274877906944, floor(274877906946, 274877906944) = 274877906944, floor(-274877906946, 274877906944) = -549755813888
     710floor(549755813888, 549755813888) = 549755813888, floor(549755813890, 549755813888) = 549755813888, floor(-549755813890, 549755813888) = -1099511627776
     711floor(1099511627776, 1099511627776) = 1099511627776, floor(1099511627778, 1099511627776) = 1099511627776, floor(-1099511627778, 1099511627776) = -2199023255552
     712floor(2199023255552, 2199023255552) = 2199023255552, floor(2199023255554, 2199023255552) = 2199023255552, floor(-2199023255554, 2199023255552) = -4398046511104
     713floor(4398046511104, 4398046511104) = 4398046511104, floor(4398046511106, 4398046511104) = 4398046511104, floor(-4398046511106, 4398046511104) = -8796093022208
     714floor(8796093022208, 8796093022208) = 8796093022208, floor(8796093022210, 8796093022208) = 8796093022208, floor(-8796093022210, 8796093022208) = -17592186044416
     715floor(17592186044416, 17592186044416) = 17592186044416, floor(17592186044418, 17592186044416) = 17592186044416, floor(-17592186044418, 17592186044416) = -35184372088832
     716floor(35184372088832, 35184372088832) = 35184372088832, floor(35184372088834, 35184372088832) = 35184372088832, floor(-35184372088834, 35184372088832) = -70368744177664
     717floor(70368744177664, 70368744177664) = 70368744177664, floor(70368744177666, 70368744177664) = 70368744177664, floor(-70368744177666, 70368744177664) = -140737488355328
     718floor(140737488355328, 140737488355328) = 140737488355328, floor(140737488355330, 140737488355328) = 140737488355328, floor(-140737488355330, 140737488355328) = -281474976710656
     719floor(281474976710656, 281474976710656) = 281474976710656, floor(281474976710658, 281474976710656) = 281474976710656, floor(-281474976710658, 281474976710656) = -562949953421312
     720floor(562949953421312, 562949953421312) = 562949953421312, floor(562949953421314, 562949953421312) = 562949953421312, floor(-562949953421314, 562949953421312) = -1125899906842624
     721floor(1125899906842624, 1125899906842624) = 1125899906842624, floor(1125899906842626, 1125899906842624) = 1125899906842624, floor(-1125899906842626, 1125899906842624) = -2251799813685248
     722floor(2251799813685248, 2251799813685248) = 2251799813685248, floor(2251799813685250, 2251799813685248) = 2251799813685248, floor(-2251799813685250, 2251799813685248) = -4503599627370496
     723floor(4503599627370496, 4503599627370496) = 4503599627370496, floor(4503599627370498, 4503599627370496) = 4503599627370496, floor(-4503599627370498, 4503599627370496) = -9007199254740992
     724floor(9007199254740992, 9007199254740992) = 9007199254740992, floor(9007199254740994, 9007199254740992) = 9007199254740992, floor(-9007199254740994, 9007199254740992) = -18014398509481984
     725floor(18014398509481984, 18014398509481984) = 18014398509481984, floor(18014398509481986, 18014398509481984) = 18014398509481984, floor(-18014398509481986, 18014398509481984) = -36028797018963968
     726floor(36028797018963968, 36028797018963968) = 36028797018963968, floor(36028797018963970, 36028797018963968) = 36028797018963968, floor(-36028797018963970, 36028797018963968) = -72057594037927936
     727floor(72057594037927936, 72057594037927936) = 72057594037927936, floor(72057594037927938, 72057594037927936) = 72057594037927936, floor(-72057594037927938, 72057594037927936) = -144115188075855872
     728floor(144115188075855872, 144115188075855872) = 144115188075855872, floor(144115188075855874, 144115188075855872) = 144115188075855872, floor(-144115188075855874, 144115188075855872) = -288230376151711744
     729floor(288230376151711744, 288230376151711744) = 288230376151711744, floor(288230376151711746, 288230376151711744) = 288230376151711744, floor(-288230376151711746, 288230376151711744) = -576460752303423488
     730floor(576460752303423488, 576460752303423488) = 576460752303423488, floor(576460752303423490, 576460752303423488) = 576460752303423488, floor(-576460752303423490, 576460752303423488) = -1152921504606846976
     731floor(1152921504606846976, 1152921504606846976) = 1152921504606846976, floor(1152921504606846978, 1152921504606846976) = 1152921504606846976, floor(-1152921504606846978, 1152921504606846976) = -2305843009213693952
     732floor(2305843009213693952, 2305843009213693952) = 2305843009213693952, floor(2305843009213693954, 2305843009213693952) = 2305843009213693952, floor(-2305843009213693954, 2305843009213693952) = -4611686018427387904
     733floor(4611686018427387904, 4611686018427387904) = 4611686018427387904, floor(4611686018427387906, 4611686018427387904) = 4611686018427387904, floor(-4611686018427387906, 4611686018427387904) = -9223372036854775808
     734floor(-9223372036854775808, -9223372036854775808) = -9223372036854775808, floor(-9223372036854775806, -9223372036854775808) = -9223372036854775808, floor(9223372036854775806, -9223372036854775808) = 0
    735735
    736736unsigned long long int
     
    825825
    826826short int
    827 floor(1, 1) = 1, floor(3, 1) = 3, floor(-3, 1) = 65533
    828 floor(2, 2) = 2, floor(4, 2) = 4, floor(-4, 2) = 65532
    829 floor(4, 4) = 4, floor(6, 4) = 4, floor(-6, 4) = 65532
    830 floor(8, 8) = 8, floor(10, 8) = 8, floor(-10, 8) = 65528
    831 floor(16, 16) = 16, floor(18, 16) = 16, floor(-18, 16) = 65520
    832 floor(32, 32) = 32, floor(34, 32) = 32, floor(-34, 32) = 65504
    833 floor(64, 64) = 64, floor(66, 64) = 64, floor(-66, 64) = 65472
    834 floor(128, 128) = 128, floor(130, 128) = 128, floor(-130, 128) = 65408
    835 floor(256, 256) = 256, floor(258, 256) = 256, floor(-258, 256) = 65280
    836 floor(512, 512) = 512, floor(514, 512) = 512, floor(-514, 512) = 65024
    837 floor(1024, 1024) = 1024, floor(1026, 1024) = 1024, floor(-1026, 1024) = 64512
    838 floor(2048, 2048) = 2048, floor(2050, 2048) = 2048, floor(-2050, 2048) = 63488
    839 floor(4096, 4096) = 4096, floor(4098, 4096) = 4096, floor(-4098, 4096) = 61440
    840 floor(8192, 8192) = 8192, floor(8194, 8192) = 8192, floor(-8194, 8192) = 57344
    841 floor(16384, 16384) = 16384, floor(16386, 16384) = 16384, floor(-16386, 16384) = 49152
    842 floor(-32768, -32768) = 32768, floor(-32766, -32768) = 0, floor(32766, -32768) = 0
     827floor(1, 1) = 1, floor(3, 1) = 3, floor(-3, 1) = -3
     828floor(2, 2) = 2, floor(4, 2) = 4, floor(-4, 2) = -4
     829floor(4, 4) = 4, floor(6, 4) = 4, floor(-6, 4) = -4
     830floor(8, 8) = 8, floor(10, 8) = 8, floor(-10, 8) = -8
     831floor(16, 16) = 16, floor(18, 16) = 16, floor(-18, 16) = -16
     832floor(32, 32) = 32, floor(34, 32) = 32, floor(-34, 32) = -32
     833floor(64, 64) = 64, floor(66, 64) = 64, floor(-66, 64) = -64
     834floor(128, 128) = 128, floor(130, 128) = 128, floor(-130, 128) = -128
     835floor(256, 256) = 256, floor(258, 256) = 256, floor(-258, 256) = -256
     836floor(512, 512) = 512, floor(514, 512) = 512, floor(-514, 512) = -512
     837floor(1024, 1024) = 1024, floor(1026, 1024) = 1024, floor(-1026, 1024) = -1024
     838floor(2048, 2048) = 2048, floor(2050, 2048) = 2048, floor(-2050, 2048) = -2048
     839floor(4096, 4096) = 4096, floor(4098, 4096) = 4096, floor(-4098, 4096) = -4096
     840floor(8192, 8192) = 8192, floor(8194, 8192) = 8192, floor(-8194, 8192) = -8192
     841floor(16384, 16384) = 16384, floor(16386, 16384) = 16384, floor(-16386, 16384) = -16384
     842floor(-32768, -32768) = -32768, floor(-32766, -32768) = 0, floor(32766, -32768) = 0
    843843
    844844unsigned short int
     
    16031603ceiling(16, 16) = 1, ceiling(18, 16) = 2, ceiling(-18, 16) = 0
    16041604ceiling(32, 32) = 1, ceiling(34, 32) = 2, ceiling(-34, 32) = 0
    1605 ceiling(64, 64) = 1, ceiling(66, 64) = -1, ceiling(-66, 64) = 0
    1606 ceiling(-128, -128) = 0, ceiling(-126, -128) = 0, ceiling(126, -128) = 0
     1605ceiling(64, 64) = 1, ceiling(66, 64) = 2, ceiling(-66, 64) = 0
     1606ceiling(-128, -128) = 2, ceiling(-126, -128) = 1, ceiling(126, -128) = 0
    16071607
    16081608unsigned char
     
    16141614ceiling(32, 32) = 1, ceiling(34, 32) = 2, ceiling(222, 32) = 7
    16151615ceiling(64, 64) = 1, ceiling(66, 64) = 2, ceiling(190, 64) = 3
    1616 ceiling(128, 128) = 1, ceiling(130, 128) = 0, ceiling(126, 128) = 1
     1616ceiling(128, 128) = 1, ceiling(130, 128) = 2, ceiling(126, 128) = 1
    16171617
    16181618short int
    1619 ceiling(1, 1) = 1, ceiling(3, 1) = 3, ceiling(-3, 1) = 65533
    1620 ceiling(2, 2) = 1, ceiling(4, 2) = 2, ceiling(-4, 2) = 65535
     1619ceiling(1, 1) = 1, ceiling(3, 1) = 3, ceiling(-3, 1) = -3
     1620ceiling(2, 2) = 1, ceiling(4, 2) = 2, ceiling(-4, 2) = -1
    16211621ceiling(4, 4) = 1, ceiling(6, 4) = 2, ceiling(-6, 4) = 0
    16221622ceiling(8, 8) = 1, ceiling(10, 8) = 2, ceiling(-10, 8) = 0
     
    16311631ceiling(4096, 4096) = 1, ceiling(4098, 4096) = 2, ceiling(-4098, 4096) = 0
    16321632ceiling(8192, 8192) = 1, ceiling(8194, 8192) = 2, ceiling(-8194, 8192) = 0
    1633 ceiling(16384, 16384) = 1, ceiling(16386, 16384) = 65535, ceiling(-16386, 16384) = 0
    1634 ceiling(-32768, -32768) = 0, ceiling(-32766, -32768) = 0, ceiling(32766, -32768) = 0
     1633ceiling(16384, 16384) = 1, ceiling(16386, 16384) = 2, ceiling(-16386, 16384) = 0
     1634ceiling(-32768, -32768) = 2, ceiling(-32766, -32768) = 1, ceiling(32766, -32768) = 0
    16351635
    16361636unsigned short int
     
    16501650ceiling(8192, 8192) = 1, ceiling(8194, 8192) = 2, ceiling(57342, 8192) = 7
    16511651ceiling(16384, 16384) = 1, ceiling(16386, 16384) = 2, ceiling(49150, 16384) = 3
    1652 ceiling(32768, 32768) = 1, ceiling(32770, 32768) = 0, ceiling(32766, 32768) = 1
     1652ceiling(32768, 32768) = 1, ceiling(32770, 32768) = 2, ceiling(32766, 32768) = 1
    16531653
    16541654int
Note: See TracChangeset for help on using the changeset viewer.