Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for sumpf (0.04 sec)

  1. test/ken/array.go

    	setpd(a)
    
    	a = a[0:10]
    	res(sumpd(a), 0, 10)
    
    	a = a[5:25]
    	res(sumpd(a), 5, 25)
    
    	a = a[30:95]
    	res(sumpd(a), 35, 100)
    }
    
    // call ptr fixed with ptr fixed
    func testpfpf() {
    	var a [20]int
    
    	setpf(&a)
    	res(sumpf(&a), 0, 20)
    }
    
    // call ptr dynamic with ptr fixed from new
    func testpdpf1() {
    	a := new([40]int)
    	setpd(a[0:])
    	res(sumpd(a[0:]), 0, 40)
    
    	b := (*a)[5:30]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 2.3K bytes
    - Viewed (0)
  2. test/ddd.go

    		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)
    		panic("fail")
    	}
    	if x := sum2(); x != 2*0 {
    		println("sum 0", x)
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.2K bytes
    - Viewed (0)
  3. .teamcity/src/main/kotlin/model/bucket-extensions.kt

            return noElementSplitFunction(expectedBucketNumber)
        }
        if (expectedBucketNumber == 1) {
            return listOf(smallElementAggregateFunction(list))
        }
    
        val expectedBucketSize = list.sumOf(toIntFunction) / expectedBucketNumber
    
        if (expectedBucketSize == 0) {
            // The elements in the list are so small that they can't even be divided into {expectedBucketNumber}.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 17 05:17:44 UTC 2022
    - 4K bytes
    - Viewed (0)
  4. .teamcity/src/main/kotlin/model/FunctionalTestBucketGenerator.kt

            parallelizationMethod
        )
    }
    
    class SubprojectTestClassTime(
        val subProject: GradleSubproject,
        testClassTimes: List<TestClassTime> = emptyList()
    ) {
        val totalTime: Int = testClassTimes.sumOf { it.buildTimeMs }
    
        override fun toString(): String {
            return "SubprojectTestClassTime(subProject=${subProject.name}, totalTime=$totalTime)"
        }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 17:04:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

    }
    
    data class TestProjectDuration(val testProject: String, val scenarioDurations: List<PerformanceTestDuration>) {
        val totalTime: Int = scenarioDurations.sumOf { it.durationInMs }
    
        fun split(expectedBucketNumber: Int): List<PerformanceTestBucket> {
            return if (expectedBucketNumber == 1 || scenarioDurations.size == 1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 19 11:22:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top