Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Static Public Member Functions | List of all members
LFSR< F, MOD > Struct Template Reference

Class which implements a stateless LFSR for generic moduli. More...

#include <int_utils.h>

Public Types

typedef F::Repr I
 

Static Public Member Functions

static constexpr I Call (const I &a)
 Shift a value a up once, treating it as an N-bit LFSR, with pattern MOD. More...
 

Detailed Description

template<typename F, uint32_t MOD>
struct LFSR< F, MOD >

Class which implements a stateless LFSR for generic moduli.

Definition at line 230 of file int_utils.h.

Member Typedef Documentation

◆ I

template<typename F , uint32_t MOD>
typedef F::Repr LFSR< F, MOD >::I

Definition at line 231 of file int_utils.h.

Member Function Documentation

◆ Call()

template<typename F , uint32_t MOD>
static constexpr I LFSR< F, MOD >::Call ( const I a)
inlinestaticconstexpr

Shift a value a up once, treating it as an N-bit LFSR, with pattern MOD.

Definition at line 233 of file int_utils.h.


The documentation for this struct was generated from the following file: