Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ci8 (0.01 sec)

  1. test/intcvt.go

    // Test implicit and explicit conversions of constants.
    
    package main
    
    const (
    	ci8  = -1 << 7
    	ci16 = -1<<15 + 100
    	ci32 = -1<<31 + 100000
    	ci64 = -1<<63 + 10000000001
    
    	cu8  = 1<<8 - 1
    	cu16 = 1<<16 - 1234
    	cu32 = 1<<32 - 1234567
    	cu64 = 1<<64 - 1234567890123
    
    	cf32 = 1e8 + 0.5
    	cf64 = -1e8 + 0.5
    )
    
    var (
    	i8  int8  = ci8
    	i16 int16 = ci16
    	i32 int32 = ci32
    	i64 int64 = ci64
    
    	u8  uint8  = cu8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 07:47:26 UTC 2012
    - 4.3K bytes
    - Viewed (0)
  2. test/index.go

    	"bufio"
    	"fmt"
    	"os"
    	"unsafe"
    )
    
    const prolog = `
    
    package main
    
    import (
    	"runtime"
    )
    
    type quad struct { x, y, z, w int }
    
    const (
    	cj = 100011
    	ci int = 100012
    	ci8 int8 = 115
    	ci16 int16 = 10016
    	ci32 int32 = 100013
    	ci64 int64 = 100014
    	ci64big int64 = 1<<31
    	ci64bigger int64 = 1<<32
    	chuge = 1<<100
    	cfgood = 2.0
    	cfbad = 2.1
    
    	cnj = -2
    	cni int = -3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 08 17:28:20 UTC 2019
    - 6.4K bytes
    - Viewed (0)
Back to top