python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Why does NVCC not optimize away ceilf() for literals?
(Followup question for Compile-time ceiling function, for literals, in C?)
Considering the following CUDA function:
__device__ int foo_f() { return ceilf(1007.1111); }
It should be easy to optimize t...
ein supports Moderator Strike
Votes: 0
Answers: 1
Compile-time ceiling function, for literals, in C?
I have a C program which involves some floating-point literal that's defined by a macro. And - it just so happens that in a performance-critical part of the code, I need the ceiling of that floating-p...
ein supports Moderator Strike
Votes: 0
Answers: 2
is it possible to round the last 3 digits of a number in c?
i would like to round the last 3 digits of the float number 169786.122 and leaving only 3 digits
is it possible to do it with the math.h library and the ceil function?
in case of 169786.122 == 170
in ...

user14570759
Votes: 0
Answers: 1