Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for marino (1.04 sec)

  1. src/cmd/cgo/internal/testcarchive/testdata/main6.c

    // license that can be found in the LICENSE file.
    
    // Test that using the Go profiler in a C program does not crash.
    
    #include <stddef.h>
    #include <sys/time.h>
    
    #include "libgo6.h"
    
    int main(int argc, char **argv) {
    	struct timeval tvstart, tvnow;
    	int diff;
    
    	gettimeofday(&tvstart, NULL);
    
    	go_start_profile();
    
    	// Busy wait so we have something to profile.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 830 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/main9.c

    #include "libgo9.h"
    
    void use(int *x) { (*x)++; }
    
    void callGoFWithDeepStack() {
    	int x[10000];
    
    	use(&x[0]);
    	use(&x[9999]);
    
    	GoF();
    
    	use(&x[0]);
    	use(&x[9999]);
    }
    
    int main() {
    	GoF();                  // call GoF without using much stack
    	callGoFWithDeepStack(); // call GoF with a deep stack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 460 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/testdata/main0.c

    #include "p.h"
    #include "libgo.h"
    
    // Tests libgo.so to export the following functions.
    //   int8_t DidInitRun();
    //   int8_t DidMainRun();
    //   int32_t FromPkg();
    //   uint32_t Divu(uint32_t, uint32_t);
    int main(void) {
      int8_t ran_init = DidInitRun();
      if (!ran_init) {
        fprintf(stderr, "ERROR: DidInitRun returned unexpected results: %d\n",
                ran_init);
        return 1;
      }
      int8_t ran_main = DidMainRun();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue24161e1/main.go

    Austin Clements <******@****.***> 1683224724 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testlife/testdata/main.out

    Austin Clements <******@****.***> 1683216807 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 272 bytes
    - Viewed (0)
  6. api/go1.17.txt

    pkg math (darwin-arm64), const MaxInt = 9223372036854775807
    pkg math (darwin-arm64), const MaxUint = 18446744073709551615
    pkg math (darwin-arm64), const MinInt = -9223372036854775808
    pkg math (darwin-arm64-cgo), const MaxInt = 9223372036854775807
    pkg math (darwin-arm64-cgo), const MaxUint = 18446744073709551615
    pkg math (darwin-arm64-cgo), const MinInt = -9223372036854775808
    pkg math (freebsd-386), const MaxInt = 2147483647
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 18K bytes
    - Viewed (0)
  7. doc/next/6-stdlib/1-time.md

    Second, the timer channel associated with a `Timer` or `Ticker` is
    now unbuffered, with capacity 0.
    The main effect of this change is that Go now guarantees
    that for any call to a `Reset` or `Stop` method, no stale values
    prepared before that call will be sent or received after the call.
    Earlier versions of Go used channels with a one-element buffer,
    making it difficult to use `Reset` and `Stop` correctly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 20:49:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. misc/cgo/gmp/gmp.go

    // the zero value is a crash.  To bridge the gap, the
    // init bool says whether this is a valid gmp value.
    // doinit initializes z.i if it needs it.  This is not inherent
    // to FFI, just a mismatch between Go's convention of
    // making zero values useful and gmp's decision not to.
    func (z *Int) doinit() {
    	if z.init {
    		return
    	}
    	z.init = true
    	C.mpz_init(&z.i[0])
    }
    
    // Bytes returns z's representation as a big-endian byte array.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcarchive/testdata/main4.c

    		ok = 0;
    	} else if (nss.ss_sp != ss.ss_sp) {
    		fprintf(stderr, "sigaltstack changed on return from Go\n");
    		ok = 0;
    	}
    
    	return NULL;
    }
    
    int main(int argc, char **argv) {
    	pthread_t tid;
    	int i;
    
    	// Tell the Go library to start looking for SIGIO.
    	GoCatchSIGIO();
    
    	i = pthread_create(&tid, NULL, thread1, NULL);
    	if (i != 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. src/cmd/asm/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"bufio"
    	"flag"
    	"fmt"
    	"internal/buildcfg"
    	"log"
    	"os"
    
    	"cmd/asm/internal/arch"
    	"cmd/asm/internal/asm"
    	"cmd/asm/internal/flags"
    	"cmd/asm/internal/lex"
    
    	"cmd/internal/bio"
    	"cmd/internal/obj"
    	"cmd/internal/objabi"
    	"cmd/internal/telemetry"
    )
    
    func main() {
    	log.SetFlags(0)
    	log.SetPrefix("asm: ")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top