Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for negZero (0.17 sec)

  1. src/cmd/compile/internal/test/float_test.go

    	}
    	if sNegInf != sNegInf {
    		t.Errorf("sNegInf != sNegInf returned true")
    	}
    	sNegZero := float32(math.Copysign(0, -1))
    	if sNegZero != 0 {
    		t.Errorf("sNegZero != 0 returned true")
    	}
    	if sNegZero < 0 {
    		t.Errorf("sNegZero < 0 returned true")
    	}
    	if 0 > sNegZero {
    		t.Errorf("0 > sNegZero returned true")
    	}
    }
    
    //go:noinline
    func cvt1(a float64) uint64 {
    	return uint64(a)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  2. src/math/pow_s390x.s

    #include "textflag.h"
    
    #define PosInf   0x7FF0000000000000
    #define NaN      0x7FF8000000000001
    #define NegInf   0xFFF0000000000000
    #define PosOne   0x3FF0000000000000
    #define NegOne   0xBFF0000000000000
    #define NegZero  0x8000000000000000
    
    // Minimax polynomial approximation
    DATA ·powrodataL51<> + 0(SB)/8, $-1.0
    DATA ·powrodataL51<> + 8(SB)/8, $1.0
    DATA ·powrodataL51<> + 16(SB)/8, $0.24022650695910110361E+00
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  3. src/runtime/map_test.go

    			for i := 0; i < 100; i++ {
    				m[FloatInt{3.0, i}] = 0
    			}
    			// then change all the entries
    			// to negative zero
    			m[FloatInt{negzero, 0}] = 1 | 16
    			m[FloatInt{negzero, 1}] = 2 | 16
    			m[FloatInt{negzero, 2}] = 4 | 16
    			m[FloatInt{negzero, 3}] = 8 | 16
    			growflag = false
    		}
    	}
    	if s != 15 {
    		t.Error("entry missing", s)
    	}
    	if cnt != 4 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/arm64/obj7.go

    	"cmd/internal/src"
    	"cmd/internal/sys"
    	"internal/abi"
    	"internal/buildcfg"
    	"log"
    	"math"
    )
    
    // zrReplace is the set of instructions for which $0 in the From operand
    // should be replaced with REGZERO.
    var zrReplace = map[obj.As]bool{
    	AMOVD:  true,
    	AMOVW:  true,
    	AMOVWU: true,
    	AMOVH:  true,
    	AMOVHU: true,
    	AMOVB:  true,
    	AMOVBU: true,
    	ASBC:   true,
    	ASBCW:  true,
    	ASBCS:  true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 05:46:32 UTC 2023
    - 28.4K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/loong64/obj.go

    				p.From.Reg = REGZERO
    				break
    			}
    			p.From.Type = obj.TYPE_MEM
    			p.From.Sym = ctxt.Float32Sym(f32)
    			p.From.Name = obj.NAME_EXTERN
    			p.From.Offset = 0
    		}
    
    	case AMOVD:
    		if p.From.Type == obj.TYPE_FCONST {
    			f64 := p.From.Val.(float64)
    			if math.Float64bits(f64) == 0 {
    				p.As = AMOVV
    				p.From.Type = obj.TYPE_REG
    				p.From.Reg = REGZERO
    				break
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:22:18 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/arm64/a.out.go

    	REGLINK = REG_R30
    
    	// ARM64 uses R31 as both stack pointer and zero register,
    	// depending on the instruction. To differentiate RSP from ZR,
    	// we use a different numeric value for REGZERO and REGSP.
    	REGZERO = REG_R31
    	REGSP   = REG_RSP
    
    	FREGRET = REG_F0
    	FREGMIN = REG_F7  // first register variable
    	FREGMAX = REG_F26 // last register variable for 7g only
    	FREGEXT = REG_F26 // first external register
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 17:56:30 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/mips/obj0.go

    	switch p.As {
    	case AMOVF:
    		if p.From.Type == obj.TYPE_FCONST {
    			f32 := float32(p.From.Val.(float64))
    			if math.Float32bits(f32) == 0 {
    				p.As = AMOVW
    				p.From.Type = obj.TYPE_REG
    				p.From.Reg = REGZERO
    				break
    			}
    			p.From.Type = obj.TYPE_MEM
    			p.From.Sym = ctxt.Float32Sym(f32)
    			p.From.Name = obj.NAME_EXTERN
    			p.From.Offset = 0
    		}
    
    	case AMOVD:
    		if p.From.Type == obj.TYPE_FCONST {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:28:53 UTC 2023
    - 30.6K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/ppc64/a.out.go

    	REG_CRBIT0 = REG_CR0LT // An alias for a Condition Register bit 0
    
    	REG_SPR0 = obj.RBasePPC64 + 1024 // first of 1024 registers
    
    	REG_XER = REG_SPR0 + 1
    	REG_LR  = REG_SPR0 + 8
    	REG_CTR = REG_SPR0 + 9
    
    	REGZERO = REG_R0 /* set to zero */
    	REGSP   = REG_R1
    	REGSB   = REG_R2
    	REGRET  = REG_R3
    	REGARG  = -1      /* -1 disables passing the first argument in register */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 18:50:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/PPC64Ops.go

    //  - *const instructions may use a constant larger than the instruction can encode.
    //    In this case the assembler expands to multiple instructions and uses tmp
    //    register (R31).
    
    var regNamesPPC64 = []string{
    	"R0", // REGZERO, not used, but simplifies counting in regalloc
    	"SP", // REGSP
    	"SB", // REGSB
    	"R3",
    	"R4",
    	"R5",
    	"R6",
    	"R7",
    	"R8",
    	"R9",
    	"R10",
    	"R11", // REGCTXT for closures
    	"R12",
    	"R13", // REGTLS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/ppc64/obj9.go

    		case obj.ATEXT:
    			q = p
    
    			p.Mark |= LABEL | LEAF | SYNC
    			if p.Link != nil {
    				p.Link.Mark |= LABEL
    			}
    
    		case ANOR:
    			q = p
    			if p.To.Type == obj.TYPE_REG {
    				if p.To.Reg == REGZERO {
    					p.Mark |= LABEL | SYNC
    				}
    			}
    
    		case ALWAR,
    			ALBAR,
    			ASTBCCC,
    			ASTWCCC,
    			AEIEIO,
    			AICBI,
    			AISYNC,
    			ATLBIE,
    			ATLBIEL,
    			ASLBIA,
    			ASLBIE,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
Back to top