Cycles: Pass m128 vectors by const reference
This commit is contained in:
parent
e1909958d9
commit
3f61280327
@ -180,7 +180,7 @@ struct ccl_try_align(16) int3 {
|
||||
};
|
||||
|
||||
__forceinline int3() {}
|
||||
__forceinline int3(const __m128i a) : m128(a) {}
|
||||
__forceinline int3(const __m128i& a) : m128(a) {}
|
||||
__forceinline operator const __m128i&(void) const { return m128; }
|
||||
__forceinline operator __m128i&(void) { return m128; }
|
||||
|
||||
@ -202,7 +202,7 @@ struct ccl_try_align(16) int4 {
|
||||
};
|
||||
|
||||
__forceinline int4() {}
|
||||
__forceinline int4(const __m128i a) : m128(a) {}
|
||||
__forceinline int4(const __m128i& a) : m128(a) {}
|
||||
__forceinline operator const __m128i&(void) const { return m128; }
|
||||
__forceinline operator __m128i&(void) { return m128; }
|
||||
|
||||
@ -274,7 +274,7 @@ struct ccl_try_align(16) float4 {
|
||||
};
|
||||
|
||||
__forceinline float4() {}
|
||||
__forceinline float4(const __m128 a) : m128(a) {}
|
||||
__forceinline float4(const __m128& a) : m128(a) {}
|
||||
__forceinline operator const __m128&(void) const { return m128; }
|
||||
__forceinline operator __m128&(void) { return m128; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user