@@ -66,7 +66,7 @@ export class TableLookup extends Node<frontend.node.TableLookup> {
66
66
out . push ( '}' ) ;
67
67
}
68
68
69
- private buildSSE2 ( out : string [ ] ) : boolean {
69
+ private buildSSSE3 ( out : string [ ] ) : boolean {
70
70
// return false;
71
71
const ctx = this . compilation ;
72
72
@@ -99,10 +99,10 @@ export class TableLookup extends Node<frontend.node.TableLookup> {
99
99
return false ;
100
100
}
101
101
102
- const blob1 = ctx . blob ( Buffer . from ( result [ 0 ] ) , SSE_ALIGNMENT , SseFamily . SSE2 ) ;
103
- const blob2 = ctx . blob ( Buffer . from ( result [ 1 ] ) , SSE_ALIGNMENT , SseFamily . SSE2 ) ;
102
+ const blob1 = ctx . blob ( Buffer . from ( result [ 0 ] ) , SSE_ALIGNMENT , SseFamily . SSSE3 ) ;
103
+ const blob2 = ctx . blob ( Buffer . from ( result [ 1 ] ) , SSE_ALIGNMENT , SseFamily . SSSE3 ) ;
104
104
105
- out . push ( '#ifdef __SSE2__ ' ) ;
105
+ out . push ( '#ifdef __SSSE3__ ' ) ;
106
106
out . push ( `if (${ ctx . endPosArg ( ) } - ${ ctx . posArg ( ) } >= 16) {` ) ;
107
107
out . push ( ' int index;' ) ;
108
108
out . push ( ' __m128i lut_tlo;' ) ;
@@ -141,7 +141,7 @@ export class TableLookup extends Node<frontend.node.TableLookup> {
141
141
} ) ;
142
142
ctx . indent ( out , tmp , ' ' ) ;
143
143
out . push ( '}' ) ;
144
- out . push ( '#endif /* __SSE2__ */' ) ;
144
+ out . push ( '#endif /* __SSSE3__ */' ) ;
145
145
return true ;
146
146
}
147
147
@@ -248,7 +248,7 @@ export class TableLookup extends Node<frontend.node.TableLookup> {
248
248
}
249
249
250
250
private buildSSE ( out : string [ ] ) : boolean {
251
- if ( this . buildSSE2 ( out ) ) {
251
+ if ( this . buildSSSE3 ( out ) ) {
252
252
return true ;
253
253
}
254
254
return this . buildSSE42 ( out ) ;
0 commit comments