File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
system/include/emscripten Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,32 @@ _mm_load_ps(const float *__p)
37
37
return * (__m128 * )__p ;
38
38
}
39
39
40
+ static __inline__ __m128 __attribute__((__always_inline__ ))
41
+ _mm_loadu_ps (const float * __p )
42
+ {
43
+ struct __unaligned {
44
+ __m128 __v ;
45
+ } __attribute__((__packed__ , __may_alias__ ));
46
+
47
+ return ((struct __unaligned * )__p )-> __v ;
48
+ }
49
+
40
50
static __inline__ void __attribute__((__always_inline__ ))
41
51
_mm_store_ps (float * __p , __m128 __a )
42
52
{
43
53
* (__m128 * )__p = __a ;
44
54
}
45
55
56
+ static __inline__ void __attribute__((__always_inline__ ))
57
+ _mm_storeu_ps (float * __p , __m128 __a )
58
+ {
59
+ struct __unaligned {
60
+ __m128 __v ;
61
+ } __attribute__((__packed__ , __may_alias__ ));
62
+
63
+ ((struct __unaligned * )__p )-> __v = __a ;
64
+ }
65
+
46
66
static __inline__ int __attribute__((__always_inline__ ))
47
67
_mm_movemask_ps (__m128 __a )
48
68
{
You can’t perform that action at this time.
0 commit comments