Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Clang 编译器 (x86):80 位长双精度
我正在尝试在 x86 Windows 平台上使用本机 80 位长双精度 海湾合作委员会选项 mlong double 80 https gcc gnu org onlinedocs gcc x86 Options html似乎不适用于 cl
c
x86
Clang
x87
longdouble
有没有办法使用 i387 fsqrt 指令获得正确的舍入?
有没有办法使用 i387 fsqrt 指令获得正确的舍入 除了改变精确模式在 x87 控制字中 我知道这是可能的 但这不是一个合理的解决方案 因为它存在令人讨厌的重入型问题 如果 sqrt 操作中断 精度模式将出错 我正在处理的问题如下 x
c
Assembly
floatingpoint
rounding
x87
fstcw 汇编操作数类型不匹配
我正在尝试使用 C 中的内联汇编中指定的舍入模式对输入双精度舍入进行舍入 为此 我需要使用以下命令获取 FPU 控制字fstcw然后更改字中的位 不幸的是我在第一行遇到了错误 double roundD double n RoundingM
c
Assembly
rounding
att
x87
Java 中的 x86 80 位浮点类型
我想模拟 x86 扩展精度类型并执行算术运算并转换为 Java 中的其他类型 我可以尝试使用 BigDecimal 来实现它 但涵盖 NaN 无穷大和强制转换的所有特殊情况可能是一项乏味的任务 我知道一些库提供比 double 精度更高的其
Java
floatingpoint
precision
x87
x86emulation
x87 精度如何影响平方根?
我编写了一些代码来测试 fsqrt 函数 但结果对我来说并不完全有意义 这是代码 delphi 中 uses mmsystem var rand longint 123456789 function rng longint asm imul
Assembly
x86
x87
指令 FYL2XP1
I m wondering why the instruction FYL2XP1 on x86 architecture computes exactly the mathematical formula y log2 x 1 这个公式有
Assembly
x86
floatingpoint
instructions
x87
SSE 浮点运算可以重现吗?
x87 FPU 因使用内部 80 位精度模式而闻名 这通常会导致跨编译器和机器出现意外且不可重现的结果 在我的搜索中 https stackoverflow com questions 14864238 coercing floating
NET
floatingpoint
SSE
IEEE754
x87
寻找相近浮点数之间的“离散”差异
假设我有两个浮点数 x and y 他们的价值观非常接近 计算机上可以表示离散数量的浮点数 因此我们可以按升序枚举它们 f 1 f 2 f 3 我希望找到距离x and y在此列表中 即它们是 1 2 3 还是n离散步骤分开 是否可以仅使用
floatingpoint
numerical
x87
FLD浮点指令加载常数
根据装配艺术 CH14 死链接 在 archive org 上找不到 14 4 4 1 FLD 指令 fld mem 32 fld mem 64 bx 我的目标是将常数 10 加载到我的 FPU 堆栈中 为什么我不能这样做 asm move
c
Assembly
inlineassembly
FPU
x87
FFREE ST(i) 修改 x87 标记字中的哪些位?
这个例子是用 NASM 编写的 section bss var28 resb 28 section text main Initialize finit fldpi Read Tag Word fstenv var28 mov ax var
Assembly
x86
x87
如何在装配中比较两个浮点数
我 在装配方面完全是新手 我想比较两个变量 浮点数 并正确跳转到正确的函数 这是一场乒乓球比赛 它是用 FASM 编写的 The right pad P0x dd 0 9 P0y dd 0 05 P1x dd 0 95 P1y dd 0 2
Assembly
x86
floatingpoint
x87
x87 中的扩展(80 位)双浮点,而不是 SSE2 - 我们不会错过它吗?
我今天读到的是研究人员发现 NVidia 的 Phys X 库使用 x87 FP 与 SSE2 显然 这对于速度胜过精度的并行数据集来说不是最佳选择 然而 文章作者继续引用 随着 2000 年底 P4 的推出 Intel 开始不鼓励使用 x
floatingpoint
sse2
x87
如何使用扩展 gcc 程序集指定 x87 FPU 堆栈的损坏底部?
In a codebase of ours I found this snippet for fast towards negative infinity1 rounding on x87 inline int my int double
c
gcc
Assembly
x86
x87