이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10215501411
/
Computer-Systems-Labs
보기
1
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
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
쓰기
미리보기
불러오는 중...
취소
저장