ruandao / blog

0 stars 0 forks source link

[16.1.19] [csapp 2.59] #145

Closed ruandao closed 8 years ago

ruandao commented 8 years ago

int x2_59(int x, int y) {
  // 2.59
  // printf("%.8x\n", x2_59(0x89abcdef, 0x76543210));
  return (x & 0xFFFFFF00) | ( y & 0x000000FF );
}