Search:

Type: Posts; User: jaarestad

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    34,655

    I am trying to implement a data structure that...

    I am trying to implement a data structure that implements a generic linear feedback shift register (LFSR) of variable length and with a separate coefficient vector (another 32-bit value that...
  2. I would like to be able to access each of the bit...

    I would like to be able to access each of the bit values as a field.

    Actually, this works well.


    #define BIT(val, bit) ((val & (1 << bit)) >> bit)

    int main(int argc, char *argv[])
    {
    ...
  3. Puzzled about the size of my data structure

    Hi, I have created the following data type...


    typedef struct tagLFSRType {
    union {
    struct {
    unsigned int bit0 : 1; //
    unsigned int bit1 : 1; //
    ...
  4. Thread: Array Help

    by jaarestad
    Replies
    5
    Views
    830

    My suggestions would be: 1) Don't use quite so...

    My suggestions would be:
    1) Don't use quite so many blank lines between groups of statements (enhances readability).
    2) Precede each scanf() with a printf() to prompt the user. (This was...
  5. Replies
    6
    Views
    34,655

    Creating a bitfield array in C

    Hi, I am curious to know if there is a way that one could create a bitfield using the standard technique of creating a structure within a union, as follows:



    typedef union {
    struct {...
Results 1 to 5 of 5