Skip to content
Extraits de code Groupes Projets
Valider e9d1d204 rédigé par Louis Navarre's avatar Louis Navarre
Parcourir les fichiers

Correct coef unused and tabulation in verbose mode

parent 2d7201cf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -102,7 +102,7 @@ int main(int argc, char *argv[]) ...@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
// The following lines (and every code already present in this skeleton) can be removed, it is just an example to show you how to use the program arguments // The following lines (and every code already present in this skeleton) can be removed, it is just an example to show you how to use the program arguments
fprintf(stderr, "\tnumber of threads executing the RLC decoding algorithm in parallel: %" PRIu32 "\n", args.nb_threads); fprintf(stderr, "\tnumber of threads executing the RLC decoding algorithm in parallel: %" PRIu32 "\n", args.nb_threads);
fprintf(stderr, "\verbose mode: %s\n", args.verbose ? "enabled" : "disabled"); fprintf(stderr, "\tverbose mode: %s\n", args.verbose ? "enabled" : "disabled");
// This is an example of how to open the instance files of the input directory. You may move/edit it during the project // This is an example of how to open the instance files of the input directory. You may move/edit it during the project
struct dirent *directory_entry; struct dirent *directory_entry;
...@@ -155,6 +155,10 @@ int main(int argc, char *argv[]) ...@@ -155,6 +155,10 @@ int main(int argc, char *argv[])
// Do not forget that we use byte values, so we have to // Do not forget that we use byte values, so we have to
// cast the uint32_t returned value to only keep the last 8 bits. // cast the uint32_t returned value to only keep the last 8 bits.
uint8_t coef = (uint8_t)tinymt32_generate_uint32(&prng); uint8_t coef = (uint8_t)tinymt32_generate_uint32(&prng);
if (args.verbose)
{
printf("Coefficient: %u\n", coef);
}
// Close this instance file // Close this instance file
fclose(input_file); fclose(input_file);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter