同步操作将从 OpenHarmony-SIG/python 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#include "Python.h"#ifdef X87_DOUBLE_ROUNDING/* On x86 platforms using an x87 FPU, this function is called from thePy_FORCE_DOUBLE macro (defined in pymath.h) to force a floating-pointnumber out of an 80-bit x87 FPU register and into a 64-bit memory location,thus rounding from extended precision to double precision. */double _Py_force_double(double x){volatile double y;y = x;return y;}#endif#ifdef HAVE_GCC_ASM_FOR_X87/* inline assembly for getting and setting the 387 FPU control word ongcc/x86 */#ifdef _Py_MEMORY_SANITIZER__attribute__((no_sanitize_memory))#endifunsigned short _Py_get_387controlword(void) {unsigned short cw;__asm__ __volatile__ ("fnstcw %0" : "=m" (cw));return cw;}void _Py_set_387controlword(unsigned short cw) {__asm__ __volatile__ ("fldcw %0" : : "m" (cw));}#endif#ifndef HAVE_HYPOTdouble hypot(double x, double y){double yx;x = fabs(x);y = fabs(y);if (x < y) {double temp = x;x = y;y = temp;}if (x == 0.)return 0.;else {yx = y/x;return x*sqrt(1.+yx*yx);}}#endif /* HAVE_HYPOT */#ifndef HAVE_COPYSIGNdoublecopysign(double x, double y){/* use atan2 to distinguish -0. from 0. */if (y > 0. || (y == 0. && atan2(y, -1.) > 0.)) {return fabs(x);} else {return -fabs(x);}}#endif /* HAVE_COPYSIGN */#ifndef HAVE_ROUNDdoubleround(double x){double absx, y;absx = fabs(x);y = floor(absx);if (absx - y >= 0.5)y += 1.0;return copysign(y, x);}#endif /* HAVE_ROUND */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。