[x265] Warnings in 12-bit code: right shift count is negative

Mario *LigH* Rohkrämer contact at ligh.de
Thu Sep 24 09:57:56 CEST 2015


+----
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp: In  
instantiation of 'uint32_t x265::Quant::rdoQuant(const x265::CUData&,  
int16_t*, x265::TextType, uint32_t, bool) [with unsigned int log2TrSize =  
4u; uint32_t = unsigned int; int16_t = short int]':
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:189:139:    
required from here
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:672:48: note:  
in expansion of macro 'PSYVALUE'
                      costUncoded[blkPos + x] -= PSYVALUE(predictedCoef);
                                                 ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:779:52: note:  
in expansion of macro 'PSYVALUE'
                          costUncoded[blkPos + x] -=  
PSYVALUE(predictedCoef);
                                                     ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:857:40: note:  
in expansion of macro 'PSYVALUE'
                  costUncoded[blkPos] -= PSYVALUE(predictedCoef);
                                         ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:940:36: note:  
in expansion of macro 'PSYVALUE'
                          curCost -= PSYVALUE(reconCoef);
                                     ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:968:37: note:  
in expansion of macro 'PSYVALUE'
                          curCost0 -= PSYVALUE(reconCoef);
                                      ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:971:37: note:  
in expansion of macro 'PSYVALUE'
                          curCost1 -= PSYVALUE(reconCoef);
                                      ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp: In  
instantiation of 'uint32_t x265::Quant::rdoQuant(const x265::CUData&,  
int16_t*, x265::TextType, uint32_t, bool) [with unsigned int log2TrSize =  
5u; uint32_t = unsigned int; int16_t = short int]':
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:189:139:    
required from here
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:672:48: note:  
in expansion of macro 'PSYVALUE'
                      costUncoded[blkPos + x] -= PSYVALUE(predictedCoef);
                                                 ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:779:52: note:  
in expansion of macro 'PSYVALUE'
                          costUncoded[blkPos + x] -=  
PSYVALUE(predictedCoef);
                                                     ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:857:40: note:  
in expansion of macro 'PSYVALUE'
                  costUncoded[blkPos] -= PSYVALUE(predictedCoef);
                                         ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:940:36: note:  
in expansion of macro 'PSYVALUE'
                          curCost -= PSYVALUE(reconCoef);
                                     ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:968:37: note:  
in expansion of macro 'PSYVALUE'
                          curCost0 -= PSYVALUE(reconCoef);
                                      ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:592:45:  
warning: right shift count is negative
  #define PSYVALUE(rec)   ((psyScale * (rec)) >> (2 * transformShift + 1))
                                              ^
h:/MSYS-GCC492/home/Entwicklung/x265/source/common/quant.cpp:971:37: note:  
in expansion of macro 'PSYVALUE'
                          curCost1 -= PSYVALUE(reconCoef);
                                      ^
+----

-- 

Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de
 


More information about the x265-devel mailing list