From: junmin kim Date: Wed, 30 Aug 2017 07:12:31 +0000 (-0700) Subject: Fix coding rule error in lib X-Git-Tag: 1.1_Public_Release~319^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1e91248cee90d4b13a7fd54d17d14e21a3a9a1b;p=rtos%2Ftinyara.git Fix coding rule error in lib lib_exp2.c : spaces required around that '=' libm.h : space required after that close brace '}' --- diff --git a/lib/libc/math/lib_exp2.c b/lib/libc/math/lib_exp2.c index a036b0c..f15c493 100644 --- a/lib/libc/math/lib_exp2.c +++ b/lib/libc/math/lib_exp2.c @@ -83,12 +83,12 @@ * Private Data ************************************************************************/ -static const double redux =0x1.8p52 / TBLSIZE; -static const double P1 =0x1.62e42fefa39efp-1; -static const double P2 =0x1.ebfbdff82c575p-3; -static const double P3 =0x1.c6b08d704a0a6p-5; -static const double P4 =0x1.3b2ab88f70400p-7; -static const double P5 =0x1.5d88003875c74p-10; +static const double redux = 0x1.8p52 / TBLSIZE; +static const double P1 = 0x1.62e42fefa39efp-1; +static const double P2 = 0x1.ebfbdff82c575p-3; +static const double P3 = 0x1.c6b08d704a0a6p-5; +static const double P4 = 0x1.3b2ab88f70400p-7; +static const double P5 = 0x1.5d88003875c74p-10; static const double tbl[TBLSIZE * 2] = { /* exp2(z +eps) eps */ diff --git a/lib/libc/math/libm.h b/lib/libc/math/libm.h index 8a0bdf4..960085c 100644 --- a/lib/libc/math/libm.h +++ b/lib/libc/math/libm.h @@ -207,7 +207,7 @@ union ldshape { ((union { \ _Complex t __z; \ t __xy[2]; \ - }){.__xy = {(x), (y)}}.__z) + }){ .__xy = {(x), (y)} } .__z) #define CMPLX(x, y) __CMPLX(x, y, double) #define CMPLXF(x, y) __CMPLX(x, y, float)