diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-06-12 16:03:29 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-06-12 16:03:29 -0400 |
commit | fd04ed8d0e9506e491264a9536af184bc421fca0 (patch) | |
tree | f9222d21289ffe30f4b33ef0dc63a3484b9a9570 /vec_double_qpx.h | |
parent | b9fb92d1a3f5535e1f8e91075491d8c32640d3fc (diff) | |
download | vecmathlib-fd04ed8d0e9506e491264a9536af184bc421fca0.zip vecmathlib-fd04ed8d0e9506e491264a9536af184bc421fca0.tar.gz |
Implement signbit function for integer vectors
Diffstat (limited to 'vec_double_qpx.h')
-rw-r--r-- | vec_double_qpx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vec_double_qpx.h b/vec_double_qpx.h index c88dab7..e4d14a2 100644 --- a/vec_double_qpx.h +++ b/vec_double_qpx.h @@ -292,6 +292,11 @@ namespace vecmathlib { + boolvec_t signbit() const + { + return *this < IV(I(0)); + } + boolvec_t operator==(intvec const& x) const { boolvec_t r; |