Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:01

0001 #ifndef DataFormats_Math_constexpr_cmath_h
0002 #define DataFormats_Math_constexpr_cmath_h
0003 
0004 #include <cstdint>
0005 
0006 namespace reco {
0007   constexpr int32_t ceil(float num) {
0008     return (static_cast<float>(static_cast<int32_t>(num)) == num) ? static_cast<int32_t>(num)
0009                                                                   : static_cast<int32_t>(num) + ((num > 0) ? 1 : 0);
0010   }
0011 };  // namespace reco
0012 #endif