S JavaScriptem funguje tato webová stránka lépe.
Domů
Procházet
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10225501432
/
CASPP_LAB
Sledovat
1
Oblíbit
0
Rozštěpit
0
Zdrojový kód
Úkoly
0
Požadavky na natažení
0
Vydání
0
Wiki
Aktivita
Procházet zdrojové kódy
Finish LogicalNeg and Update Makefile
main
邓博昊
před 11 měsíci
rodič
6e57a492d8
revize
3edd739a66
3 změnil soubory
, kde provedl
12 přidání
a
1 odebrání
Rozdělené zobrazení
Možnosti rozdílového porovnání
Zobrazit statistiky
Stáhněte soubor opravy
Stáhněte rozdílový soubor
+7
-0
LAB1/Makefile
+1
-1
LAB1/bits.c
+4
-0
README.md
+ 7
- 0
LAB1/Makefile
Zobrazit soubor
@ -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
Zobrazit soubor
@ -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
Zobrazit soubor
@ -19,3 +19,7 @@ A CSAPP LAB
4. Finish isAsciiDigit
5. Finish isLessOrEqual
6. Finish logicalNeg
7. Update Makefile
Zapsat
Náhled
Načítá se…
Zrušit
Uložit