mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-12 13:29:29 +00:00
14 lines
227 B
C
14 lines
227 B
C
int f(unsigned number_of_digits_to_use)
|
|
{
|
|
if (number_of_digits_to_use >1294)
|
|
return 0;
|
|
return (number_of_digits_to_use * 3321 / 1000 + 1) /16;
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
if (f(11) != 2)
|
|
__builtin_abort ();
|
|
exit (0);
|
|
}
|