Source file src/internal/strconv/export_test.go

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package strconv
     6  
     7  type Uint128 = uint128
     8  
     9  var (
    10  	MulLog10_2       = mulLog10_2
    11  	MulLog2_10       = mulLog2_10
    12  	ParseFloatPrefix = parseFloatPrefix
    13  	Pow10            = pow10
    14  	Umul128          = umul128
    15  	Umul192          = umul192
    16  )
    17  
    18  func NewDecimal(i uint64) *decimal {
    19  	d := new(decimal)
    20  	d.Assign(i)
    21  	return d
    22  }
    23  
    24  func SetOptimize(b bool) bool {
    25  	old := optimize
    26  	optimize = b
    27  	return old
    28  }
    29  

View as plain text