Skip to content

Commit

Permalink
In CUDA device-side use, avoid using constant memory in favor of a la…
Browse files Browse the repository at this point in the history
…rge(ish) switch statement.
  • Loading branch information
eyalroz committed Feb 28, 2022
1 parent a031279 commit 2094791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printf/printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,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
}

Expand Down

0 comments on commit 2094791

Please sign in to comment.