- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for eq_ssa (0.1 sec)
-
src/cmd/compile/internal/test/testdata/cmp_test.go
package main import "testing" //go:noinline func eq_ssa(a int64) bool { return 4+a == 10 } //go:noinline func neq_ssa(a int64) bool { return 10 != a+4 } func testCmp(t *testing.T) { if wanted, got := true, eq_ssa(6); wanted != got { t.Errorf("eq_ssa: expected %v, got %v\n", wanted, got) } if wanted, got := false, eq_ssa(7); wanted != got { t.Errorf("eq_ssa: expected %v, got %v\n", wanted, got) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 903 bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/unsafe_test.go
// uintptr cast above. var z uintptr if always { z = y } else { z = 0 } return (*[8]uint)(unsafe.Pointer(z)) } // g_ssa is the same as f_ssa, but with a bit of pointer // arithmetic for added insanity. func g_ssa() *[7]uint { // Make x a uintptr pointing to where a points. var x uintptr if always { x = uintptr(unsafe.Pointer(a)) } else { x = 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/assert_test.go
func (s *S) F() {} func (u *U) F() {} func e2t_ssa(e interface{}) *U { return e.(*U) } func i2t_ssa(i I) *U { return i.(*U) } func testAssertE2TOk(t *testing.T) { if got := e2t_ssa(u); got != u { t.Errorf("e2t_ssa(u)=%v want %v", got, u) } } func testAssertE2TPanic(t *testing.T) { var got *U defer func() { if got != nil { t.Errorf("e2t_ssa(s)=%v want nil", got) } e := recover()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 2.5K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/short_test.go
// license that can be found in the LICENSE file. // Tests short circuiting. package main import "testing" func and_ssa(arg1, arg2 bool) bool { return arg1 && rightCall(arg2) } func or_ssa(arg1, arg2 bool) bool { return arg1 || rightCall(arg2) } var rightCalled bool //go:noinline func rightCall(v bool) bool { rightCalled = true return v panic("unreached") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 1.5K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/addressed_test.go
} func assertEqual(t *testing.T, x, y int) { if x != y { mypanic(t, fmt.Sprintf("assertEqual failed got %d, want %d", x, y)) } } func TestAddressed(t *testing.T) { x := f1_ssa(2, 3) output += fmt.Sprintln("*x is", *x) output += fmt.Sprintln("Gratuitously use some stack") output += fmt.Sprintln("*x is", *x) assertEqual(t, *x, 9) w := f3a_ssa(6) output += fmt.Sprintln("*w is", *w)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 4.4K bytes - Viewed (0) -
test/fixedbugs/issue12347.go
// compile // Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p func f_ssa(x int, p *int) { if false { y := x + 5 for { *p = y } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 263 bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/zeroGen.go
fmt.Fprintf(w, " mid [%d]byte\n", s) fmt.Fprintf(w, " post [8]byte\n") fmt.Fprintf(w, "}\n") // function being tested fmt.Fprintf(w, "//go:noinline\n") fmt.Fprintf(w, "func zero%d_ssa(x *[%d]byte) {\n", s, s) fmt.Fprintf(w, " *x = [%d]byte{}\n", s) fmt.Fprintf(w, "}\n") // testing harness fmt.Fprintf(w, "func testZero%d(t *testing.T) {\n", s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 4.1K bytes - Viewed (0) -
docs/pt/docs/async.md
### Concorrência e hambúrgueres Essa idéia de código **assíncrono** descrito acima é algo às vezes chamado de **"concorrência"**. E é diferente de **"paralelismo"**. **Concorrência** e **paralelismo** ambos são relacionados a "diferentes coisas acontecendo mais ou menos ao mesmo tempo". Mas os detalhes entre *concorrência* e *paralelismo* são bem diferentes. Para ver essa diferença, imagine a seguinte história sobre hambúrgueres:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 22.2K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/fp_test.go
var inf64 float64 = 1.0 / zero64 var nan64 float64 = sub64_ssa(inf64, inf64) cmpOpTest(t, "!=", ne64_ssa, nebr64_ssa, ne32_ssa, nebr32_ssa, zero64, one64, inf64, nan64, 0x01111) cmpOpTest(t, "==", eq64_ssa, eqbr64_ssa, eq32_ssa, eqbr32_ssa, zero64, one64, inf64, nan64, 0x10000) cmpOpTest(t, "<=", le64_ssa, lebr64_ssa, le32_ssa, lebr32_ssa, zero64, one64, inf64, nan64, 0x11100)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 35K bytes - Viewed (0) -
docs/pt/docs/tutorial/query-params-str-validations.md
# Parâmetros de consulta e validações de texto O **FastAPI** permite que você declare informações adicionais e validações aos seus parâmetros. Vamos utilizar essa aplicação como exemplo: ```Python hl_lines="9" {!../../../docs_src/query_params_str_validations/tutorial001.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 9.3K bytes - Viewed (0)