浏览代码

Finish isTmax and Update README.MD

main
邓博昊 11 个月前
父节点
当前提交
a2d6e78f21
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. +6
    -1
      LAB1/bits.c
  2. +2
    -0
      README.md

+ 6
- 1
LAB1/bits.c 查看文件

@ -198,7 +198,12 @@ int tmin(void) {
* Rating: 1
*/
int isTmax(int x) {
return 2;
int i =x+1;
x = x+i;
x = ~x;
i = !i;
x = x+i;
return !x;
}
/*
* allOddBits - return 1 if all odd-numbered bits in word set to 1

+ 2
- 0
README.md 查看文件

@ -7,3 +7,5 @@ A CSAPP LAB
2. Finish bitXor
3. Finish tmin

正在加载...
取消
保存