Skip to content
Snippets Groups Projects
Commit 7bfdcd77 authored by Administrator's avatar Administrator Committed by Sergey Gorbunov
Browse files

Add missing functions to pseudo vector

parent 65e62dd3
No related branches found
No related tags found
1 merge request!910Use pseudo vectors when creating the ROOT dictionary on arm64
...@@ -172,6 +172,15 @@ public: ...@@ -172,6 +172,15 @@ public:
return strm; return strm;
} }
/// Checks, if all bands are equal
/// NOTE: two values defined as signaling_NaN() are not equal, thus if there are all or one
/// of the words are kNaN, the function returns false
bool IsHorizontallyEqual() const { return v[0] == v[1] && v[1] == v[2] && v[2] == v[3]; }
/// Checks, if any of the bands is NaN
bool IsNanAny() const { return std::isnan(v[0]) || std::isnan(v[1]) || std::isnan(v[2]) || std::isnan(v[3]); }
} __attribute__((aligned(16))); } __attribute__((aligned(16)));
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment