- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 722 for sumC (0.04 sec)
-
test/ddd.go
println("sum 9", x) panic("fail") } if x := sumC(4, 5, 6); x != 15 { println("sumC 15", x) panic("fail") } if x := sumD(4, 5, 7); x != 16 { println("sumD 16", x) panic("fail") } if x := sumE(4, 5, 8); x != 17 { println("sumE 17", x) panic("fail") } if x := sumF(4, 5, 9)(); x != 18 { println("sumF 18", x) panic("fail") } if x := sum2(1, 2, 3); x != 2*6 { println("sum 6", x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 4.2K bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
// calling convention by default, since this is redundant with the existing // tests. var cbFuncsRegABI = []cbFunc{ {sum2}, {sum3}, {sum4}, {sum5}, {sum6}, {sum7}, {sum8}, {sum9}, {sum10}, {sum9uint8}, {sum9uint16}, {sum9int8}, {sum5mix}, {sum5andPair}, {sum9andGC}, } func getCallbackTestFuncs() []cbFunc {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0) -
src/hash/maphash/maphash_test.go
h1 := new(Hash) h1.WriteString("testing") sum1 := h1.Sum64() h1.Reset() h1.WriteString("testing") sum2 := h1.Sum64() if sum1 != sum2 { t.Errorf("different sum after resetting: %#x != %#x", sum1, sum2) } h2 := new(Hash) h2.SetSeed(h1.Seed()) h2.WriteString("testing") sum3 := h2.Sum64() if sum1 != sum3 { t.Errorf("different sum on the same seed: %#x != %#x", sum1, sum3) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 5.2K bytes - Viewed (0) -
src/hash/marshal_test.go
t.Fatalf("UnmarshalBinary: %v", err) } h2.Write(buf[split:]) h3.Write(buf[split:]) sum2 := h2.Sum(nil) sum3 := h3.Sum(nil) if !bytes.Equal(sum2, sum) { t.Fatalf("Sum after MarshalBinary = %x, want %x", sum2, sum) } if !bytes.Equal(sum3, sum) { t.Fatalf("Sum after UnmarshalBinary = %x, want %x", sum3, sum) } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 06 07:45:46 UTC 2017 - 5.4K bytes - Viewed (0) -
test/typeparam/sum.go
package main import ( "fmt" ) func Sum[T interface{ int | float64 }](vec []T) T { var sum T for _, elt := range vec { sum = sum + elt } return sum } func Abs(f float64) float64 { if f < 0.0 { return -f } return f } func main() { vec1 := []int{3, 4} vec2 := []float64{5.8, 9.6} got := Sum[int](vec1) want := vec1[0] + vec1[1] if got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 923 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/assembler/groovy/src/main/headers/sum.h
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 159 bytes - Viewed (0) -
platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateAssemblerBaseNamesTestApp.groovy
extern int sum1(int a, int b) asm("_sum1"); extern int sum2(int a, int b) asm("_sum2"); #endif int main () { printf("foo%dfoo%d", sum1(1, 0), sum2(1, 1)); fflush(stdout); return 0; } """), sourceFile("asm", "foo1/sum.s", getAsmSource("sum1")),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 2.3K bytes - Viewed (0) -
test/ddd1.go
package main import "unsafe" func sum(args ...int) int { return 0 } var ( _ = sum(1, 2, 3) _ = sum() _ = sum(1.0, 2.0) _ = sum(1.5) // ERROR "1\.5 .untyped float constant. as int|integer" _ = sum("hello") // ERROR ".hello. (.untyped string constant. as int|.type untyped string. as type int)|incompatible" _ = sum([]int{1}) // ERROR "\[\]int{.*}.*as int value" ) func sum3(int, int, int) int { return 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 22:28:39 UTC 2022 - 1.7K bytes - Viewed (0) -
platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/MixedLanguageHelloWorldApp.groovy
// Ensure consistent asm name mapping on all platforms #if !defined(_MSC_VER) extern int sumx(int a, int b) asm("_sumx"); #endif int DLL_FUNC sum(int a, int b) { return sumx(a, b); } """), new SourceFile("asm", "sum.s", getAsmSource()) ] } protected def getAsmSource() { if (toolChain.isVisualCpp()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 3.7K bytes - Viewed (0) -
hack/tools/go.sum
Stephen Kitt <******@****.***> 1696262516 +0200
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 93.1K bytes - Viewed (0)