本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10225501432
/
CASPP_LAB
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
Finish isTmax and allOddBits
main
邓博昊
8 月之前
父節點
a2d6e78f21
當前提交
19690ae02a
共有
2 個檔案被更改
,包括
6 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
LAB1/bits.c
+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
Write
Preview
Loading…
取消
儲存