I need to fit the following structure into int64.
day 9 bit (0 to 372)
year 8 bit (2266-2010 = 256 y)
seconds 17 bit (24*60*60=86400 s)
hostname 12 bit (2^12=4096)
random 18 bit (2^18=262144)
How do I make such a structure fit in an int64? All items are numberic, and of the specified bit size