1
- // automatically generated by rust-bindgen
1
+ /* automatically generated by rust-bindgen */
2
2
3
3
#[ repr( C ) ]
4
4
#[ derive( Debug , Copy , Clone ) ]
5
5
pub struct pair < _T1 , _T2 > {
6
6
pub first : _T1 ,
7
7
pub second : _T2 ,
8
+ pub _phantom_0 : :: std:: marker:: PhantomData < :: std:: cell:: UnsafeCell < _T1 > > ,
9
+ pub _phantom_1 : :: std:: marker:: PhantomData < :: std:: cell:: UnsafeCell < _T2 > > ,
8
10
}
9
11
pub type pair_first_type < _T1 > = _T1 ;
10
12
pub type pair_second_type < _T2 > = _T2 ;
@@ -71,8 +73,12 @@ pub struct uint128_c_t {
71
73
}
72
74
#[ test]
73
75
fn bindgen_test_layout_uint128_c_t ( ) {
74
- assert_eq ! ( :: std:: mem:: size_of:: <uint128_c_t>( ) , 16usize ) ;
75
- assert_eq ! ( :: std:: mem:: align_of:: <uint128_c_t>( ) , 8usize ) ;
76
+ assert_eq ! ( :: std:: mem:: size_of:: <uint128_c_t>( ) ,
77
+ 16usize ,
78
+ concat!( "Size of: " , stringify!( uint128_c_t) ) ) ;
79
+ assert_eq ! ( :: std:: mem:: align_of:: <uint128_c_t>( ) ,
80
+ 8usize ,
81
+ concat!( "Alignment of " , stringify!( uint128_c_t) ) ) ;
76
82
}
77
83
impl Clone for uint128_c_t {
78
84
fn clone ( & self ) -> Self {
@@ -110,10 +116,6 @@ extern "C" {
110
116
seed : uint128_c_t )
111
117
-> uint128_c_t ;
112
118
}
113
- extern "C" {
114
- #[ link_name = "_Z17farmhash128_to_6411uint128_c_t" ]
115
- pub fn farmhash128_to_64 ( x : uint128_c_t ) -> u64 ;
116
- }
117
119
extern "C" {
118
120
pub fn farmhash_fingerprint32 ( s : * const :: std:: os:: raw:: c_char , len : usize ) -> u32 ;
119
121
}
@@ -123,14 +125,6 @@ extern "C" {
123
125
extern "C" {
124
126
pub fn farmhash_fingerprint128 ( s : * const :: std:: os:: raw:: c_char , len : usize ) -> uint128_c_t ;
125
127
}
126
- extern "C" {
127
- #[ link_name = "_Z32farmhash_fingerprint_uint128_c_t11uint128_c_t" ]
128
- pub fn farmhash_fingerprint_uint128_c_t ( x : uint128_c_t ) -> u64 ;
129
- }
130
- extern "C" {
131
- #[ link_name = "_Z29farmhash_fingerprint_uint64_tm" ]
132
- pub fn farmhash_fingerprint_uint64_t ( x : u64 ) -> u64 ;
133
- }
134
128
extern "C" {
135
129
#[ link_name = "_Z13metrohash64_1PKhmjPh" ]
136
130
pub fn metrohash64_1 ( key : * const u8 , len : u64 , seed : u32 , out : * mut u8 ) ;
@@ -163,30 +157,6 @@ extern "C" {
163
157
#[ link_name = "_Z17metrohash128crc_2PKhmjPh" ]
164
158
pub fn metrohash128crc_2 ( key : * const u8 , len : u64 , seed : u32 , out : * mut u8 ) ;
165
159
}
166
- extern "C" {
167
- #[ link_name = "_ZL18mum_hash_randomizem" ]
168
- pub fn mum_hash_randomize ( seed : u64 ) ;
169
- }
170
- extern "C" {
171
- #[ link_name = "_ZL13mum_hash_initm" ]
172
- pub fn mum_hash_init ( seed : u64 ) -> u64 ;
173
- }
174
- extern "C" {
175
- #[ link_name = "_ZL13mum_hash_stepmm" ]
176
- pub fn mum_hash_step ( h : u64 , key : u64 ) -> u64 ;
177
- }
178
- extern "C" {
179
- #[ link_name = "_ZL15mum_hash_finishm" ]
180
- pub fn mum_hash_finish ( h : u64 ) -> u64 ;
181
- }
182
- extern "C" {
183
- #[ link_name = "_ZL10mum_hash64mm" ]
184
- pub fn mum_hash64 ( key : u64 , seed : u64 ) -> usize ;
185
- }
186
- extern "C" {
187
- #[ link_name = "_ZL8mum_hashPKvmm" ]
188
- pub fn mum_hash ( key : * const :: std:: os:: raw:: c_void , len : usize , seed : u64 ) -> u64 ;
189
- }
190
160
extern "C" {
191
161
#[ link_name = "_Z11MurmurHash1PKvij" ]
192
162
pub fn MurmurHash1 ( key : * const :: std:: os:: raw:: c_void ,
@@ -270,10 +240,6 @@ extern "C" {
270
240
extern "C" {
271
241
pub fn t1ha_64be ( data : * const :: std:: os:: raw:: c_void , len : usize , seed : u64 ) -> u64 ;
272
242
}
273
- extern "C" {
274
- #[ link_name = "_Z9t1ha_64lePKvmm" ]
275
- pub fn t1ha_64le ( data : * const :: std:: os:: raw:: c_void , len : usize , seed : u64 ) -> u64 ;
276
- }
277
243
extern "C" {
278
244
pub fn t1ha_32le ( data : * const :: std:: os:: raw:: c_void , len : usize , seed : u64 ) -> u64 ;
279
245
}
@@ -283,22 +249,19 @@ extern "C" {
283
249
extern "C" {
284
250
pub fn t1ha_ia32crc ( data : * const :: std:: os:: raw:: c_void , len : usize , seed : u64 ) -> u64 ;
285
251
}
286
- pub const XXH_OK : _bindgen_ty_64 = _bindgen_ty_64:: XXH_OK ;
287
- pub const XXH_ERROR : _bindgen_ty_64 = _bindgen_ty_64:: XXH_ERROR ;
288
252
#[ repr( u32 ) ]
289
- /// ***************************
290
- /// Type
291
- /// **************************
253
+ /** ***************************
254
+ Type
255
+ *****************************/
292
256
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
293
- pub enum _bindgen_ty_64 {
257
+ pub enum XXH_errorcode {
294
258
XXH_OK = 0 ,
295
259
XXH_ERROR = 1 ,
296
260
}
297
- pub type XXH_errorcode = _bindgen_ty_64 ;
298
261
extern "C" {
299
- /// ***************************
300
- /// Simple Hash Functions
301
- /// **************************
262
+ /** ***************************
263
+ Simple Hash Functions
264
+ *****************************/
302
265
pub fn XXH32 ( input : * const :: std:: os:: raw:: c_void ,
303
266
length : usize ,
304
267
seed : :: std:: os:: raw:: c_uint )
@@ -310,41 +273,47 @@ extern "C" {
310
273
seed : :: std:: os:: raw:: c_ulonglong )
311
274
-> :: std:: os:: raw:: c_ulonglong ;
312
275
}
313
- /// ***************************
314
- /// Advanced Hash Functions
315
- /// **************************
276
+ /** ***************************
277
+ Advanced Hash Functions
278
+ *****************************/
316
279
#[ repr( C ) ]
317
280
#[ derive( Debug , Copy ) ]
318
- pub struct _bindgen_ty_65 {
281
+ pub struct XXH32_state_t {
319
282
pub ll : [ :: std:: os:: raw:: c_longlong ; 6usize ] ,
320
283
}
321
284
#[ test]
322
- fn bindgen_test_layout__bindgen_ty_65 ( ) {
323
- assert_eq ! ( :: std:: mem:: size_of:: <_bindgen_ty_65>( ) , 48usize ) ;
324
- assert_eq ! ( :: std:: mem:: align_of:: <_bindgen_ty_65>( ) , 8usize ) ;
325
- }
326
- impl Clone for _bindgen_ty_65 {
285
+ fn bindgen_test_layout_XXH32_state_t ( ) {
286
+ assert_eq ! ( :: std:: mem:: size_of:: <XXH32_state_t >( ) ,
287
+ 48usize ,
288
+ concat!( "Size of: " , stringify!( XXH32_state_t ) ) ) ;
289
+ assert_eq ! ( :: std:: mem:: align_of:: <XXH32_state_t >( ) ,
290
+ 8usize ,
291
+ concat!( "Alignment of " , stringify!( XXH32_state_t ) ) ) ;
292
+ }
293
+ impl Clone for XXH32_state_t {
327
294
fn clone ( & self ) -> Self {
328
295
* self
329
296
}
330
297
}
331
- pub type XXH32_state_t = _bindgen_ty_65 ;
332
298
#[ repr( C ) ]
333
299
#[ derive( Debug , Copy ) ]
334
- pub struct _bindgen_ty_66 {
300
+ pub struct XXH64_state_t {
335
301
pub ll : [ :: std:: os:: raw:: c_longlong ; 11usize ] ,
336
302
}
337
303
#[ test]
338
- fn bindgen_test_layout__bindgen_ty_66 ( ) {
339
- assert_eq ! ( :: std:: mem:: size_of:: <_bindgen_ty_66>( ) , 88usize ) ;
340
- assert_eq ! ( :: std:: mem:: align_of:: <_bindgen_ty_66>( ) , 8usize ) ;
341
- }
342
- impl Clone for _bindgen_ty_66 {
304
+ fn bindgen_test_layout_XXH64_state_t ( ) {
305
+ assert_eq ! ( :: std:: mem:: size_of:: <XXH64_state_t >( ) ,
306
+ 88usize ,
307
+ concat!( "Size of: " , stringify!( XXH64_state_t ) ) ) ;
308
+ assert_eq ! ( :: std:: mem:: align_of:: <XXH64_state_t >( ) ,
309
+ 8usize ,
310
+ concat!( "Alignment of " , stringify!( XXH64_state_t ) ) ) ;
311
+ }
312
+ impl Clone for XXH64_state_t {
343
313
fn clone ( & self ) -> Self {
344
314
* self
345
315
}
346
316
}
347
- pub type XXH64_state_t = _bindgen_ty_66 ;
348
317
extern "C" {
349
318
pub fn XXH32_createState ( ) -> * mut XXH32_state_t ;
350
319
}
@@ -436,9 +405,15 @@ extern "C" {
436
405
hash2 : * mut uint64 ) ;
437
406
}
438
407
#[ test]
439
- fn __bindgen_test_layout_template_1 ( ) {
408
+ fn __bindgen_test_layout_pair_instantiation_7216 ( ) {
440
409
assert_eq ! ( :: std:: mem:: size_of:: <pair<:: std:: os:: raw:: c_ulong, :: std:: os:: raw:: c_ulong>>( ) ,
441
- 16usize ) ;
410
+ 16usize ,
411
+ concat!( "Size of template specialization: " ,
412
+ stringify ! (
413
+ pair<:: std:: os:: raw:: c_ulong, :: std:: os:: raw:: c_ulong> ) ) ) ;
442
414
assert_eq ! ( :: std:: mem:: align_of:: <pair<:: std:: os:: raw:: c_ulong, :: std:: os:: raw:: c_ulong>>( ) ,
443
- 8usize ) ;
415
+ 8usize ,
416
+ concat!( "Alignment of template specialization: " ,
417
+ stringify ! (
418
+ pair<:: std:: os:: raw:: c_ulong, :: std:: os:: raw:: c_ulong> ) ) ) ;
444
419
}
0 commit comments