Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for check_size (0.14 sec)

  1. src/crypto/internal/boring/build-goboring.sh

    # Also collect list of checked symbols in syms.txt
    set -e
    cd /boring/godriver
    cat >goboringcrypto.cc <<'EOF'
    #include <cassert>
    #include "goboringcrypto0.h"
    #include "goboringcrypto1.h"
    #define check_size(t) if(sizeof(t) != sizeof(GO_ ## t)) {printf("sizeof(" #t ")=%d, but sizeof(GO_" #t ")=%d\n", (int)sizeof(t), (int)sizeof(GO_ ## t)); ret=1;}
    #define check_func(f) { auto x = f; x = _goboringcrypto_ ## f ; }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/size.go

    // is needed immediately.  CheckSize makes sure the
    // size is evaluated eventually.
    
    var deferredTypeStack []*Type
    
    func CheckSize(t *Type) {
    	if t == nil {
    		return
    	}
    
    	// function arg structs should not be checked
    	// outside of the enclosing function.
    	if t.IsFuncArgStruct() {
    		base.Fatalf("CheckSize %v", t)
    	}
    
    	if defercalc == 0 {
    		CalcSize(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_minimize_dirty_cov.txt

    go run check_file/main.go $GOCACHE/fuzz/FuzzCovMin ab
    
    -- go.mod --
    module test
    
    -- covmin_test.go --
    package covmin
    
    import "testing"
    
    func FuzzCovMin(f *testing.F) {
    	f.Add([]byte("aa"))
    	f.Fuzz(func(t *testing.T, data []byte) {
    		if len(data) == 2 && data[0] == 'a' && data[1] == 'b' {
    			return
    		}
    	})
    }
    
    -- check_file/main.go --
    package main
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.cc

      auto shape = type.getShape();
      int64_t chunk_size =
          std::accumulate(std::next(shape.begin(), quantization_dim_ + 1),
                          shape.end(), 1, std::multiplies<int64_t>());
      Type new_element_type =
          IntegerType::get(attr.getContext(), storage_bit_width_);
      return attr.mapValues(new_element_type, [&](const APFloat &old) {
        int chunk_index = flatten_index / chunk_size;
        flatten_index++;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. docs/en/docs/reference/responses.md

                - headers
                - set_cookie
                - delete_cookie
    
    ## Starlette Responses
    
    ::: fastapi.responses.FileResponse
        options:
            members:
                - chunk_size
                - charset
                - status_code
                - media_type
                - body
                - background
                - raw_headers
                - render
                - init_headers
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. docs/de/docs/reference/responses.md

                - headers
                - set_cookie
                - delete_cookie
    
    ## Starlette-Responses
    
    ::: fastapi.responses.FileResponse
        options:
            members:
                - chunk_size
                - charset
                - status_code
                - media_type
                - body
                - background
                - raw_headers
                - render
                - init_headers
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Feb 19 15:53:39 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. src/os/os_test.go

    	defer Remove(f.Name())
    	defer f.Close()
    
    	checkSize(t, f, 0)
    	f.Write([]byte("hello, world\n"))
    	checkSize(t, f, 13)
    	f.Truncate(10)
    	checkSize(t, f, 10)
    	f.Truncate(1024)
    	checkSize(t, f, 1024)
    	f.Truncate(0)
    	checkSize(t, f, 0)
    	_, err := f.Write([]byte("surprise!"))
    	if err == nil {
    		checkSize(t, f, 13+9) // wrote at offset past where hello, world was.
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/expr.go

    	base.Errorf("cannot use promoted field %v in struct literal of type %v", strings.Join(ep, "."), typ)
    	return nil
    }
    
    // tcConv typechecks an OCONV node.
    func tcConv(n *ir.ConvExpr) ir.Node {
    	types.CheckSize(n.Type()) // ensure width is calculated for backend
    	n.X = Expr(n.X)
    	n.X = convlit1(n.X, n.Type(), true, nil)
    	t := n.X.Type()
    	if t == nil || n.Type() == nil {
    		n.SetType(nil)
    		return n
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/func.go

    		n.SetType(l.Type())
    		return tcConv(n)
    	}
    
    	RewriteNonNameCall(n)
    	typecheckargs(n)
    	t := l.Type()
    	if t == nil {
    		n.SetType(nil)
    		return n
    	}
    	types.CheckSize(t)
    
    	switch l.Op() {
    	case ir.ODOTINTER:
    		n.SetOp(ir.OCALLINTER)
    
    	case ir.ODOTMETH:
    		l := l.(*ir.SelectorExpr)
    		n.SetOp(ir.OCALLMETH)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/expr.go

    	// Eagerly compute sizes of all expressions for the back end.
    	if typ := n.Type(); typ != nil && typ.Kind() != types.TBLANK && !typ.IsFuncArgStruct() {
    		types.CheckSize(typ)
    	}
    	if n, ok := n.(*ir.Name); ok && n.Heapaddr != nil {
    		types.CheckSize(n.Heapaddr.Type())
    	}
    	if ir.IsConst(n, constant.String) {
    		// Emit string symbol now to avoid emitting
    		// any concurrently during the backend.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top