4 ms·
Or at least require a comment explaining it, before someone needs to dig through the code. Powers of three, five, and seven sounds a little bit like Totvald's
by de6u99er 6y ago
Or at least require a comment explaining it, before someone needs to dig through the code.
Powers of three, five, and seven sounds a little bit like Totvald's very own little FizzBuzz game hidden in ext4's file-system source code.
- gadrev 6y ago> Totvald's very own little FizzBuzz game hidden in ext4's file-system source code What's that?
- warkdarrior 6y agoWrite a filesystem that saves all data blocks to disk, but: - if the data block id is a multiple of 3, replace its contents with 0x03 - if the data block id is a multiple of 5, replace its contents with 0x05 - if the data block id is a multiple of both 3 and 5, replace its contents with 0x15