// PowOfR performs elementwise
//		s ^ a̅
976138
func PowOfR(a []float64, s float64) {
	for i, v := range a {
		a[i] = math.Pow(s, v)
	}
}
810655
func Pow10Int(e uint64) (int64, bool) {
	if e < PowTabLen-1 {
		return int64(pow10tab[e]), true
	}
	return 0, false
}
648486
func nextPowerOfTwo(n uint64) uint64 {
	if n == 0 {
		return 1
	}
	// http://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2
	n--
	n |= n >> 1
	n |= n >> 2
	n |= n >> 4
	n |= n >> 8
	n |= n >> 16
	n |= n >> 32
	n++
	return n
}
949299
func (*Value) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*Value_NullValue)(nil),
		(*Value_NumberValue)(nil),
		(*Value_StringValue)(nil),
		(*Value_BoolValue)(nil),
		(*Value_StructValue)(nil),
		(*Value_ListValue)(nil),
	}
}
503005
func Pow(a, b []float32) {
	b = b[:len(a)]
	for i, v := range a {
		switch b[i] {
		case 0:
			a[i] = float32(1)
		case 1:
			a[i] = v
		case 2:
			a[i] = v * v
		case 3:
			a[i] = v * v * v
		default:
			a[i] = math32.Pow(v, b[i])
		}
	}
}
585385
func (ids *mempoolIDs) GetForPeer(peer p2p.Peer) uint16 {
	ids.mtx.RLock()
	defer ids.mtx.RUnlock()

	return ids.peerMap[peer.ID()]
}
230872
func (*MetricsData) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*MetricsData_BoolValue)(nil),
		(*MetricsData_StringValue)(nil),
		(*MetricsData_Int64Value)(nil),
		(*MetricsData_DoubleValue)(nil),
		(*MetricsData_DistributionValue)(nil),
	}
}
560153
func (*BatchRequest_Entry) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*BatchRequest_Entry_RegisterStream)(nil),
		(*BatchRequest_Entry_LoadStream)(nil),
		(*BatchRequest_Entry_TerminateStream)(nil),
		(*BatchRequest_Entry_ArchiveStream)(nil),
	}
}
100573
func Pow(a, b []float64) {
	b = b[:len(a)]
	for i, v := range a {
		switch b[i] {
		case 0:
			a[i] = float64(1)
		case 1:
			a[i] = v
		case 2:
			a[i] = v * v
		case 3:
			a[i] = v * v * v
		default:
			a[i] = math.Pow(v, b[i])
		}
	}
}
1222551
func NextPowerOf2U32(v uint32) uint32 {
	v--
	v |= v >> 1
	v |= v >> 2
	v |= v >> 4
	v |= v >> 8
	v |= v >> 16
	v++
	return v
}
556707
func maxDecimalPower(r float64) float64 {
	m := int(math.Floor(math.Log10(r)))
	return math.Pow10(m)
}
1183797
func (as ArraySpec) Pow(val Input) Input {
	return as.proc(func(i Input) Input {
		return i.Pow(val)
	})
}
523310
func isOperator(token string) bool {
	for _, v := range operators {
		if v == token {
			return true
		}
	}
	return false
}
731103
func isOutputPtrOfPrim(fnName string, p bg.Parameter) bool {
	if !isOutput(fnName, p) && !isIO(fnName, p) {
		return false
	}
	if !p.IsPointer() {
		return false
	}
	return isBuiltin(depointerize(nameOfType(p.Type())))
}
583650
func (_m *Light) GetPower() (bool, error) {
	ret := _m.Called()

	var r0 bool
	if rf, ok := ret.Get(0).(func() bool); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(bool)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
543006
func (*Schema) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*Schema_Int)(nil),
		(*Schema_Uint)(nil),
		(*Schema_Float)(nil),
		(*Schema_Bool)(nil),
		(*Schema_Str)(nil),
		(*Schema_Bytes)(nil),
		(*Schema_Enum)(nil),
		(*Schema_Object)(nil),
		(*Schema_Array)(nil),
	}
}
142514
func IncrPowOf(a []float64, s float64, incr []float64) {
	incr = incr[:len(a)]
	for i, v := range a {
		incr[i] += math.Pow(v, s)
	}
}