Lines Matching refs:overflow
46 test {BITFIELD unsigned overflow wrap} {
50 lappend results [r bitfield bits overflow wrap incrby u8 #0 257]
52 lappend results [r bitfield bits overflow wrap incrby u8 #0 255]
56 test {BITFIELD unsigned overflow sat} {
60 lappend results [r bitfield bits overflow sat incrby u8 #0 257]
62 lappend results [r bitfield bits overflow sat incrby u8 #0 -255]
66 test {BITFIELD signed overflow wrap} {
70 lappend results [r bitfield bits overflow wrap incrby i8 #0 257]
72 lappend results [r bitfield bits overflow wrap incrby i8 #0 255]
76 test {BITFIELD signed overflow sat} {
80 lappend results [r bitfield bits overflow sat incrby i8 #0 257]
82 lappend results [r bitfield bits overflow sat incrby i8 #0 -255]
86 test {BITFIELD overflow detection fuzzing} {
118 set overflow 0
119 if {$value > $max || $value < $min} {set overflow 1}
120 if {($value + $increment) > $max} {set overflow 1}
121 if {($value + $increment) < $min} {set overflow 1}
124 set res1 [r bitfield bits overflow fail set $type 0 $value]
125 set res2 [r bitfield bits overflow fail incrby $type 0 $increment]
127 if {$overflow && [lindex $res1 0] ne {} &&
138 test {BITFIELD overflow wrap fuzzing} {
171 r bitfield bits overflow wrap set $type 0 $value
172 r bitfield bits overflow wrap incrby $type 0 $increment