From: Sunil K Pandey Date: Mon, 7 Mar 2022 18:47:08 +0000 (-0800) Subject: x86_64: Fix svml_d_acos2_core_sse4.S code formatting X-Git-Tag: glibc-2.36~632 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f84927880317dc11c3b7a0166a044f8787f8cf;p=thirdparty%2Fglibc.git x86_64: Fix svml_d_acos2_core_sse4.S code formatting This commit contains following formatting changes 1. Instructions proceeded by a tab. 2. Instruction less than 8 characters in length have a tab between it and the first operand. 3. Instruction greater than 7 characters in length have a space between it and the first operand. 4. Tabs after `#define`d names and their value. 5. 8 space at the beginning of line replaced by tab. 6. Indent comments with code. 7. Remove redundent .text section. 8. 1 space between line content and line comment. 9. Space after all commas. Reviewed-by: Noah Goldstein --- diff --git a/sysdeps/x86_64/fpu/multiarch/svml_d_acos2_core_sse4.S b/sysdeps/x86_64/fpu/multiarch/svml_d_acos2_core_sse4.S index c25ff14329c..c95aa26e3ed 100644 --- a/sysdeps/x86_64/fpu/multiarch/svml_d_acos2_core_sse4.S +++ b/sysdeps/x86_64/fpu/multiarch/svml_d_acos2_core_sse4.S @@ -28,276 +28,275 @@ /* Offsets for data table __svml_dacos_data_internal */ -#define SgnBit 0 -#define OneHalf 16 -#define SmallNorm 32 -#define MOne 48 -#define Two 64 -#define sqrt_coeff 80 -#define poly_coeff 144 -#define PiH 336 -#define Pi2H 352 +#define SgnBit 0 +#define OneHalf 16 +#define SmallNorm 32 +#define MOne 48 +#define Two 64 +#define sqrt_coeff 80 +#define poly_coeff 144 +#define PiH 336 +#define Pi2H 352 #include - .text - .section .text.sse4,"ax",@progbits + .section .text.sse4, "ax", @progbits ENTRY(_ZGVbN2v_acos_sse4) - subq $72, %rsp - cfi_def_cfa_offset(80) - movaps %xmm0, %xmm5 - movups __svml_dacos_data_internal(%rip), %xmm3 - movups OneHalf+__svml_dacos_data_internal(%rip), %xmm6 - -/* x = -|arg| */ - movaps %xmm3, %xmm4 - orps %xmm5, %xmm4 - -/* Y = 0.5 + 0.5*(-x) */ - movaps %xmm6, %xmm7 - mulpd %xmm4, %xmm7 - addpd %xmm7, %xmm6 - -/* S ~ 2*sqrt(Y) */ - cvtpd2ps %xmm6, %xmm9 - movlhps %xmm9, %xmm9 - -/* x^2 */ - movaps %xmm4, %xmm0 - rsqrtps %xmm9, %xmm10 - mulpd %xmm4, %xmm0 - cvtps2pd %xmm10, %xmm11 - minpd %xmm6, %xmm0 - movaps %xmm6, %xmm1 - movaps %xmm0, %xmm2 - cmpltpd SmallNorm+__svml_dacos_data_internal(%rip), %xmm1 - cmpnltpd %xmm6, %xmm2 - addpd %xmm6, %xmm6 - andnps %xmm11, %xmm1 - movaps %xmm0, %xmm11 - movaps %xmm1, %xmm12 - andps %xmm5, %xmm3 - mulpd %xmm1, %xmm12 - mulpd %xmm6, %xmm1 - mulpd %xmm12, %xmm6 - mulpd %xmm0, %xmm11 - subpd Two+__svml_dacos_data_internal(%rip), %xmm6 - movups sqrt_coeff+__svml_dacos_data_internal(%rip), %xmm13 - movaps %xmm6, %xmm14 - mulpd %xmm6, %xmm13 - mulpd %xmm1, %xmm14 - addpd sqrt_coeff+16+__svml_dacos_data_internal(%rip), %xmm13 - mulpd %xmm6, %xmm13 - addpd sqrt_coeff+32+__svml_dacos_data_internal(%rip), %xmm13 - mulpd %xmm13, %xmm6 - -/* polynomial */ - movups poly_coeff+__svml_dacos_data_internal(%rip), %xmm15 - movaps %xmm11, %xmm7 - mulpd %xmm0, %xmm15 - addpd sqrt_coeff+48+__svml_dacos_data_internal(%rip), %xmm6 - addpd poly_coeff+16+__svml_dacos_data_internal(%rip), %xmm15 - mulpd %xmm11, %xmm7 - mulpd %xmm6, %xmm14 - mulpd %xmm11, %xmm15 - subpd %xmm14, %xmm1 - movups MOne+__svml_dacos_data_internal(%rip), %xmm8 - andps %xmm2, %xmm1 - -/* NaN processed in special branch (so wind test passed) */ - cmpnlepd %xmm4, %xmm8 - movmskpd %xmm8, %edx - -/* X