有人参加过国内群拍吗?# PhotoGear - 摄影器材
W*e
1 楼
CC150那本书的16.9 题:
Write an aligned malloc & free function that takes number of bytes and
aligned byte (which is always power of 2)
EXAMPLE
align_malloc (1000,128) will return a memory address that is a multiple of
128 and that points to memory of size 1000 bytes.
aligned_free() will free memory allocated by align_malloc.
这题题目我看不懂啊,请教一下大家,能不能给个例子说明一个题目?谢谢了!
Write an aligned malloc & free function that takes number of bytes and
aligned byte (which is always power of 2)
EXAMPLE
align_malloc (1000,128) will return a memory address that is a multiple of
128 and that points to memory of size 1000 bytes.
aligned_free() will free memory allocated by align_malloc.
这题题目我看不懂啊,请教一下大家,能不能给个例子说明一个题目?谢谢了!