Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for sqrt (0.2 sec)

  1. src/cmd/cgo/doc.go

    assignment context to retrieve both the return value (if any) and the
    C errno variable as an error (use _ to skip the result value if the
    function returns void). For example:
    
    	n, err = C.sqrt(-1)
    	_, err := C.voidFunc()
    	var n, err = C.sqrt(1)
    
    Calling C function pointers is currently not supported, however you can
    declare Go variables which hold C function pointers and pass them
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  2. cmd/metacache-walk.go

    				meta.name = strings.TrimSuffix(meta.name, SlashSeparator)
    				meta.name = pathJoinBuf(sb, current, meta.name)
    
    				return send(meta)
    			}
    			// Skip all other files.
    		}
    
    		// Process in sort order.
    		sort.Strings(entries)
    		dirStack := make([]string, 0, 5)
    		prefix = "" // Remove prefix after first level as we have already filtered the list.
    		if len(forward) > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  3. internal/kms/context.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package kms
    
    import (
    	"bytes"
    	"sort"
    	"unicode/utf8"
    )
    
    // Context is a set of key-value pairs that
    // are associated with a generate data encryption
    // key (DEK).
    //
    // A KMS implementation may bind the context to the
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 6K bytes
    - Viewed (0)
  4. src/cmd/api/main_test.go

    }
    
    func compareAPI(w io.Writer, features, required, exception []string) (ok bool) {
    	ok = true
    
    	featureSet := set(features)
    	exceptionSet := set(exception)
    
    	sort.Strings(features)
    	sort.Strings(required)
    
    	take := func(sl *[]string) string {
    		s := (*sl)[0]
    		*sl = (*sl)[1:]
    		return s
    	}
    
    	for len(features) > 0 || len(required) > 0 {
    		switch {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  5. cmd/object-api-interface.go

    // WalkVersionsSortOrder represents the sort order in which versions of an
    // object should be returned by ObjectLayer.Walk method
    type WalkVersionsSortOrder uint8
    
    const (
    	// WalkVersionsSortAsc - Sort in ascending order of ModTime
    	WalkVersionsSortAsc WalkVersionsSortOrder = iota
    	// WalkVersionsSortDesc - Sort in descending order of ModTime
    	WalkVersionsSortDesc
    )
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  6. istioctl/pkg/kubeinject/kubeinject.go

    	sortBy := func(pods []*corev1.Pod) sort.Interface { return sort.Reverse(podutils.ActivePods(pods)) }
    	podList, err := client.Pods(namespace).List(context.TODO(), options)
    	if err != nil {
    		return nil, err
    	}
    	pods := make([]*corev1.Pod, 0, len(podList.Items))
    	for i := range podList.Items {
    		pod := podList.Items[i]
    		pods = append(pods, &pod)
    	}
    	if len(pods) > 0 {
    		sort.Sort(sortBy(pods))
    		return pods[0], nil
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  7. istioctl/pkg/authz/listener.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package authz
    
    import (
    	"fmt"
    	"io"
    	"regexp"
    	"sort"
    	"strings"
    	"text/tabwriter"
    
    	listener "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3"
    	rbacpb "github.com/envoyproxy/go-control-plane/envoy/config/rbac/v3"
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  8. cmd/signature-v4.go

    // types.
    // - Based on Authorization header.
    // - Based on Query parameters.
    // - Based on Form POST policy.
    package cmd
    
    import (
    	"bytes"
    	"crypto/subtle"
    	"encoding/hex"
    	"net/http"
    	"net/url"
    	"sort"
    	"strconv"
    	"strings"
    	"time"
    
    	"github.com/minio/minio-go/v7/pkg/s3utils"
    	"github.com/minio/minio-go/v7/pkg/set"
    	"github.com/minio/minio/internal/auth"
    	"github.com/minio/minio/internal/hash/sha256"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/envoy/configdump/cluster.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package configdump
    
    import (
    	"encoding/json"
    	"fmt"
    	"sort"
    	"strings"
    	"text/tabwriter"
    
    	cluster "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/istioctl/pkg/util/proto"
    	"istio.io/istio/pilot/pkg/model"
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  10. cmd/admin-handlers_test.go

    	// 	}
    	// }
    
    	check := func(exp, got madmin.LockEntries) (int, bool) {
    		if len(exp) != len(got) {
    			return 0, false
    		}
    		sort.Slice(exp, byResourceUID{exp}.Less)
    		sort.Slice(got, byResourceUID{got}.Less)
    		// printEntries(exp)
    		// printEntries(got)
    		for i, e := range exp {
    			if !e.Timestamp.Equal(got[i].Timestamp) {
    				return i, false
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.8K bytes
    - Viewed (0)
Back to top