瀏覽代碼

Finish isTmax and allOddBits

main
邓博昊 8 月之前
父節點
當前提交
19690ae02a
共有 2 個檔案被更改,包括 6 行新增1 行删除
  1. +2
    -1
      LAB1/bits.c
  2. +4
    -0
      README.md

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

@ -214,7 +214,8 @@ int isTmax(int x) {
* Rating: 2
*/
int allOddBits(int x) {
return 2;
int a = 0xaaaaaaaa;
return !((a&x)^a);
}
/*
* negate - return -x

+ 4
- 0
README.md 查看文件

@ -9,3 +9,7 @@ A CSAPP LAB
3. Finish tmin
### 2023/10/8 Update:
1. Finish isTmax
2. Finish allOddBits

Loading…
取消
儲存