stride对齐

int align(int x, int a) {
  return (x + (a-1)) & (~(a-1));
}
posted @ 2022-06-15 21:05  cyssmile  阅读(72)  评论(0)    收藏  举报