Skip to content

ordering of LI, VN, mode bits #8

@mzimmers

Description

@mzimmers

Hi -

I'm wondering about the order of your bit fields for Leap Indicator, Version Number and Mode. According to multiple sources I've looked at:

LI: bits 0-1
VN: bits 2-4
Mode: bits 5-7

If you wish these values (as indicated in your comment):
LI: 0
VN: 3
Mode: 3

Then the bit pattern should be 011 011 00, or 0110 1100, or 0x6c, not 0x1b as you use.

Not so?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions