Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for get32 (0.03 sec)

  1. src/cmd/internal/codesign/codesign.go

    }
    
    func FindCodeSigCmd(f *macho.File) (CodeSigCmd, bool) {
    	get32 := f.ByteOrder.Uint32
    	for _, l := range f.Loads {
    		data := l.Raw()
    		cmd := get32(data)
    		if cmd == LC_CODE_SIGNATURE {
    			return CodeSigCmd{
    				cmd,
    				get32(data[4:]),
    				get32(data[8:]),
    				get32(data[12:]),
    			}, true
    		}
    	}
    	return CodeSigCmd{}, false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:19 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/macho.go

    	var linkeditSeg, textSeg *macho.Segment
    	loadOff := int64(machoHeaderSize64)
    	get32 := mf.ByteOrder.Uint32
    	for _, l := range mf.Loads {
    		data := l.Raw()
    		cmd, sz := get32(data), get32(data[4:])
    		if cmd == LC_CODE_SIGNATURE {
    			sigOff = int64(get32(data[8:]))
    			sigSz = int64(get32(data[12:]))
    			csCmdOff = loadOff
    		}
    		if seg, ok := l.(*macho.Segment); ok {
    			switch seg.Name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  3. tests/test_ambiguous_params.py

            @app.get("/")
            async def get2(foo: Annotated[int, Depends(dep)] = Depends(dep)):
                pass  # pragma: nocover
    
        with pytest.raises(
            AssertionError,
            match=(
                "Cannot specify a FastAPI annotation in `Annotated` and `Depends` as a"
                " default value together for 'foo'"
            ),
        ):
    
            @app.get("/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Dec 12 00:22:47 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc

      return UniformQuantizedType::getChecked(
          loc, /*flags=*/QuantizationFlags::Signed,
          /*storageType=*/IntegerType::get(&context, /*width=*/8),
          /*expressedType=*/FloatType::getF32(&context), scale, zero_point,
          /*storageTypeMin=*/llvm::minIntN(8) + (narrow_range ? 1 : 0),
          /*storageTypeMax=*/llvm::maxIntN(8));
    }
    
    UniformQuantizedType CreateI32F32UniformQuantizedType(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. test/codegen/stack.go

    // type, but not pointer-identical types. See issue 65783.
    
    func spillSlotReuse() {
    	// The return values of getp1 and getp2 need to be
    	// spilled around the calls to nopInt. Make sure that
    	// spill slot gets reused.
    
    	//arm64:`.*autotmp_2-8\(SP\)`
    	getp1()[nopInt()] = 0
    	//arm64:`.*autotmp_2-8\(SP\)`
    	getp2()[nopInt()] = 0
    }
    
    //go:noinline
    func nopInt() int {
    	return 0
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/python/mlir_wrapper/types.cc

      py::class_<mlir::FloatType, mlir::Type>(m, "FloatType")
          .def("getBF16", &mlir::FloatType::getBF16)
          .def("getF16", &mlir::FloatType::getF16)
          .def("getF32", &mlir::FloatType::getF32)
          .def("getF64", &mlir::FloatType::getF64);
    
      py::class_<mlir::IntegerType, mlir::Type>(m, "IntegerType")
          .def("get", [](mlir::MLIRContext* context, unsigned width) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 12 08:42:26 UTC 2021
    - 2K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue52611a/b.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package issue52611a
    
    import "C"
    
    func GetX2(foo *C.struct_Foo) int32 {
    	return int32(foo.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 254 bytes
    - Viewed (0)
  8. src/time/zoneinfo_read.go

    		//	42	off[4]
    		//	46	name[namelen]
    		//	46+namelen+xlen+fclen - next header
    		//
    		if get4(buf) != zcheader {
    			break
    		}
    		meth := get2(buf[10:])
    		size := get4(buf[24:])
    		namelen := get2(buf[28:])
    		xlen := get2(buf[30:])
    		fclen := get2(buf[32:])
    		off := get4(buf[42:])
    		zname := buf[46 : 46+namelen]
    		buf = buf[46+namelen+xlen+fclen:]
    		if string(zname) != name {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue52611b/b.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package issue52611b
    
    /*
    typedef struct Bar {
        int X;
    } Bar;
    */
    import "C"
    
    func GetX2(bar *C.struct_Bar) int32 {
    	return int32(bar.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 299 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ir/bitset.go

    package ir
    
    type bitset8 uint8
    
    func (f *bitset8) set(mask uint8, b bool) {
    	if b {
    		*(*uint8)(f) |= mask
    	} else {
    		*(*uint8)(f) &^= mask
    	}
    }
    
    func (f bitset8) get2(shift uint8) uint8 {
    	return uint8(f>>shift) & 3
    }
    
    // set2 sets two bits in f using the bottom two bits of b.
    func (f *bitset8) set2(shift uint8, b uint8) {
    	// Clear old bits.
    	*(*uint8)(f) &^= 3 << shift
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:03:56 UTC 2022
    - 734 bytes
    - Viewed (0)
Back to top