This website works better with JavaScript.
首頁
探索
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10225501432
/
CASPP_LAB
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Finish LogicalNeg and Update Makefile
main
邓博昊
11 月之前
父節點
6e57a492d8
當前提交
3edd739a66
共有
3 個文件被更改
,包括
12 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-0
LAB1/Makefile
+1
-1
LAB1/bits.c
+4
-0
README.md
+ 7
- 0
LAB1/Makefile
查看文件
@ -23,4 +23,11 @@ btestexplicit:
clean
:
rm -f *.o btest fshow ishow *~
oneshoot
:
make clean
;
\
./dlc bits.c
;
\
make btest
;
\
./btest bits.c
;
\
make clean
\
+ 1
- 1
LAB1/bits.c
查看文件
@ -281,7 +281,7 @@ int isLessOrEqual(int x, int y) {
*
Rating
:
4
*/
int
logicalNeg
(
int
x
)
{
return
2
;
return
(
(
x
|
(
~
x
+
1
)
)
>
>
31
)
+
1
;
}
/* howManyBits - return the minimum number of bits required to represent x in
*
two
'
s
complement
+ 4
- 0
README.md
查看文件
@ -19,3 +19,7 @@ A CSAPP LAB
4. Finish isAsciiDigit
5. Finish isLessOrEqual
6. Finish logicalNeg
7. Update Makefile
Write
Preview
Loading…
取消
儲存