未验证 提交 2a0809e0 编写于 作者: A Advait Jain 提交者: GitHub

Generated aligned arrays. (#419)

BUG=Fixes #418
上级 3ef04f78
......@@ -34,7 +34,8 @@ def generate_file(out_fname, array_name, out_string, size):
out_cc_file.write('#include "' +
out_fname.split("genfiles/")[-1].replace('.cc', '.h') +
'"\n\n')
out_cc_file.write('const unsigned char ' + array_name + '[] = {')
out_cc_file.write('alignas(16) const unsigned char ' + array_name +
'[] = {')
out_cc_file.write(out_string)
out_cc_file.write('};\n')
out_cc_file.write('const unsigned int ' + array_name + '_size = ' +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册