diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-07-05 15:29:13 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-07-05 15:29:13 -0400 |
commit | 24b739381a4f6dc6f36a22cb1899e4fbf1aa0f5e (patch) | |
tree | 61973ad6d702ab5ded986d0911c4328d0edceb5c /vec_sse_float1.h | |
parent | 670db6a358edaddfab9c955ef274e8c8a2c127c7 (diff) | |
download | vecmathlib-24b739381a4f6dc6f36a22cb1899e4fbf1aa0f5e.zip vecmathlib-24b739381a4f6dc6f36a22cb1899e4fbf1aa0f5e.tar.gz |
Simplify all() and any() implementations
Diffstat (limited to 'vec_sse_float1.h')
-rw-r--r-- | vec_sse_float1.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vec_sse_float1.h b/vec_sse_float1.h index a439a02..e4c8aaf 100644 --- a/vec_sse_float1.h +++ b/vec_sse_float1.h @@ -94,8 +94,8 @@ namespace vecmathlib { boolvec operator==(boolvec x) const { return bool(v) == bool(x.v); } boolvec operator!=(boolvec x) const { return bool(v) != bool(x.v); } - bool all() const { return v; } - bool any() const { return v; } + bool all() const { return *this; } + bool any() const { return *this; } |