Home
last modified time | relevance | path

Searched refs:NativeT (Results 1 – 7 of 7) sorted by relevance

/third_party/node/src/
Daliased_buffer-inl.h13 template <typename NativeT, typename V8T>
14 AliasedBufferBase<NativeT, V8T>::AliasedBufferBase( in AliasedBufferBase()
24 MultiplyWithOverflowCheck(sizeof(NativeT), count); in AliasedBufferBase()
28 buffer_ = static_cast<NativeT*>(ab->Data()); in AliasedBufferBase()
35 template <typename NativeT, typename V8T>
36 AliasedBufferBase<NativeT, V8T>::AliasedBufferBase( in AliasedBufferBase()
54 CHECK_EQ(byte_offset & (sizeof(NativeT) - 1), 0); in AliasedBufferBase()
56 CHECK_LE(MultiplyWithOverflowCheck(sizeof(NativeT), count), in AliasedBufferBase()
59 buffer_ = reinterpret_cast<NativeT*>( in AliasedBufferBase()
66 template <typename NativeT, typename V8T>
[all …]
Daliased_buffer.h31 template <class NativeT, class V8T>
34 static_assert(std::is_scalar<NativeT>::value);
71 Reference(AliasedBufferBase<NativeT, V8T>* aliased_buffer, size_t index) in Reference() argument
79 inline Reference& operator=(const NativeT& val) {
85 return *this = static_cast<NativeT>(val);
88 operator NativeT() const { in NativeT() function
92 inline Reference& operator+=(const NativeT& val) {
93 const NativeT current = aliased_buffer_->GetValue(index_);
99 return this->operator+=(static_cast<NativeT>(val));
102 inline Reference& operator-=(const NativeT& val) {
[all …]
Dnode_file-inl.h85 template <typename NativeT, typename V8T>
86 void FillStatsArray(AliasedBufferBase<NativeT, V8T>* fields, in FillStatsArray() argument
91 static_cast<NativeT>(stat)) in FillStatsArray()
147 template <typename NativeT, typename V8T>
148 void FillStatFsArray(AliasedBufferBase<NativeT, V8T>* fields, in FillStatFsArray() argument
152 static_cast<NativeT>(stat)) in FillStatFsArray()
Dnode_file.h194 template <typename NativeT, typename V8T>
195 void FillStatsArray(AliasedBufferBase<NativeT, V8T>* fields,
204 template <typename NativeT, typename V8T>
205 void FillStatFsArray(AliasedBufferBase<NativeT, V8T>* fields,
/third_party/node/test/cctest/
Dtest_aliased_buffer.cc9 template <class NativeT>
10 void CreateOracleValues(std::vector<NativeT>* buf) { in CreateOracleValues()
12 (*buf)[i] = static_cast<NativeT>(j); in CreateOracleValues()
16 template <class NativeT, class V8T>
17 void WriteViaOperator(AliasedBufferBase<NativeT, V8T>* aliasedBuffer, in WriteViaOperator() argument
18 const std::vector<NativeT>& oracle) { in WriteViaOperator()
25 template <class NativeT, class V8T>
26 void WriteViaSetValue(AliasedBufferBase<NativeT, V8T>* aliasedBuffer, in WriteViaSetValue() argument
27 const std::vector<NativeT>& oracle) { in WriteViaSetValue()
34 template <class NativeT, class V8T>
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
Dqueryconversions.cpp27 template <typename QueryT, typename NativeT>
28 QueryT CastFromStateValueToInt(GLenum pname, NativeT value) in CastFromStateValueToInt()
30 GLenum nativeType = GLTypeToGLenum<NativeT>::value; in CastFromStateValueToInt()
57 template <typename NativeT, typename QueryT>
58 NativeT CastQueryValueToInt(GLenum pname, QueryT value) in CastQueryValueToInt()
73 return static_cast<NativeT>(static_cast<GLint64>(std::round(value))); in CastQueryValueToInt()
76 return static_cast<NativeT>(value); in CastQueryValueToInt()
103 template <typename QueryT, typename NativeT>
104 QueryT CastFromStateValue(GLenum pname, NativeT value) in CastFromStateValue()
114 return CastFromStateValueToInt<QueryT, NativeT>(pname, value); in CastFromStateValue()
[all …]
Dqueryconversions.h66 template <typename QueryT, typename NativeT>
67 QueryT CastFromStateValue(GLenum pname, NativeT value);
69 template <typename NativeT, typename QueryT>
70 NativeT CastQueryValueTo(GLenum pname, QueryT value);