이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10225501432
/
CASPP_LAB
보기
1
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
Finish LogicalNeg and Update Makefile
main
邓博昊
8 달 전
부모
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
쓰기
미리보기
불러오는 중...
취소
저장