Commit 232e4b7e authored by Christoph Conrads's avatar Christoph Conrads

Also search for 8-bit AWC/SWB generators

parent 3c20d631
......@@ -106,10 +106,11 @@ int main()
constexpr auto r = std::size_t{@LONG_LAG@};
using T = std::conditional<
w == 8, std::uint8_t, std::conditional<
w == 16, std::uint16_t, std::conditional<
w == 32, std::uint32_t, std::conditional<
w == 64, std::uint64_t, void
>::type>::type>::type;
>::type>::type>::type>::type;
using Generator = add_with_carry_engine<T, w, s, r>;
......
......@@ -75,7 +75,7 @@ struct subtract_with_borrow
T xs_[r] = { 0 };
std::uint8_t carry_ = 0;
T carry_ = 0;
std::size_t index_ = 0;
};
......@@ -106,10 +106,11 @@ int main()
constexpr auto r = std::size_t{@LONG_LAG@};
using T = std::conditional<
w == 8, std::uint8_t, std::conditional<
w == 16, std::uint16_t, std::conditional<
w == 32, std::uint32_t, std::conditional<
w == 64, std::uint64_t, void
>::type>::type>::type;
>::type>::type>::type>::type;
using Generator = subtract_with_borrow<T, w, r, s>;
......
......@@ -30,7 +30,7 @@ compute_modulus = \
sys.exit(3)
for e in [16,24,32,64]:
for e in [8,16,24,32,64]:
# this is not implemented
if e in [24,48] and kind != 'swc':
continue
......
......@@ -58,7 +58,7 @@ y_min = (b/2) / (b+1)
k = int(np.ceil(np.log(y_min*b) / c + 1))
print('{:4s} {:d} {:2d} {:2d} {:3d}'.format(kind, w, r, s, k))
print('{:4s} {:2d} {:2d} {:2d} {:3d}'.format(kind, w, r, s, k))
zs = np.exp(c * (xs-1)) / b
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment