Refactoring common_audio/signal_processing: Remove macro WEBRTC_SPL_UDIV
This macro is a direct use of the division operator without checking for division by zero. Hence, it is dangerous to use. This CL replaces the macro with '/' at place. BUG=3348,3353 TESTED=locally on linux and trybots R=kwiberg@webrtc.org, tina.legrand@webrtc.org, turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/14169004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6976 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -48,8 +48,6 @@
|
||||
((int32_t)(int16_t)(a) * (uint16_t)(b))
|
||||
#define WEBRTC_SPL_DIV(a, b) \
|
||||
((int32_t) ((int32_t)(a) / (int32_t)(b)))
|
||||
#define WEBRTC_SPL_UDIV(a, b) \
|
||||
((uint32_t) ((uint32_t)(a) / (uint32_t)(b)))
|
||||
|
||||
#ifndef WEBRTC_ARCH_ARM_V7
|
||||
// For ARMv7 platforms, these are inline functions in spl_inl_armv7.h
|
||||
|
||||
Reference in New Issue
Block a user