Representing and Manipulating Information

QuoteEverything is physics and math.

by Katherine Johnson

2.1 - 2.54 visit book

2.55 - 2.97 visit here

code directory: ./code

test way:

  • assert means assert function from <assert.h>
  • output means to watch code output to judge if it works right
solution code file test way
2.55 show-bytes.c output
2.56 show-bytes.c output
2.57 show-bytes-more.c output
2.58 is-little-endian.c assert
2.59 generate-a-word.c assert
2.60 replace-byte.c assert
2.61 2.61.c assert
2.62 int-shifts-are-arithemetic.c assert
2.63 srl-sra.c assert
2.64 any-odd-one.c assert
2.65 odd-ones.c assert
2.66 leftmost-one.c assert
2.67 int-size-is-32.c assert
2.68 lower-one-mask.c assert
2.69 rotate-left.c assert
2.70 fits-bits.c assert
2.71 xbyte.c assert
2.72 copy-int.c assert
2.73 saturating-add.c assert
2.74 tsub-ok.c assert
2.75 unsigned-high-prod.c assert
2.76 calloc.c assert
2.77 2.77.c assert
2.78 divide-power2.c assert
2.79 mul3div4.c assert
2.80 threeforths.c assert
2.81 2.81.c assert
2.82 2.81.c assert
2.83 ——- ——-
2.84 float-le.c assert
2.85 ——- ——-
2.86 ——- ——-
2.87 ——- ——-
2.88 ——- ——-
2.89 2.89.c assert
2.90 fpwr2.c assert
2.91 ——- ——-
2.92 floats/float-negate.c assert
2.93 floats/float-absval.c assert
2.94 floats/float-twice.c assert
2.95 floats/float-half.c assert
2.96 floats/float-f2i.c assert
2.97 floats/float-i2f.c assert