Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for initBloc (0.11 sec)

  1. src/runtime/os_wasm.go

    package runtime
    
    import (
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    func osinit() {
    	// https://webassembly.github.io/spec/core/exec/runtime.html#memory-instances
    	physPageSize = 64 * 1024
    	initBloc()
    	ncpu = 1
    	getg().m.procid = 2
    }
    
    const _SIGSEGV = 0xb
    
    func sigpanic() {
    	gp := getg()
    	if !canpanic() {
    		throw("unexpected signal during runtime execution")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/runtime/mem_sbrk.go

    				throw("mem: uninitialised memory")
    			}
    		}
    	}
    }
    
    func memRound(p uintptr) uintptr {
    	return alignUp(p, physPageSize)
    }
    
    func initBloc() {
    	bloc = memRound(firstmoduledata.end)
    	blocMax = bloc
    }
    
    func sysAllocOS(n uintptr) unsafe.Pointer {
    	lock(&memlock)
    	p := memAlloc(n)
    	memCheck()
    	unlock(&memlock)
    	return p
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. src/runtime/os_plan9.go

    		closefd(fd)
    	}
    	c := b[:]
    	for c[0] == ' ' || c[0] == '\t' {
    		c = c[1:]
    	}
    	return uint64(_atoi(c))
    }
    
    func osinit() {
    	physPageSize = getPageSize()
    	initBloc()
    	ncpu = getproccount()
    	getg().m.procid = getpid()
    }
    
    //go:nosplit
    func crash() {
    	notify(nil)
    	*(*int)(nil) = 0
    }
    
    //go:nosplit
    func readRandom(r []byte) int {
    	return 0
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/sha3/shake.go

    	// leftEncode returns max 9 bytes
    	c.initBlock = make([]byte, 0, 9*2+len(N)+len(S))
    	c.initBlock = append(c.initBlock, leftEncode(uint64(len(N)*8))...)
    	c.initBlock = append(c.initBlock, N...)
    	c.initBlock = append(c.initBlock, leftEncode(uint64(len(S)*8))...)
    	c.initBlock = append(c.initBlock, S...)
    	c.Write(bytepad(c.initBlock, c.rate))
    	return &c
    }
    
    // Reset resets the hash to initial state.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

          std::string func_name =
              op->getParentOfType<func::FuncOp>().getSymNameAttr().str();
          quantization_unit->set_func_name(func_name);
        }
        QuantizationUnitLoc unit_loc(getContext(), quantization_unit.value());
        op->setLoc(unit_loc);
    
        return success();
      }
    };
    
    void AddQuantizationUnitLocPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      RewritePatternSet patterns(ctx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

      return global_op_prefixes;
    }
    
    // Converts a location to the debug information for the node def.
    Status ConvertLocation(mlir::Location inst_loc, llvm::StringRef node_name,
                           NodeDef::ExperimentalDebugInfo* debug_info) {
      mlir::Location unwrapped_inst_loc = GetLocationWithoutOpType(inst_loc);
    
      if (auto call_site = mlir::dyn_cast<mlir::CallSiteLoc>(unwrapped_inst_loc)) {
        if (auto name_loc = mlir::dyn_cast<mlir::NameLoc>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top