代码搜索:float
找到约 10,000 项符合「float」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5515411
c float2.c
/* Area: ffi_call
Purpose: Check return value long double.
Limitations: none.
PR: none.
Originator: From the original ffitest.c */
/* { dg-do run } */
#include "ffitest.h"
#include "fl
www.eeworm.com/read/162614/5515420
c cls_float.c
/* Area: closure_call
Purpose: Check return value float.
Limitations: none.
PR: none.
Originator: 20030828 */
/* { dg-do run { xfail mips64*-*-* arm*-*-* strongar
www.eeworm.com/read/162614/5515426
c float1.c
/* Area: ffi_call
Purpose: Check return value double.
Limitations: none.
PR: none.
Originator: From the original ffitest.c */
/* { dg-do run } */
#include "ffitest.h"
#include "float.h"
www.eeworm.com/read/162614/5518243
c float1.c
// PR c++/21089
// { dg-do run }
extern "C" void abort();
static const double a = 1.0;
struct S {
S();
};
static S s;
static const double b = a + 1.0;
S::S() {
if (b < 1.9 || b > 2.1)
abort
www.eeworm.com/read/162614/5518392
c float1.c
// PR optimization/11637
// Origin:
// This used to fail to assemble on x86 because a decimal
// floating point litteral was emitted, which originated
// from a bogus REG_EQUAL note no
www.eeworm.com/read/162614/5527389
c float-floor.c
double d = 1024.0 - 1.0 / 32768.0;
extern double floor(double);
extern float floorf(float);
extern void abort();
int main() {
double df = floor(d);
float f1 = (float)floor(d);
if ((int)
www.eeworm.com/read/347503/3171259
s float03.s
# fix, ftrunc, pfgt, pfle, pfeq
.text
# Non-pipelined, without dual bit
fix.sd %f2,%f4
fix.dd %f6,%f8
ftrunc.sd %f8,%f10
ftrunc.dd %f12,%f14
# Pipelined, without dual bit
pfix.sd %f30,%f
www.eeworm.com/read/347503/3171262
s float02.s
# frcp, frsqr, famov
.text
# Without dual bit
frcp.ss %f0,%f1
frcp.sd %f2,%f4
frcp.dd %f6,%f8
frsqr.ss %f5,%f6
frsqr.sd %f8,%f10
frsqr.dd %f12,%f14
famov.ss %f1,%f31
famov.ds %f2,%f30
www.eeworm.com/read/347503/3171267
s float01.s
# fadd, fsub, fmul, pfmul3, fmlow
.text
# Non-pipelined, without dual bit
fadd.ss %f0,%f1,%f2
fadd.sd %f2,%f3,%f4
fadd.dd %f6,%f8,%f10
fsub.ss %f5,%f6,%f7
fsub.sd %f8,%f9,%f10
fsub.dd %f12
www.eeworm.com/read/347503/3171303
d float03.d
#as:
#objdump: -dr
#name: i860 float03
.*: +file format .*
Disassembly of section \.text:
00000000 :
0: b2 10 04 48 fix.sd %f2,%f4
4: b2 31 08 48 fix.dd %f6,%f8
8: ba 40 0a 48 f