We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c010aed commit d3df349Copy full SHA for d3df349
src/implementation/c/compilation.ts
@@ -77,6 +77,9 @@ export class Compilation {
77
align = ` ALIGN(${blob.alignment})`;
78
}
79
80
+ if (blob.alignment) {
81
+ out.push('#ifdef __SSE4_2__');
82
+ }
83
out.push(`static const unsigned char${align} ${blob.name}[] = {`);
84
85
for (let i = 0; i < buffer.length; i += BLOB_GROUP_SIZE) {
@@ -103,6 +106,9 @@ export class Compilation {
103
106
104
107
105
108
out.push(`};`);
109
110
+ out.push('#endif /* __SSE4_2__ */');
111
112
113
out.push('');
114
0 commit comments