mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-25 22:57:46 +00:00
ringct: silence unused variable warning
This commit is contained in:
parent
82149bfe44
commit
d749e0d97c
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,6 @@ rct::key straus(const std::vector<MultiexpData> &data, const std::shared_ptr<str
|
||||||
STEP = STEP ? STEP : 192;
|
STEP = STEP ? STEP : 192;
|
||||||
|
|
||||||
MULTIEXP_PERF(PERF_TIMER_START_UNIT(setup, 1000000));
|
MULTIEXP_PERF(PERF_TIMER_START_UNIT(setup, 1000000));
|
||||||
static constexpr unsigned int mask = (1<<STRAUS_C)-1;
|
|
||||||
std::shared_ptr<straus_cached_data> local_cache = cache == NULL ? straus_init_cache(data) : cache;
|
std::shared_ptr<straus_cached_data> local_cache = cache == NULL ? straus_init_cache(data) : cache;
|
||||||
ge_cached cached;
|
ge_cached cached;
|
||||||
ge_p1p1 p1;
|
ge_p1p1 p1;
|
||||||
|
@ -483,6 +482,7 @@ rct::key straus(const std::vector<MultiexpData> &data, const std::shared_ptr<str
|
||||||
memcpy(bytes33, data[j].scalar.bytes, 32);
|
memcpy(bytes33, data[j].scalar.bytes, 32);
|
||||||
bytes33[32] = 0;
|
bytes33[32] = 0;
|
||||||
bytes = bytes33;
|
bytes = bytes33;
|
||||||
|
static constexpr unsigned int mask = (1<<STRAUS_C)-1;
|
||||||
for (size_t i = 0; i < 256; ++i)
|
for (size_t i = 0; i < 256; ++i)
|
||||||
digits[j*256+i] = ((bytes[i>>3] | (bytes[(i>>3)+1]<<8)) >> (i&7)) & mask;
|
digits[j*256+i] = ((bytes[i>>3] | (bytes[(i>>3)+1]<<8)) >> (i&7)) & mask;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue