aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@105869f7-3296-0410-a4ea-f4349344b45a>2012-10-22 19:28:19 +0000
committereschnett <eschnett@105869f7-3296-0410-a4ea-f4349344b45a>2012-10-22 19:28:19 +0000
commit2b63f900977ae8a6691eab3a26147b9a67260462 (patch)
tree6a28c38dcf151bf115f8d6878628480be04151fe
parent37d3dda7f2497004dd295089aa9bb11ce287d1b3 (diff)
Use ~0 instead of -1 for intmax
git-svn-id: https://svn.cct.lsu.edu/repos/numrel/LSUThorns/Vectors/trunk@69 105869f7-3296-0410-a4ea-f4349344b45a
-rw-r--r--src/vectors-4-SSE.h4
-rw-r--r--src/vectors-8-SSE2.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/vectors-4-SSE.h b/src/vectors-4-SSE.h
index e6ff34e..e420140 100644
--- a/src/vectors-4-SSE.h
+++ b/src/vectors-4-SSE.h
@@ -391,8 +391,8 @@ static const k4const_t k4one = { f: { 1.0f, 1.0f, 1.0f, 1.0f, }};
#define k4tan(x) K4REPL(tanf,x)
#define k4tanh(x) K4REPL(tanhf,x)
-static const k4const_t k4lfalse_ = {{ +0U, +0U, +0U, +0U, }};
-static const k4const_t k4ltrue_ = {{ -1U, -1U, -1U, -1U, }};
+static const k4const_t k4lfalse_ = {{ 0U, 0U, 0U, 0U, }};
+static const k4const_t k4ltrue_ = {{ ~0U, ~0U, ~0U, ~0U, }};
#define k4lfalse (k4lfalse_.vf)
#define k4ltrue (k4ltrue_.vf)
#define k4lnot(x) (_mm_xor_ps(k4ltrue,x))
diff --git a/src/vectors-8-SSE2.h b/src/vectors-8-SSE2.h
index cfefbce..6dfe89f 100644
--- a/src/vectors-8-SSE2.h
+++ b/src/vectors-8-SSE2.h
@@ -1,4 +1,4 @@
-// Vectorise using Intel's or AMD's SSE2
+
// Use the type __m128d directly, without introducing a wrapper class
// Use macros instead of inline functions