MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/26p35l/compressionoriented_programming_casey_muratoris/chttybq/?context=3
r/programming • u/ghotiblue • May 28 '14
67 comments sorted by
View all comments
-2
Just why is he using a ulong (8 bytes) for what is probably a 4 byte (int) argb color?
5 u/[deleted] May 29 '14 Standard guarantees that a ulong will hold 32 bits, maybe? -3 u/Banane9 May 29 '14 At least in the language I use a (u)int is guaranteed to have 32 bits... And you're guaranteed a (u)long with 64 bits too, even on 32 bit machines afaik. 3 u/[deleted] May 29 '14 What language? D? -2 u/Banane9 May 29 '14 C#, actually
5
Standard guarantees that a ulong will hold 32 bits, maybe?
-3 u/Banane9 May 29 '14 At least in the language I use a (u)int is guaranteed to have 32 bits... And you're guaranteed a (u)long with 64 bits too, even on 32 bit machines afaik. 3 u/[deleted] May 29 '14 What language? D? -2 u/Banane9 May 29 '14 C#, actually
-3
At least in the language I use a (u)int is guaranteed to have 32 bits... And you're guaranteed a (u)long with 64 bits too, even on 32 bit machines afaik.
3 u/[deleted] May 29 '14 What language? D? -2 u/Banane9 May 29 '14 C#, actually
3
What language? D?
-2 u/Banane9 May 29 '14 C#, actually
C#, actually
-2
u/Banane9 May 29 '14
Just why is he using a ulong (8 bytes) for what is probably a 4 byte (int) argb color?