Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,840 for float1 (0.09 sec)

  1. src/reflect/abi.go

    }
    
    // floatFromReg loads a float value from its register representation in r.
    //
    // argSize must be 4 or 8.
    func floatFromReg(r *abi.RegArgs, reg int, argSize uintptr, to unsafe.Pointer) {
    	switch argSize {
    	case 4:
    		*(*float32)(to) = archFloat32FromReg(r.Floats[reg])
    	case 8:
    		*(*float64)(to) = *(*float64)(unsafe.Pointer(&r.Floats[reg]))
    	default:
    		panic("bad argSize")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. test/convinline.go

    	case "uintptr":
    		return fmt.Sprintf("%s(%#x)", t2, uintptr(v))
    	case "float32":
    		v := float32(v)
    		if math.IsInf(float64(v), -1) {
    			return "float32(math.Inf(-1))"
    		}
    		if math.IsInf(float64(v), +1) {
    			return "float32(math.Inf(+1))"
    		}
    		return fmt.Sprintf("%s(%v)", t2, float64(v))
    	case "float64":
    		return fmt.Sprintf("%s(%v)", t2, float64(v))
    	}
    	panic(t2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 13:46:05 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/converter.go

    					dv.Set(sv.Convert(dt))
    					return nil
    				case reflect.Float32, reflect.Float64:
    					dv.Set(sv.Convert(dt))
    					return nil
    				}
    			case reflect.Float32, reflect.Float64:
    				switch dt.Kind() {
    				case reflect.Float32, reflect.Float64:
    					dv.Set(sv.Convert(dt))
    					return nil
    				}
    				if sv.Float() == math.Trunc(sv.Float()) {
    					dv.Set(sv.Convert(dt))
    					return nil
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  4. pkg/test/util/structpath/instance.go

    		case reflect.Float32, reflect.Float64:
    			return i.equalsNumber(reflect.ValueOf(expected).Float(), path)
    		case reflect.Int, reflect.Int8, reflect.Int32, reflect.Int64:
    			return i.equalsNumber(float64(reflect.ValueOf(expected).Int()), path)
    		case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    			return i.equalsNumber(float64(reflect.ValueOf(expected).Uint()), path)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/MIPSOps.go

    		{name: "MOVWD", argLength: 1, reg: fp11, asm: "MOVWD"},     // int32 -> float64
    		{name: "TRUNCFW", argLength: 1, reg: fp11, asm: "TRUNCFW"}, // float32 -> int32
    		{name: "TRUNCDW", argLength: 1, reg: fp11, asm: "TRUNCDW"}, // float64 -> int32
    		{name: "MOVFD", argLength: 1, reg: fp11, asm: "MOVFD"},     // float32 -> float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 24K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

          Float[] suffix = {(float) 86, (float) 99};
          Float[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Float[] concat(Float[] left, Float[] right) {
        Float[] result = new Float[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

          Float[] suffix = {(float) 86, (float) 99};
          Float[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Float[] concat(Float[] left, Float[] right) {
        Float[] result = new Float[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. src/internal/types/testdata/spec/conversions.go

    func _[X Unsigned, T Integer](x X) T { return T(x) }
    func _[X Float, T Integer](x X) T    { return T(x) }
    
    func _[X Integer, T Unsigned](x X) T  { return T(x) }
    func _[X Unsigned, T Unsigned](x X) T { return T(x) }
    func _[X Float, T Unsigned](x X) T    { return T(x) }
    
    func _[X Integer, T Float](x X) T  { return T(x) }
    func _[X Unsigned, T Float](x X) T { return T(x) }
    func _[X Float, T Float](x X) T    { return T(x) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  9. src/internal/types/testdata/examples/constraints.go

    type (
    	Integer interface{ ~int|~int8|~int16|~int32|~int64 }
    	Unsigned interface{ ~uint|~uint8|~uint16|~uint32|~uint64 }
    	Floats interface{ ~float32|~float64 }
    	Complex interface{ ~complex64|~complex128 }
    	Number interface{ Integer|Unsigned|Floats|Complex }
    	Ordered interface{ Integer|Unsigned|Floats|~string }
    
    	_ interface{ Number | error /* ERROR "cannot use error in union" */ }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "FMOVSconst", argLength: 0, reg: fp01, aux: "Float64", asm: "FMOVS", typ: "Float32", rematerializeable: true}, // auxint as 64-bit float, convert to 32-bit float
    		{name: "FMOVDconst", argLength: 0, reg: fp01, aux: "Float64", asm: "FMOVD", typ: "Float64", rematerializeable: true}, // auxint as 64-bit float
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
Back to top