Home | History | Annotate | Download | only in atomic

Lines Matching refs:after

25 // The struct fields x.before and x.after check that the
47 after int32
50 x.after = magic32
59 if x.before != magic32 || x.after != magic32 {
60 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
68 after uint32
71 x.after = magic32
80 if x.before != magic32 || x.after != magic32 {
81 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
92 after int64
95 x.after = magic64
104 if x.before != magic64 || x.after != magic64 {
105 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, uint64(magic64), uint64(magic64))
116 after uint64
119 x.after = magic64
128 if x.before != magic64 || x.after != magic64 {
129 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, uint64(magic64), uint64(magic64))
137 after uintptr
142 x.after = magicptr
151 if x.before != magicptr || x.after != magicptr {
152 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magicptr, magicptr)
160 after uintptr
165 x.after = magicptr
174 if x.before != magicptr || x.after != magicptr {
175 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magicptr, magicptr)
183 after int32
186 x.after = magic32
195 if x.before != magic32 || x.after != magic32 {
196 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
204 after uint32
207 x.after = magic32
216 if x.before != magic32 || x.after != magic32 {
217 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
228 after int64
231 x.after = magic64
240 if x.before != magic64 || x.after != magic64 {
241 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, int64(magic64), int64(magic64))
252 after uint64
255 x.after = magic64
264 if x.before != magic64 || x.after != magic64 {
265 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, uint64(magic64), uint64(magic64))
273 after uintptr
278 x.after = magicptr
287 if x.before != magicptr || x.after != magicptr {
288 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magicptr, magicptr)
296 after int32
299 x.after = magic32
306 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
313 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
316 if x.before != magic32 || x.after != magic32 {
317 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
325 after uint32
328 x.after = magic32
335 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
342 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
345 if x.before != magic32 || x.after != magic32 {
346 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
357 after int64
360 x.after = magic64
367 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
374 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
377 if x.before != magic64 || x.after != magic64 {
378 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, uint64(magic64), uint64(magic64))
389 after uint64
392 x.after = magic64
399 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
406 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
409 if x.before != magic64 || x.after != magic64 {
410 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, uint64(magic64), uint64(magic64))
422 after uintptr
427 x.after = magicptr
434 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
441 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
444 if x.before != magicptr || x.after != magicptr {
445 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magicptr, magicptr)
453 after uintptr
458 x.after = magicptr
465 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
472 t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
475 if x.before != magicptr || x.after != magicptr {
476 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magicptr, magicptr)
484 after int32
487 x.after = magic32
495 if x.before != magic32 || x.after != magic32 {
496 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
504 after uint32
507 x.after = magic32
515 if x.before != magic32 || x.after != magic32 {
516 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
527 after int64
530 x.after = magic64
538 if x.before != magic64 || x.after != magic64 {
539 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, uint64(magic64), uint64(magic64))
550 after uint64
553 x.after = magic64
561 if x.before != magic64 || x.after != magic64 {
562 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, uint64(magic64), uint64(magic64))
570 after uintptr
575 x.after = magicptr
583 if x.before != magicptr || x.after != magicptr {
584 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magicptr, magicptr)
592 after uintptr
597 x.after = magicptr
605 if x.before != magicptr || x.after != magicptr {
606 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magicptr, magicptr)
614 after int32
617 x.after = magic32
626 if x.before != magic32 || x.after != magic32 {
627 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
635 after uint32
638 x.after = magic32
647 if x.before != magic32 || x.after != magic32 {
648 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
659 after int64
662 x.after = magic64
671 if x.before != magic64 || x.after != magic64 {
672 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, uint64(magic64), uint64(magic64))
683 after uint64
686 x.after = magic64
695 if x.before != magic64 || x.after != magic64 {
696 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, uint64(magic64), uint64(magic64))
704 after uintptr
709 x.after = magicptr
718 if x.before != magicptr || x.after != magicptr {
719 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magicptr, magicptr)
727 after uintptr
732 x.after = magicptr
741 if x.before != magicptr || x.after != magicptr {
742 t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magicptr, magicptr)
750 // uses the atomic operation to add 1 to a value. After running