Chapter 2

Representing and Manipulating Information

Everything is physics and math.

by Katherine Johnson

solutioncode filetest way
2.55show-bytes.coutput
2.56show-bytes.coutput
2.57show-bytes-more.coutput
2.58is-little-endian.cassert
2.59generate-a-word.cassert
2.60replace-byte.cassert
2.612.61.cassert
2.62int-shifts-are-arithemetic.cassert
2.63srl-sra.cassert
2.64any-odd-one.cassert
2.65odd-ones.cassert
2.66leftmost-one.cassert
2.67int-size-is-32.cassert
2.68lower-one-mask.cassert
2.69rotate-left.cassert
2.70fits-bits.cassert
2.71xbyte.cassert
2.72copy-int.cassert
2.73saturating-add.cassert
2.74tsub-ok.cassert
2.75unsigned-high-prod.cassert
2.76calloc.cassert
2.772.77.cassert
2.78divide-power2.cassert
2.79mul3div4.cassert
2.80threeforths.cassert
2.812.81.cassert
2.822.81.cassert
2.83—–—–
2.84float-le.cassert
2.85—–—–
2.86—–—–
2.87—–—–
2.88—–—–
2.892.89.cassert
2.90fpwr2.cassert
2.91—–—–
2.92floats/float-negate.cassert
2.93floats/float-absval.cassert
2.94floats/float-twice.cassert
2.95floats/float-half.cassert
2.96floats/float-f2i.cassert
2.97floats/float-i2f.cassert
comments powered by Disqus