31.05.2013 Views

jeeconf-May2013-concurrency

jeeconf-May2013-concurrency

jeeconf-May2013-concurrency

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Дело о порванных шортах: #4<br />

short t = short_load (s.x);<br />

r.r1 = byte_store ( and ( shift (t, 0), 0 xFF )));<br />

r.r2 = byte_store ( and ( shift (t, 8), 0 xFF )));<br />

...превращается в:<br />

short t = short_load (s.x);<br />

r.r1 = byte_store (t);<br />

r.r2 = byte_store ( shift (t, 8));<br />

...превращается в:<br />

r.r1 = byte_store ( unsigned_load(s.x ));<br />

r.r2 = byte_store ( shift ( signed_load(s.x), 8));<br />

Slide 40/73. Copyright c○ 2013, Oracle and/or its affiliates. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!