- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 150 for Point (0.12 sec)
-
src/cmd/compile/internal/ssa/bench_test.go
fn(a[i]-a[i-1], a[i+len(a)/2-2]-a[i+len(a)/2-1]) } } } type Point struct { X, Y int } //go:noinline func sign(p1, p2, p3 Point) bool { return (p1.X-p3.X)*(p2.Y-p3.Y)-(p2.X-p3.X)*(p1.Y-p3.Y) < 0 } func BenchmarkInvertLessThanNoov(b *testing.B) { p1 := Point{1, 2} p2 := Point{2, 3} p3 := Point{3, 4} for i := 0; i < b.N; i++ { sign(p1, p2, p3) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 21 02:36:06 UTC 2023 - 835 bytes - Viewed (0) -
tests/scanner_valuer_test.go
} type NullString struct { sql.NullString } type Point struct { X, Y int } func (point Point) GormDataType() string { return "geo" } func (point Point) GormValue(ctx context.Context, db *gorm.DB) clause.Expr { return clause.Expr{ SQL: "ST_PointFromText(?)", Vars: []interface{}{fmt.Sprintf("POINT(%d %d)", point.X, point.Y)}, } } func TestGORMValuer(t *testing.T) {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 07 07:02:07 UTC 2023 - 10.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/dep3/dep3.go
package dep3 // The point of this test file is that it references a type from // depBase that is also referenced in dep2, but dep2 is loaded by the // linker before depBase (because it is earlier in the import list). // There was a bug in the linker where it would not correctly read out // the type data in this case and later crash. import ( "testshared/dep2" "testshared/depBase" ) type Dep3 struct { dep depBase.Dep dep2 dep2.Dep2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 503 bytes - Viewed (0) -
src/cmd/internal/obj/riscv/cpu.go
AFCLASSS // 12.3: Double-Precision Load and Store Instructions AFLD AFSD // 12.4: Double-Precision Floating-Point Computational Instructions AFADDD AFSUBD AFMULD AFDIVD AFMIND AFMAXD AFSQRTD AFMADDD AFMSUBD AFNMADDD AFNMSUBD // 12.5: Double-Precision Floating-Point Conversion and Move Instructions AFCVTWD AFCVTLD AFCVTDW
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 14:19:33 UTC 2024 - 13.1K bytes - Viewed (0) -
src/cmd/internal/obj/s390x/a.out.go
NFREG = 16 // number of floating point registers ) const ( // General purpose registers (GPRs). REG_R0 = obj.RBaseS390X + iota REG_R1 REG_R2 REG_R3 REG_R4 REG_R5 REG_R6 REG_R7 REG_R8 REG_R9 REG_R10 REG_R11 REG_R12 REG_R13 REG_R14 REG_R15 // Floating point registers (FPRs). REG_F0 REG_F1 REG_F2 REG_F3 REG_F4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 16:41:03 UTC 2023 - 12.4K bytes - Viewed (0) -
src/cmd/internal/obj/plist.go
pcdata.To.Type = TYPE_CONST pcdata.To.Offset = -1 return pcdata } // StartUnsafePoint generates PCDATA Progs after p to mark the // beginning of an unsafe point. The unsafe point starts immediately // after p. // It returns the last Prog generated. func (ctxt *Link) StartUnsafePoint(p *Prog, newprog ProgAlloc) *Prog { pcdata := Appendp(p, newprog) pcdata.As = APCDATA
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 11.5K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/testdata/issue42580.go
doublePointerChecked = []byte{1} singleInnerPointerChecked = []byte{1} ) // This test checks the positions of variable identifiers. // Changing the positions of the test variables idents after this point will break the test. func TestSingleArgumentCast() C.int { retcode := C.func_with_char((*C.char)(unsafe.Pointer(&checkedPointer[0])), unsafe.Pointer(C.strarg)) return retcode }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/scanner_test.go
{IntLit, "0b01a0", "0b01 a0", ""}, // only accept 0-9 {FloatLit, "0b.", "0b.", "invalid radix point in binary literal"}, {FloatLit, "0b.1", "0b.1", "invalid radix point in binary literal"}, {FloatLit, "0b1.0", "0b1.0", "invalid radix point in binary literal"}, {FloatLit, "0b1e10", "0b1e10", "'e' exponent requires decimal mantissa"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 16:11:21 UTC 2022 - 21.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testgodefs/testdata/main.go
package main import ( "fmt" "os" "reflect" ) // Test that the struct field in anonunion.go was promoted. var v1 T var v2 = v1.L // Test that P, Q, and R all point to byte. var v3 = Issue8478{P: (*byte)(nil), Q: (**byte)(nil), R: (***byte)(nil)} // Test that N, A and B are fully defined var v4 = N{} var v5 = A{} var v6 = B{} // Test that S is fully defined var v7 = S{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/copyelim.go
w = w.Args[0] if w == slow { w.reset(OpUnknown) break } if advance { slow = slow.Args[0] } advance = !advance } // The answer is w. Update all the copies we saw // to point directly to w. Doing this update makes // sure that we don't end up doing O(n^2) work // for a chain of n copies. for v != w { x := v.Args[0] v.SetArg(0, w) v = x } return w }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 14:55:18 UTC 2024 - 3.5K bytes - Viewed (0)