2.58
1 | int isLittleEndian1() |
2.59
1 | int f2_59(int x, int y) |
2.60
1 | unsigned replaceByte(unsigned x, int i, unsigned char b) |
2.61
1 | int A2_61(int x) |
1 | int B2_61(int x) |
1 | int C2_61(int x) |
1 | int D2_61(int x) |
2.62
1 | int isRightShiftAreArithmetic() |
2.63
1 | unsigned srl(unsigned x, int k) |
1 | int sra(int x, int k) |
2.64
1 | //题目中没有说bit从0开始计数还是从1开始,此处默认从0开始 |
2.65
1 | int oddOnesV1(unsigned x) |
1 | int oddOnesV2(unsigned x) |
2.66
1 | int leftMostOne(unsigned x) |
2.67
1 | int intSizeIs32() |
2.68
1 | int lowerOneMark(int n) |
2.69
1 | unsigned rotateLeft(unsigned x, int n) |
2.70
1 | int fitBits(int x, int n) |
2.71
1 | typedef unsigned pack_t; |
2.73
1 | int saturatingAdd(int x, int y) |
2.74
1 | int tsubOk(int x, int y) |
2.75
1 | unsigned unsignedHightProd(unsigned x, unsigned y) |
2.76
1 | void* Calloc(size_t nmemb, size_t size) |
2.77
1 | int f2_77(int x) |
2.78
1 | int dividePower2(int x, int k) |
2.79
1 | int mul3div4(int x) |
2.80
1 | int threefourths(int x) |
2.81
1 | int hw281A(int k) |
2.82
1 | /* |
2.83
$\sum_{i=1}^{\infty}Y2^{-ki}$
2.84
1 | return ((sx<sy) && ux!=0 && uy!=0x80000000) | (sx==sy) & !!(ux-uy); |