]> git.baikalelectronics.ru Git - kernel.git/commit
math-emu: Use statement expressions to fix Wshift-count-overflow warning
authorVincent Chen <vincentc@andestech.com>
Mon, 27 May 2019 06:17:21 +0000 (14:17 +0800)
committerGreentime Hu <greentime@andestech.com>
Fri, 31 May 2019 07:23:25 +0000 (15:23 +0800)
commit33f5645bf1fd9f9267d5087b0712e087313993d4
tree254cbc061694aca21fcd6885ced86adb8015189e
parentb48e0d7fe5b5eb1732dfe0b8057a6c721c42f2d4
math-emu: Use statement expressions to fix Wshift-count-overflow warning

To avoid "shift count >= width of type" warning, using statement
expressions to implement the conditional controlling before constant shift

The modification in op-2.h is taken from the glibc
commit 'sysdeps/unix/sysv/lin ("fe0b1e854ad32")'.

Signed-off-by: Vincent Chen <vincentc@andestech.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
include/math-emu/op-2.h
include/math-emu/op-common.h