diff options
| author | Marijn Tamis <[email protected]> | 2017-04-28 14:19:07 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2017-04-28 14:19:07 +0200 |
| commit | b350eb5f4d44e8448115796144375d79438d74ae (patch) | |
| tree | 8e102e8c28f45a1b87bd335ceee4f33c3d4ee7c2 /NvCloth/src/NvSimd/NvSimd4f.h | |
| parent | Add visual samples. (diff) | |
| download | nvcloth-b350eb5f4d44e8448115796144375d79438d74ae.tar.xz nvcloth-b350eb5f4d44e8448115796144375d79438d74ae.zip | |
NvCloth 1.1.0 Release. (22041545)
Diffstat (limited to 'NvCloth/src/NvSimd/NvSimd4f.h')
| -rw-r--r-- | NvCloth/src/NvSimd/NvSimd4f.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/NvCloth/src/NvSimd/NvSimd4f.h b/NvCloth/src/NvSimd/NvSimd4f.h index cb863e7..7e2dde6 100644 --- a/NvCloth/src/NvSimd/NvSimd4f.h +++ b/NvCloth/src/NvSimd/NvSimd4f.h @@ -76,12 +76,18 @@ struct Simd4fTupleFactory Simd4fTupleFactory(float x, float y, float z, float w) // c++11: : tuple{ x, y, z, w } { - tuple[0] = x, tuple[1] = y, tuple[2] = z, tuple[3] = w; + tuple[0] = x; + tuple[1] = y; + tuple[2] = z; + tuple[3] = w; } Simd4fTupleFactory(unsigned x, unsigned y, unsigned z, unsigned w) { unsigned* ptr = reinterpret_cast<unsigned*>(tuple); - ptr[0] = x, ptr[1] = y, ptr[2] = z, ptr[3] = w; + ptr[0] = x; + ptr[1] = y; + ptr[2] = z; + ptr[3] = w; } Simd4fTupleFactory& operator = (const Simd4fTupleFactory&); // not implemented inline operator Simd4f() const; |