From 052b8b1684920605a7fcba4fc763e8e3880befe4 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 25 Aug 2010 10:04:47 +0200 Subject: [PATCH] add missing constructors --- src/simulator/uint64x64-128.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/simulator/uint64x64-128.h b/src/simulator/uint64x64-128.h index ca52c0055..2c369372c 100644 --- a/src/simulator/uint64x64-128.h +++ b/src/simulator/uint64x64-128.h @@ -47,6 +47,21 @@ public: { _v <<= 64; } + explicit inline uint64x64_t (unsigned int v) + : _v (v) + { + _v <<= 64; + } + explicit inline uint64x64_t (unsigned long int v) + : _v (v) + { + _v <<= 64; + } + explicit inline uint64x64_t (unsigned long long int v) + : _v (v) + { + _v <<= 64; + } explicit inline uint64x64_t (int64_t hi, uint64_t lo) { bool is_negative = hi<0;