mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Fixed a couple printf usage errors.
This commit is contained in:
		| @@ -57,7 +57,7 @@ void bench(const char *expr, te_fun1 func) { | |||||||
|     /*Million floats per second input.*/ |     /*Million floats per second input.*/ | ||||||
|     printf(" %.5g", d); |     printf(" %.5g", d); | ||||||
|     if (nelapsed) |     if (nelapsed) | ||||||
|         printf("\t%5dms\t%5lumfps\n", nelapsed, loops * loops / nelapsed / 1000); |         printf("\t%5dms\t%5dmfps\n", nelapsed, loops * loops / nelapsed / 1000); | ||||||
|     else |     else | ||||||
|         printf("\tinf\n"); |         printf("\tinf\n"); | ||||||
|  |  | ||||||
| @@ -79,7 +79,7 @@ void bench(const char *expr, te_fun1 func) { | |||||||
|     /*Million floats per second input.*/ |     /*Million floats per second input.*/ | ||||||
|     printf(" %.5g", d); |     printf(" %.5g", d); | ||||||
|     if (eelapsed) |     if (eelapsed) | ||||||
|         printf("\t%5dms\t%5lumfps\n", eelapsed, loops * loops / eelapsed / 1000); |         printf("\t%5dms\t%5dmfps\n", eelapsed, loops * loops / eelapsed / 1000); | ||||||
|     else |     else | ||||||
|         printf("\tinf\n"); |         printf("\tinf\n"); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ | |||||||
| int main(int argc, char *argv[]) | int main(int argc, char *argv[]) | ||||||
| { | { | ||||||
|     if (argc < 2) { |     if (argc < 2) { | ||||||
|         printf("Usage: example2 \"expression\"\n", argv[0]); |         printf("Usage: example2 \"expression\"\n"); | ||||||
|         return 0; |         return 0; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user