Bu web sitesi JavaScript ile daha iyi çalışır.
Ana Sayfa
Keşfet
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10225501432
/
CASPP_LAB
İzle
1
Yıldızla
0
Çatalla
0
Kod
Konular
0
Değişiklik İstekleri
0
Sürümler
0
Wiki
Aktivite
Kaynağa Gözat
Finish LogicalNeg and Update Makefile
main
邓博昊
11 ay önce
ebeveyn
6e57a492d8
işleme
3edd739a66
3 değiştirilmiş dosya
ile
12 ekleme
ve
1 silme
Görünümü Böl
Diff Seçenekleri
İstatistikleri Göster
Yama Dosyasını İndir
Diff Dosyasını İndir
+7
-0
LAB1/Makefile
+1
-1
LAB1/bits.c
+4
-0
README.md
+ 7
- 0
LAB1/Makefile
Dosyayı Görüntüle
@ -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
Dosyayı Görüntüle
@ -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
Dosyayı Görüntüle
@ -19,3 +19,7 @@ A CSAPP LAB
4. Finish isAsciiDigit
5. Finish isLessOrEqual
6. Finish logicalNeg
7. Update Makefile
Yaz
Önizleme
Yükleniyor…
İptal
Kaydet