Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 370 for biglen (0.1 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/scale_int.go

    	defer func() {
    		intPool.Put(divisor)
    		intPool.Put(exp)
    		intPool.Put(result)
    	}()
    
    	// divisor = 10^(dif)
    	// TODO: create loop up table if exp costs too much.
    	divisor.Exp(bigTen, exp.SetInt64(int64(dif)), nil)
    	// reuse exp
    	remainder := exp
    
    	// result = unscaled / divisor
    	// remainder = unscaled % divisor
    	result.DivMod(unscaled, divisor, remainder)
    	if remainder.Sign() != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 20:41:44 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  2. docs_src/bigger_applications/app_an/main.py

        prefix="/admin",
        tags=["admin"],
        dependencies=[Depends(get_token_header)],
        responses={418: {"description": "I'm a teapot"}},
    )
    
    
    @app.get("/")
    async def root():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 552 bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

        {!> ../../../docs_src/dependencies/tutorial006.py!}
        ```
    
    ## Dependencies для группы *операций путей*
    
    Позже, читая о том как структурировать большие приложения ([Bigger Applications - Multiple Files](../../tutorial/bigger-applications.md){.internal-link target=_blank}), возможно, многофайловые, вы узнаете как объявить единый параметр `dependencies` для всей группы *операций путей*.
    
    ## Глобальный Dependencies
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 06 15:43:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/const.go

    		check.representable(x, under(x.typ).(*Basic))
    		return
    	}
    
    	// Untyped integer values must not grow arbitrarily.
    	const prec = 512 // 512 is the constant precision
    	if x.val.Kind() == constant.Int && constant.BitLen(x.val) > prec {
    		op := opName(x.expr)
    		if op != "" {
    			op += " "
    		}
    		check.errorf(atPos(opPos), InvalidConstVal, "constant %soverflow", op)
    		x.val = constant.MakeUnknown()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/outbuf_test.go

    	}
    	if !ob.isMmapped() {
    		t.Errorf("should be mmapped")
    	}
    }
    
    // TestWriteLoc ensures that the math surrounding writeLoc is correct.
    func TestWriteLoc(t *testing.T) {
    	tests := []struct {
    		bufLen          int
    		off             int64
    		heapLen         int
    		lenToWrite      int64
    		expectedHeapLen int
    		writePos        int64
    		addressInHeap   bool
    	}{
    		{100, 0, 0, 100, 0, 0, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 08 20:03:01 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  6. src/io/ioutil/ioutil_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	filename := f.Name()
    	data := "Programming today is a race between software engineers striving to " +
    		"build bigger and better idiot-proof programs, and the Universe trying " +
    		"to produce bigger and better idiots. So far, the Universe is winning."
    
    	if err := WriteFile(filename, []byte(data), 0644); err != nil {
    		t.Fatalf("WriteFile %s: %v", filename, err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. src/os/read_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	defer f.Close()
    	defer Remove(f.Name())
    
    	msg := "Programming today is a race between software engineers striving to " +
    		"build bigger and better idiot-proof programs, and the Universe trying " +
    		"to produce bigger and better idiots. So far, the Universe is winning."
    
    	if err := WriteFile(f.Name(), []byte(msg), 0644); err != nil {
    		t.Fatalf("WriteFile %s: %v", f.Name(), err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/math/big/rat.go

    		Esize = Fsize - Msize1
    		Ebias = 1<<(Esize-1) - 1
    		Emin  = 1 - Ebias
    		Emax  = Ebias
    	)
    
    	// TODO(adonovan): specialize common degenerate cases: 1.0, integers.
    	alen := a.bitLen()
    	if alen == 0 {
    		return 0, true
    	}
    	blen := b.bitLen()
    	if blen == 0 {
    		panic("division by zero")
    	}
    
    	// 1. Left-shift A or B such that quotient A/B is in [1<<Msize1, 1<<(Msize2+1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/ip.go

    	return d.Addr
    }
    
    // Size returns the size of the IP address in bytes.
    // Used in the size estimation of the runtime cost.
    func (d IP) Size() ref.Val {
    	return types.Int(int(math.Ceil(float64(d.Addr.BitLen()) / 8)))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 11:02:33 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. src/go/types/const.go

    		check.representable(x, under(x.typ).(*Basic))
    		return
    	}
    
    	// Untyped integer values must not grow arbitrarily.
    	const prec = 512 // 512 is the constant precision
    	if x.val.Kind() == constant.Int && constant.BitLen(x.val) > prec {
    		op := opName(x.expr)
    		if op != "" {
    			op += " "
    		}
    		check.errorf(atPos(opPos), InvalidConstVal, "constant %soverflow", op)
    		x.val = constant.MakeUnknown()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top