@@ -276,24 +276,52 @@ wasm_i8x16_make(int8_t __c0, int8_t __c1, int8_t __c2, int8_t __c3, int8_t __c4,
276
276
__c12 , __c13 , __c14 , __c15 };
277
277
}
278
278
279
+ static __inline__ v128_t __DEFAULT_FN_ATTRS
280
+ wasm_u8x16_make (uint8_t __c0 , uint8_t __c1 , uint8_t __c2 , uint8_t __c3 ,
281
+ uint8_t __c4 , uint8_t __c5 , uint8_t __c6 , uint8_t __c7 ,
282
+ uint8_t __c8 , uint8_t __c9 , uint8_t __c10 , uint8_t __c11 ,
283
+ uint8_t __c12 , uint8_t __c13 , uint8_t __c14 , uint8_t __c15 ) {
284
+ return (v128_t )(__u8x16 ){__c0 , __c1 , __c2 , __c3 , __c4 , __c5 ,
285
+ __c6 , __c7 , __c8 , __c9 , __c10 , __c11 ,
286
+ __c12 , __c13 , __c14 , __c15 };
287
+ }
288
+
279
289
static __inline__ v128_t __DEFAULT_FN_ATTRS
280
290
wasm_i16x8_make (int16_t __c0 , int16_t __c1 , int16_t __c2 , int16_t __c3 ,
281
291
int16_t __c4 , int16_t __c5 , int16_t __c6 , int16_t __c7 ) {
282
292
return (v128_t )(__i16x8 ){__c0 , __c1 , __c2 , __c3 , __c4 , __c5 , __c6 , __c7 };
283
293
}
284
294
295
+ static __inline__ v128_t __DEFAULT_FN_ATTRS
296
+ wasm_u16x8_make (uint16_t __c0 , uint16_t __c1 , uint16_t __c2 , uint16_t __c3 ,
297
+ uint16_t __c4 , uint16_t __c5 , uint16_t __c6 , uint16_t __c7 ) {
298
+ return (v128_t )(__u16x8 ){__c0 , __c1 , __c2 , __c3 , __c4 , __c5 , __c6 , __c7 };
299
+ }
300
+
285
301
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i32x4_make (int32_t __c0 ,
286
302
int32_t __c1 ,
287
303
int32_t __c2 ,
288
304
int32_t __c3 ) {
289
305
return (v128_t )(__i32x4 ){__c0 , __c1 , __c2 , __c3 };
290
306
}
291
307
308
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u32x4_make (uint32_t __c0 ,
309
+ uint32_t __c1 ,
310
+ uint32_t __c2 ,
311
+ uint32_t __c3 ) {
312
+ return (v128_t )(__u32x4 ){__c0 , __c1 , __c2 , __c3 };
313
+ }
314
+
292
315
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i64x2_make (int64_t __c0 ,
293
316
int64_t __c1 ) {
294
317
return (v128_t )(__i64x2 ){__c0 , __c1 };
295
318
}
296
319
320
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u64x2_make (uint64_t __c0 ,
321
+ uint64_t __c1 ) {
322
+ return (v128_t )(__u64x2 ){__c0 , __c1 };
323
+ }
324
+
297
325
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_f32x4_make (float __c0 ,
298
326
float __c1 ,
299
327
float __c2 ,
@@ -324,6 +352,24 @@ wasm_i8x16_const(int8_t __c0, int8_t __c1, int8_t __c2, int8_t __c3,
324
352
__c12 , __c13 , __c14 , __c15 };
325
353
}
326
354
355
+ static __inline__ v128_t __DEFAULT_FN_ATTRS
356
+ wasm_u8x16_const (uint8_t __c0 , uint8_t __c1 , uint8_t __c2 , uint8_t __c3 ,
357
+ uint8_t __c4 , uint8_t __c5 , uint8_t __c6 , uint8_t __c7 ,
358
+ uint8_t __c8 , uint8_t __c9 , uint8_t __c10 , uint8_t __c11 ,
359
+ uint8_t __c12 , uint8_t __c13 , uint8_t __c14 , uint8_t __c15 )
360
+ __REQUIRE_CONSTANT (__c0 ) __REQUIRE_CONSTANT (__c1 ) __REQUIRE_CONSTANT (__c2 )
361
+ __REQUIRE_CONSTANT (__c3 ) __REQUIRE_CONSTANT (__c4 )
362
+ __REQUIRE_CONSTANT (__c5 ) __REQUIRE_CONSTANT (__c6 )
363
+ __REQUIRE_CONSTANT (__c7 ) __REQUIRE_CONSTANT (__c8 )
364
+ __REQUIRE_CONSTANT (__c9 ) __REQUIRE_CONSTANT (__c10 )
365
+ __REQUIRE_CONSTANT (__c11 ) __REQUIRE_CONSTANT (__c12 )
366
+ __REQUIRE_CONSTANT (__c13 ) __REQUIRE_CONSTANT (__c14 )
367
+ __REQUIRE_CONSTANT (__c15 ) {
368
+ return (v128_t )(__u8x16 ){__c0 , __c1 , __c2 , __c3 , __c4 , __c5 ,
369
+ __c6 , __c7 , __c8 , __c9 , __c10 , __c11 ,
370
+ __c12 , __c13 , __c14 , __c15 };
371
+ }
372
+
327
373
static __inline__ v128_t __DEFAULT_FN_ATTRS
328
374
wasm_i16x8_const (int16_t __c0 , int16_t __c1 , int16_t __c2 , int16_t __c3 ,
329
375
int16_t __c4 , int16_t __c5 , int16_t __c6 , int16_t __c7 )
@@ -334,19 +380,42 @@ wasm_i16x8_const(int16_t __c0, int16_t __c1, int16_t __c2, int16_t __c3,
334
380
return (v128_t )(__i16x8 ){__c0 , __c1 , __c2 , __c3 , __c4 , __c5 , __c6 , __c7 };
335
381
}
336
382
383
+ static __inline__ v128_t __DEFAULT_FN_ATTRS
384
+ wasm_u16x8_const (uint16_t __c0 , uint16_t __c1 , uint16_t __c2 , uint16_t __c3 ,
385
+ uint16_t __c4 , uint16_t __c5 , uint16_t __c6 , uint16_t __c7 )
386
+ __REQUIRE_CONSTANT (__c0 ) __REQUIRE_CONSTANT (__c1 ) __REQUIRE_CONSTANT (__c2 )
387
+ __REQUIRE_CONSTANT (__c3 ) __REQUIRE_CONSTANT (__c4 )
388
+ __REQUIRE_CONSTANT (__c5 ) __REQUIRE_CONSTANT (__c6 )
389
+ __REQUIRE_CONSTANT (__c7 ) {
390
+ return (v128_t )(__u16x8 ){__c0 , __c1 , __c2 , __c3 , __c4 , __c5 , __c6 , __c7 };
391
+ }
392
+
337
393
static __inline__ v128_t __DEFAULT_FN_ATTRS
338
394
wasm_i32x4_const (int32_t __c0 , int32_t __c1 , int32_t __c2 , int32_t __c3 )
339
395
__REQUIRE_CONSTANT (__c0 ) __REQUIRE_CONSTANT (__c1 ) __REQUIRE_CONSTANT (__c2 )
340
396
__REQUIRE_CONSTANT (__c3 ) {
341
397
return (v128_t )(__i32x4 ){__c0 , __c1 , __c2 , __c3 };
342
398
}
343
399
400
+ static __inline__ v128_t __DEFAULT_FN_ATTRS
401
+ wasm_u32x4_const (uint32_t __c0 , uint32_t __c1 , uint32_t __c2 , uint32_t __c3 )
402
+ __REQUIRE_CONSTANT (__c0 ) __REQUIRE_CONSTANT (__c1 ) __REQUIRE_CONSTANT (__c2 )
403
+ __REQUIRE_CONSTANT (__c3 ) {
404
+ return (v128_t )(__u32x4 ){__c0 , __c1 , __c2 , __c3 };
405
+ }
406
+
344
407
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i64x2_const (int64_t __c0 ,
345
408
int64_t __c1 )
346
409
__REQUIRE_CONSTANT (__c0 ) __REQUIRE_CONSTANT (__c1 ) {
347
410
return (v128_t )(__i64x2 ){__c0 , __c1 };
348
411
}
349
412
413
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u64x2_const (uint64_t __c0 ,
414
+ uint64_t __c1 )
415
+ __REQUIRE_CONSTANT (__c0 ) __REQUIRE_CONSTANT (__c1 ) {
416
+ return (v128_t )(__u64x2 ){__c0 , __c1 };
417
+ }
418
+
350
419
static __inline__ v128_t __DEFAULT_FN_ATTRS
351
420
wasm_f32x4_const (float __c0 , float __c1 , float __c2 , float __c3 )
352
421
__REQUIRE_CONSTANT (__c0 ) __REQUIRE_CONSTANT (__c1 ) __REQUIRE_CONSTANT (__c2 )
@@ -366,21 +435,42 @@ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i8x16_const_splat(int8_t __c)
366
435
__c , __c , __c , __c , __c , __c , __c , __c };
367
436
}
368
437
438
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u8x16_const_splat (uint8_t __c )
439
+ __REQUIRE_CONSTANT (__c ) {
440
+ return (v128_t )(__u8x16 ){__c , __c , __c , __c , __c , __c , __c , __c ,
441
+ __c , __c , __c , __c , __c , __c , __c , __c };
442
+ }
443
+
369
444
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i16x8_const_splat (int16_t __c )
370
445
__REQUIRE_CONSTANT (__c ) {
371
446
return (v128_t )(__i16x8 ){__c , __c , __c , __c , __c , __c , __c , __c };
372
447
}
373
448
449
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u16x8_const_splat (uint16_t __c )
450
+ __REQUIRE_CONSTANT (__c ) {
451
+ return (v128_t )(__u16x8 ){__c , __c , __c , __c , __c , __c , __c , __c };
452
+ }
453
+
374
454
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i32x4_const_splat (int32_t __c )
375
455
__REQUIRE_CONSTANT (__c ) {
376
456
return (v128_t )(__i32x4 ){__c , __c , __c , __c };
377
457
}
378
458
459
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u32x4_const_splat (uint32_t __c )
460
+ __REQUIRE_CONSTANT (__c ) {
461
+ return (v128_t )(__u32x4 ){__c , __c , __c , __c };
462
+ }
463
+
379
464
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i64x2_const_splat (int64_t __c )
380
465
__REQUIRE_CONSTANT (__c ) {
381
466
return (v128_t )(__i64x2 ){__c , __c };
382
467
}
383
468
469
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u64x2_const_splat (uint64_t __c )
470
+ __REQUIRE_CONSTANT (__c ) {
471
+ return (v128_t )(__u64x2 ){__c , __c };
472
+ }
473
+
384
474
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_f32x4_const_splat (float __c )
385
475
__REQUIRE_CONSTANT (__c ) {
386
476
return (v128_t )(__f32x4 ){__c , __c , __c , __c };
@@ -396,6 +486,11 @@ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i8x16_splat(int8_t __a) {
396
486
__a , __a , __a , __a , __a , __a , __a , __a };
397
487
}
398
488
489
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u8x16_splat (uint8_t __a ) {
490
+ return (v128_t )(__u8x16 ){__a , __a , __a , __a , __a , __a , __a , __a ,
491
+ __a , __a , __a , __a , __a , __a , __a , __a };
492
+ }
493
+
399
494
static __inline__ int8_t __DEFAULT_FN_ATTRS wasm_i8x16_extract_lane (v128_t __a ,
400
495
int __i )
401
496
__REQUIRE_CONSTANT (__i ) {
@@ -417,10 +512,23 @@ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i8x16_replace_lane(v128_t __a,
417
512
return (v128_t )__v ;
418
513
}
419
514
515
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u8x16_replace_lane (v128_t __a ,
516
+ int __i ,
517
+ uint8_t __b )
518
+ __REQUIRE_CONSTANT (__i ) {
519
+ __u8x16 __v = (__u8x16 )__a ;
520
+ __v [__i ] = __b ;
521
+ return (v128_t )__v ;
522
+ }
523
+
420
524
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i16x8_splat (int16_t __a ) {
421
525
return (v128_t )(__i16x8 ){__a , __a , __a , __a , __a , __a , __a , __a };
422
526
}
423
527
528
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u16x8_splat (uint16_t __a ) {
529
+ return (v128_t )(__u16x8 ){__a , __a , __a , __a , __a , __a , __a , __a };
530
+ }
531
+
424
532
static __inline__ int16_t __DEFAULT_FN_ATTRS wasm_i16x8_extract_lane (v128_t __a ,
425
533
int __i )
426
534
__REQUIRE_CONSTANT (__i ) {
@@ -441,16 +549,32 @@ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i16x8_replace_lane(v128_t __a,
441
549
return (v128_t )__v ;
442
550
}
443
551
552
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u16x8_replace_lane (
553
+ v128_t __a , int __i , uint16_t __b ) __REQUIRE_CONSTANT (__i ) {
554
+ __u16x8 __v = (__u16x8 )__a ;
555
+ __v [__i ] = __b ;
556
+ return (v128_t )__v ;
557
+ }
558
+
444
559
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i32x4_splat (int32_t __a ) {
445
560
return (v128_t )(__i32x4 ){__a , __a , __a , __a };
446
561
}
447
562
563
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u32x4_splat (uint32_t __a ) {
564
+ return (v128_t )(__u32x4 ){__a , __a , __a , __a };
565
+ }
566
+
448
567
static __inline__ int32_t __DEFAULT_FN_ATTRS wasm_i32x4_extract_lane (v128_t __a ,
449
568
int __i )
450
569
__REQUIRE_CONSTANT (__i ) {
451
570
return ((__i32x4 )__a )[__i ];
452
571
}
453
572
573
+ static __inline__ uint32_t __DEFAULT_FN_ATTRS
574
+ wasm_u32x4_extract_lane (v128_t __a , int __i ) __REQUIRE_CONSTANT (__i ) {
575
+ return ((__u32x4 )__a )[__i ];
576
+ }
577
+
454
578
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i32x4_replace_lane (v128_t __a ,
455
579
int __i ,
456
580
int32_t __b )
@@ -460,16 +584,32 @@ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i32x4_replace_lane(v128_t __a,
460
584
return (v128_t )__v ;
461
585
}
462
586
587
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u32x4_replace_lane (
588
+ v128_t __a , int __i , uint32_t __b ) __REQUIRE_CONSTANT (__i ) {
589
+ __u32x4 __v = (__u32x4 )__a ;
590
+ __v [__i ] = __b ;
591
+ return (v128_t )__v ;
592
+ }
593
+
463
594
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i64x2_splat (int64_t __a ) {
464
595
return (v128_t )(__i64x2 ){__a , __a };
465
596
}
466
597
598
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u64x2_splat (uint64_t __a ) {
599
+ return (v128_t )(__u64x2 ){__a , __a };
600
+ }
601
+
467
602
static __inline__ int64_t __DEFAULT_FN_ATTRS wasm_i64x2_extract_lane (v128_t __a ,
468
603
int __i )
469
604
__REQUIRE_CONSTANT (__i ) {
470
605
return ((__i64x2 )__a )[__i ];
471
606
}
472
607
608
+ static __inline__ uint64_t __DEFAULT_FN_ATTRS
609
+ wasm_u64x2_extract_lane (v128_t __a , int __i ) __REQUIRE_CONSTANT (__i ) {
610
+ return ((__u64x2 )__a )[__i ];
611
+ }
612
+
473
613
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i64x2_replace_lane (v128_t __a ,
474
614
int __i ,
475
615
int64_t __b )
@@ -479,6 +619,13 @@ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i64x2_replace_lane(v128_t __a,
479
619
return (v128_t )__v ;
480
620
}
481
621
622
+ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_u64x2_replace_lane (
623
+ v128_t __a , int __i , uint64_t __b ) __REQUIRE_CONSTANT (__i ) {
624
+ __u64x2 __v = (__u64x2 )__a ;
625
+ __v [__i ] = __b ;
626
+ return (v128_t )__v ;
627
+ }
628
+
482
629
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_f32x4_splat (float __a ) {
483
630
return (v128_t )(__f32x4 ){__a , __a , __a , __a };
484
631
}
0 commit comments