This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10225501432
/
CASPP_LAB
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Finish isTmax and allOddBits
main
邓博昊
1 year ago
parent
a2d6e78f21
commit
19690ae02a
2 changed files
with
6 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
LAB1/bits.c
+4
-0
README.md
+ 2
- 1
LAB1/bits.c
View File
@ -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
View File
@ -9,3 +9,7 @@ A CSAPP LAB
3. Finish tmin
### 2023/10/8 Update:
1. Finish isTmax
2. Finish allOddBits
Write
Preview
Loading…
Cancel
Save