@@ -5,7 +5,6 @@ use std::arch::x86_64::*;
5
5
6
6
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
7
7
#[ target_feature( enable = "ssse3" ) ]
8
- #[ allow( unsafe_code) ]
9
8
unsafe fn idct8 ( data : & mut [ __m128i ; 8 ] ) {
10
9
// The fixed-point constants here are obtained by taking the fractional part of the constants
11
10
// from the non-SIMD implementation and scaling them up by 1<<15. This is because
@@ -83,7 +82,6 @@ unsafe fn idct8(data: &mut [__m128i; 8]) {
83
82
84
83
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
85
84
#[ target_feature( enable = "ssse3" ) ]
86
- #[ allow( unsafe_code) ]
87
85
unsafe fn transpose8 ( data : & mut [ __m128i ; 8 ] ) {
88
86
let d01l = _mm_unpacklo_epi16 ( data[ 0 ] , data[ 1 ] ) ;
89
87
let d23l = _mm_unpacklo_epi16 ( data[ 2 ] , data[ 3 ] ) ;
@@ -113,7 +111,6 @@ unsafe fn transpose8(data: &mut [__m128i; 8]) {
113
111
114
112
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
115
113
#[ target_feature( enable = "ssse3" ) ]
116
- #[ allow( unsafe_code) ]
117
114
pub unsafe fn dequantize_and_idct_block_8x8 (
118
115
coefficients : & [ i16 ] ,
119
116
quantization_table : & [ u16 ; 64 ] ,
@@ -178,7 +175,6 @@ pub unsafe fn dequantize_and_idct_block_8x8(
178
175
179
176
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
180
177
#[ target_feature( enable = "ssse3" ) ]
181
- #[ allow( unsafe_code) ]
182
178
pub unsafe fn color_convert_line_ycbcr ( y : & [ u8 ] , cb : & [ u8 ] , cr : & [ u8 ] , output : & mut [ u8 ] ) -> usize {
183
179
assert ! ( output. len( ) % 3 == 0 ) ;
184
180
let num = output. len ( ) / 3 ;
0 commit comments