Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for optMap (0.14 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				"self.presentObj.?presentStr.optMap(v, v == 'value').hasValue()",
    				"self.?absentObj.?absentStr == optional.none()",
    				"self.?absentObj.?absentStr.or(optional.of('nope')) == optional.of('nope')",
    				"self.?absentObj.?absentStr.orValue('nope') == 'nope'",
    				"self.?absentObj.?absentStr.hasValue() == false",
    				"self.?absentObj.?absentStr.optMap(v, v == 'value').hasValue() == false",
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    				"optional.of('a').or(optional.of('a')).hasValue()":    2, // or() is short-circuited
    				"optional.none().or(optional.of('a')).hasValue()":     3,
    				"optional.of('a').optMap(v, v == 'value').hasValue()": 8,
    				"self.obj.?field == optional.of('a')":                 5,
    				"self.obj.?absentField == optional.none()":            4,
    				"self.obj.?field.orValue('v') == 'a'":                 4,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  3. test/fixedbugs/bug315.go

    // license that can be found in the LICENSE file.
    
    // Issue 1368.
    
    package main
    
    func main() {
    	a := complex(2, 2)
    	a /= 2
    }
    
    /*
    bug315.go:13: internal compiler error: optoas: no entry DIV-complex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 321 bytes
    - Viewed (0)
  4. src/cmd/internal/obj/ppc64/asm9_gtables.go

    }
    
    // brw RA,RS
    func type_brw(c *ctxt9, p *obj.Prog, t *Optab, out *[5]uint32) {
    	o0 := GenOpcodes[p.As-AXXSETACCZ]
    	o0 |= uint32(p.To.Reg&0x1f) << 16   // RA
    	o0 |= uint32(p.From.Reg&0x1f) << 21 // RS
    	out[0] = o0
    }
    
    // hashchkp RB,offset(RA)
    func type_hashchkp(c *ctxt9, p *obj.Prog, t *Optab, out *[5]uint32) {
    	o0 := GenOpcodes[p.As-AXXSETACCZ]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 20:18:50 UTC 2022
    - 42.6K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/ppc64/asm9.go

    	{Optab: Optab{as: AMOVD, a1: C_LACON, a6: C_REG, type_: 26, size: 8}, minGOPPC64: 10, pfxsize: 8},
    	{Optab: Optab{as: AMOVD, a1: C_LOREG, a6: C_REG, type_: 36, size: 8}, minGOPPC64: 10, pfxsize: 8},
    	{Optab: Optab{as: AMOVD, a1: C_REG, a6: C_LOREG, type_: 35, size: 8}, minGOPPC64: 10, pfxsize: 8},
    	{Optab: Optab{as: AMOVD, a1: C_REG, a6: C_ADDR, type_: 74, size: 8}, minGOPPC64: 10, pfxsize: 8},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:55:28 UTC 2024
    - 156.1K bytes
    - Viewed (0)
  6. test/fixedbugs/bug082.go

    func main() {
    	x := 0
    	x = ^x // unary ^ not yet implemented
    	if x != ^0 {
    		println(x, " ", ^0)
    		panic("fail")
    	}
    }
    
    /*
    uetli:~/Source/go/test/bugs gri$ 6g bug082.go
    bug082.go:7: fatal error: optoas: no entry COM-<int32>INT32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 413 bytes
    - Viewed (0)
  7. src/sync/map_test.go

    	opLoadAndDelete    = mapOp("LoadAndDelete")
    	opDelete           = mapOp("Delete")
    	opSwap             = mapOp("Swap")
    	opCompareAndSwap   = mapOp("CompareAndSwap")
    	opCompareAndDelete = mapOp("CompareAndDelete")
    	opClear            = mapOp("Clear")
    )
    
    var mapOps = [...]mapOp{
    	opLoad,
    	opStore,
    	opLoadOrStore,
    	opLoadAndDelete,
    	opDelete,
    	opSwap,
    	opCompareAndSwap,
    	opCompareAndDelete,
    	opClear,
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/mips/asm0.go

    			if cmp(n, i) {
    				xcmp[i][n] = true
    			}
    		}
    	}
    	for n = 0; optab[n].as != obj.AXXX; n++ {
    	}
    	sort.Sort(ocmp(optab[:n]))
    	for i := 0; i < n; i++ {
    		r := optab[i].as
    		r0 := r & obj.AMask
    		start := i
    		for optab[i].as == r {
    			i++
    		}
    		oprange[r0] = optab[start:i]
    		i--
    
    		switch r {
    		default:
    			ctxt.Diag("unknown op in build: %v", r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 17:46:09 UTC 2024
    - 53.6K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/loong64/asm.go

    			if cmp(n, i) {
    				xcmp[i][n] = true
    			}
    		}
    	}
    	for n = 0; optab[n].as != obj.AXXX; n++ {
    	}
    	sort.Sort(ocmp(optab[:n]))
    	for i := 0; i < n; i++ {
    		r := optab[i].as
    		r0 := r & obj.AMask
    		start := i
    		for optab[i].as == r {
    			i++
    		}
    		oprange[r0] = optab[start:i]
    		i--
    
    		switch r {
    		default:
    			ctxt.Diag("unknown op in build: %v", r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 61.8K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/arm/asm5.go

    			}
    		}
    	}
    	for n = 0; optab[n].as != obj.AXXX; n++ {
    		if optab[n].flag&LPCREL != 0 {
    			if ctxt.Flag_shared {
    				optab[n].size += int8(optab[n].pcrelsiz)
    			} else {
    				optab[n].flag &^= LPCREL
    			}
    		}
    	}
    
    	sort.Sort(ocmp(optab[:n]))
    	for i := 0; i < n; i++ {
    		r := optab[i].as
    		r0 := r & obj.AMask
    		start := i
    		for optab[i].as == r {
    			i++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 20:51:01 UTC 2023
    - 79.4K bytes
    - Viewed (0)
Back to top