They're static, how can i make them const without initializing them at
compile time?
Il 14-apr-2014 19:36 "Slava Krutelyov" <notifications@github.com> ha
scritto:

In DataFormats/PatCandidates/interface/libminifloat.h:

> +        /// Slower implementation, but it rounds to avoid biases
> +        inline static uint16_t float32to16round(float x) {
> +            union { float flt; uint32_t i32; } conv;
> +            conv.flt = x;
> +            uint8_t shift = shifttable[(conv.i32>>23)&0x1ff];
> +            if (shift == 13) {
> +                uint16_t base2 = (conv.i32&0x007fffff)>>12;
> +                uint16_t base = base2 >> 1;
> +                if (((base2 & 1) != 0) && (base < 1023)) base++;
> +                return basetable[(conv.i32>>23)&0x1ff]+base;
> +            } else {
> +                return basetable[(conv.i32>>23)&0x1ff]+((conv.i32&0x007fffff)>>shifttable[(conv.i32>>23)&0x1ff]);
> +            }
> +        }
> +    private:
> +        static uint32_t mantissatable[2048];

make these const?

—
Reply to this email directly or view it on
GitHub<https://github.com/cms-sw/cmssw/pull/3253/files#r11596774>
.