yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ ll total 4 lrwxrwxrwx 1 yoshi yoshi 14 Apr 30 14:42 Makefile -> ../../Makefile -rw-r--r-- 1 yoshi yoshi 1735 Apr 30 14:48 prog10.2.c yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ make prog10.2 make prog10.2.o make[1]: Entering directory `/home/yoshi/IME/www/2002i/CompII/exx/LTSs/Sec10.3' gcc -g -I. -Wall -pedantic -c prog10.2.c make[1]: Leaving directory `/home/yoshi/IME/www/2002i/CompII/exx/LTSs/Sec10.3' gcc -g -I. -Wall -pedantic -o prog10.2 prog10.2.o -lm yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ prog10.2 10 1 19755 27777 33522 39438 55396 76822 78309 79844 84018 91164 yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ ../prog7.1 10 1 19755 27777 33522 39438 55396 76822 78309 79844 84018 91164 yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ time prog10.2 1000 1 > /dev/null real 0m0.008s user 0m0.000s sys 0m0.000s yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ time ../prog7.1 1000 1 > /dev/null real 0m0.003s user 0m0.000s sys 0m0.000s yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ time prog10.2 1000000 1 > /dev/null real 0m13.699s user 0m13.660s sys 0m0.000s yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ time ../prog7.1 1000000 1 > /dev/null real 0m1.188s user 0m1.160s sys 0m0.030s yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ grep bitsdigit < prog10.2.c #define bitsdigit 8 #define R (1<> (bitsword-((B)+1)*bitsdigit)) & (R-1)) [Aqui editei o arquivo para trocar o bitsdigit para 4] yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ grep bitsdigit < prog10.2.c #define bitsdigit 4 #define R (1<> (bitsword-((B)+1)*bitsdigit)) & (R-1)) yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ make prog10.2 gcc -g -I. -Wall -pedantic -c prog10.2.c gcc -L. prog10.2.o -lm -o prog10.2 yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ time prog10.2 1000000 1 > /dev/null real 0m1.228s user 0m1.200s sys 0m0.010s [Aqui editei o arquivo para trocar o bitsdigit para 2] yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ grep bitsdigit < prog10.2.c #define bitsdigit 2 #define R (1<> (bitsword-((B)+1)*bitsdigit)) & (R-1)) yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ make prog10.2 make prog10.2.o make[1]: Entering directory `/home/yoshi/IME/www/2002i/CompII/exx/LTSs/Sec10.3' gcc -g -I. -Wall -pedantic -c prog10.2.c make[1]: Leaving directory `/home/yoshi/IME/www/2002i/CompII/exx/LTSs/Sec10.3' gcc -g -I. -Wall -pedantic -o prog10.2 prog10.2.o -lm yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ time prog10.2 1000000 1 > /dev/null real 0m1.263s user 0m1.250s sys 0m0.010s yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$ make clean /bin/rm -f *~ \#~ .\#* *.o core a.out yoshi@erdos:~/Main/www/2002i/CompII/exx/LTSs/Sec10.3$