Este site funciona melhor com JavaScript.
Página inicial
Explorar
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10215501411
/
Computer-Systems-Labs
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
finish quize 2-3
master
吴冕志
1 ano atrás
pai
aeb02df000
commit
e0ff8bb551
1 arquivos alterados
com
7 adições
e
3 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+7
-3
lab2/datalab-handout/bits.c
+ 7
- 3
lab2/datalab-handout/bits.c
Ver arquivo
@ -159,8 +159,9 @@ int bitXor(int x, int y) {
*
Rating
:
1
*/
int
tmin
(
void
)
{
return
2
;
int
one
=
1
;
int
res
=
one
<
<
31
;
return
res
;
}
/
/
2
@ -172,7 +173,10 @@ int tmin(void) {
*
Rating
:
1
*/
int
isTmax
(
int
x
)
{
return
2
;
int
xplusone
=
x
+
1
;
int
all1
=
xplusone
^
x
;
int
allzero
=
all1
+
1
;
return
!
allzero
;
}
/*
*
allOddBits
-
return
1
if
all
odd
-
numbered
bits
in
word
set
to
1
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar