From c8931ff491007b14d536bbc671b518d6f4f90d83 Mon Sep 17 00:00:00 2001 From: Eyal Rozenberg Date: Sat, 23 Oct 2021 20:17:57 +0300 Subject: [PATCH] In CUDA device-side use, avoid using constant memory in favor of a large(ish) switch statement. --- src/printf/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printf/printf.c b/src/printf/printf.c index c2f75db8..69d6b829 100644 --- a/src/printf/printf.c +++ b/src/printf/printf.c @@ -627,7 +627,7 @@ PRINTF_HD double power_of_10(int e) { case 16: return 1e16; case 17: return 1e17; } - return pow(10, e); + return 1; // Shouldn't get here #endif }