summaryrefslogtreecommitdiffstats
path: root/vec_double_qpx.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-06-12 16:03:29 -0400
committerErik Schnetter <schnetter@gmail.com>2013-06-12 16:03:29 -0400
commitfd04ed8d0e9506e491264a9536af184bc421fca0 (patch)
treef9222d21289ffe30f4b33ef0dc63a3484b9a9570 /vec_double_qpx.h
parentb9fb92d1a3f5535e1f8e91075491d8c32640d3fc (diff)
downloadvecmathlib-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.h5
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;
OpenPOWER on IntegriCloud