Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ca-moes authored May 2, 2020
1 parent 2a04a6b commit f1fccea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions T2G3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ Para guardar os lugares ocupados é apenas necessário saber a posição do luga
#define ClearBit(A,k) ( A[(k/32)] &= ~(1 << (k%32)) )
#define TestBit(A,k) ( A[(k/32)] & (1 << (k%32)) )
```
Também com o objetivo de poupar espaço de memória está declarado em _registers.h_:
```c
typedef struct bit {unsigned x:1;} bit; /**< bit Data Type */
```
esta struct que guarda valores booleanos (1 ou 0 neste caso) em um bit.

## Erros
No estado atual do programa não nos acontecem erros. Para testar isto usamos um bash de testes fornecido por um estudante do nosso ano (Gonçalo Teixeira - up201806562) que foi adaptado de um bash de testes criado por nós numa fase inicial do projeto:
Expand Down

0 comments on commit f1fccea

Please sign in to comment.