This website works better with JavaScript.
首頁
探索
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10215501411
/
Computer-Systems-Labs
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
fix quiz3
master
吴冕志
1 年之前
父節點
e0ff8bb551
當前提交
37224203c1
共有
1 個文件被更改
,包括
2 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
lab2/datalab-handout/bits.c
+ 2
- 1
lab2/datalab-handout/bits.c
查看文件
@ -176,7 +176,8 @@ int isTmax(int x) {
int
xplusone
=
x
+
1
;
int
all1
=
xplusone
^
x
;
int
allzero
=
all1
+
1
;
return
!
allzero
;
int
notnegative1
=
!
(
x
^
(
-
1
)
)
;
return
!
(
allzero
|
notnegative1
)
;
}
/*
*
allOddBits
-
return
1
if
all
odd
-
numbered
bits
in
word
set
to
1
Write
Preview
Loading…
取消
儲存