]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
x86 explicit constructor supervector
authorgtsoul-tech <gtsoulkanakis@gmail.com>
Tue, 14 May 2024 06:28:13 +0000 (09:28 +0300)
committergtsoul-tech <gtsoulkanakis@gmail.com>
Tue, 14 May 2024 06:28:13 +0000 (09:28 +0300)
src/util/supervector/supervector.hpp

index 5e2de2358837dda10b5eb1e1ba26db5012e81a57..8414fa60a21ec007cae09bfe8947b7df97a7d1c9 100644 (file)
@@ -208,18 +208,18 @@ public:
   SuperVector(typename base_type::type const v);
 
   template<typename T>
-  SuperVector(T const other);
+  explicit SuperVector(T const other);
 
   SuperVector(SuperVector<SIZE/2> const lo, SuperVector<SIZE/2> const hi);
   SuperVector(previous_type const lo, previous_type const hi);
 
-  static SuperVector dup_u8 (uint8_t  other) { return {other}; };
+  static SuperVector dup_u8 (uint8_t  other) { return {SuperVector(other)}; };
   static SuperVector dup_s8 (int8_t   other) { return {other}; };
   static SuperVector dup_u16(uint16_t other) { return {other}; };
   static SuperVector dup_s16(int16_t  other) { return {other}; };
   static SuperVector dup_u32(uint32_t other) { return {other}; };
   static SuperVector dup_s32(int32_t  other) { return {other}; };
-  static SuperVector dup_u64(uint64_t other) { return {other}; };
+  static SuperVector dup_u64(uint64_t other) { return {SuperVector(other)}; };
   static SuperVector dup_s64(int64_t  other) { return {other}; };
 
   void operator=(SuperVector const &other);