Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of about 10,000 for recur1 (0.21 sec)

  1. test/uintptrescapes.dir/a.go

    package a
    
    import (
    	"unsafe"
    )
    
    func recurse(i int, s []byte) byte {
    	s[0] = byte(i)
    	if i == 0 {
    		return s[i]
    	} else {
    		var a [1024]byte
    		r := recurse(i-1, a[:])
    		return r + a[0]
    	}
    }
    
    //go:uintptrescapes
    func F1(a uintptr) {
    	var s [16]byte
    	recurse(4096, s[:])
    	*(*int)(unsafe.Pointer(a)) = 42
    }
    
    //go:uintptrescapes
    func F2(a ...uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 06 20:48:41 UTC 2016
    - 879 bytes
    - Viewed (0)
  2. src/encoding/csv/writer.go

    	_, err := w.w.Write(nil)
    	return err
    }
    
    // WriteAll writes multiple CSV records to w using [Writer.Write] and
    // then calls [Writer.Flush], returning any error from the Flush.
    func (w *Writer) WriteAll(records [][]string) error {
    	for _, record := range records {
    		err := w.Write(record)
    		if err != nil {
    			return err
    		}
    	}
    	return w.w.Flush()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. src/log/slog/internal/benchmarks/handlers.go

    type asyncHandler struct {
    	ringBuffer [100]slog.Record
    	next       int
    }
    
    func newAsyncHandler() *asyncHandler {
    	return &asyncHandler{}
    }
    
    func (*asyncHandler) Enabled(context.Context, slog.Level) bool { return true }
    
    func (h *asyncHandler) Handle(_ context.Context, r slog.Record) error {
    	h.ringBuffer[h.next] = r.Clone()
    	h.next = (h.next + 1) % len(h.ringBuffer)
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:37 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/converter_gen.cc

      oss << "Create" << op_name.drop_front(4).str() << "erator";
      return oss.str();
    }
    
    static inline bool IsLstmOp(const StringRef op_name) {
      return op_name.take_back(6) == "LSTMOp";
    }
    
    static int HasOptions(const Record &def) {
      if (def.getValueAsBit("hasOptions")) {
        return 1;
      }
      if (def.getValueAsBit("hasOptions2")) {
        return 2;
      }
      return 0;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  5. cmd/utils.go

    			return ioutilx.ReadFile(fn)
    		}
    	default:
    		return nil, errors.New("profiler type unknown")
    	}
    
    	return prof, nil
    }
    
    // minioProfiler - minio profiler interface.
    type minioProfiler interface {
    	// Return recorded profiles, each profile associated with a distinct generic name.
    	Records() map[string][]byte
    	// Stop the profiler
    	Stop() ([]byte, error)
    	// Return extension of profile
    	Extension() string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  6. tests/connpool_test.go

    	return c.db.Ping()
    }
    
    // If you use BeginTx returned *sql.Tx as shown below then you can't record queries in a transaction.
    //
    //	func (c *wrapperConnPool) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) {
    //		 return c.db.BeginTx(ctx, opts)
    //	}
    //
    // You should use BeginTx returned gorm.Tx which could wrap *sql.Tx then you can record all queries.
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. src/encoding/csv/reader.go

    // If the record has an unexpected number of fields,
    // Read returns the record along with the error [ErrFieldCount].
    // If the record contains a field that cannot be parsed,
    // Read returns a partial record along with the parse error.
    // The partial record contains all fields read before the error.
    // If there is no data left to be read, Read returns nil, [io.EOF].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/tools/tflite_op_coverage_spec_getters_gen.cc

      if (!val) return !per_axis;
    
      llvm::StringRef supported_types =
          def_init->getDef()->getValueAsString("tflRuntimeTypeDescription");
    
      for (const std::string &type : required_types) {
        if (!absl::StrContains(supported_types.str(), type)) return false;
      }
      return true;
    }
    
    void GenerateStaticQuantOp(std::vector<Record *> &defs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/mod/sumdb/server.go

    		if err != nil {
    			reportError(w, err)
    			return
    		}
    		records, err := s.ops.ReadRecords(ctx, id, 1)
    		if err != nil {
    			// This should never happen - the lookup says the record exists.
    			http.Error(w, err.Error(), http.StatusInternalServerError)
    			return
    		}
    		if len(records) != 1 {
    			http.Error(w, "invalid record count returned by ReadRecords", http.StatusInternalServerError)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/operations/trace/BuildOperationTrace.java

                            }
    
                            if (record.result != null) {
                                stringBuilder.append(" ");
                                stringBuilder.append(jsonGenerator.toJson(record.result));
                            }
    
                            stringBuilder.append(" [");
                            stringBuilder.append(record.endTime - record.startTime);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:45:59 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top