Home
last modified time | relevance | path

Searched refs:fVal (Results 1 – 24 of 24) sorted by relevance

/external/skia/src/core/
DSkFixed15.h21 SkFixed15(float val) : fVal(val * 32768) { SkASSERT(0.0f <= val && val <= 1.0f); } in SkFixed15()
22 explicit operator float() const { return fVal * (1/32768.0f); }
28 uint16_t store() const { return fVal; } in store()
38 return (fVal - (fVal>>8))>>7; in to_u8()
41 SkFixed15 operator +(SkFixed15 o) const { return fVal + o.fVal; }
42 SkFixed15 operator -(SkFixed15 o) const { return fVal - o.fVal; }
43 SkFixed15 operator *(SkFixed15 o) const { return (fVal * o.fVal + (1<<14)) >> 15; }
44 SkFixed15 operator<<(int bits) const { return fVal << bits; }
45 SkFixed15 operator>>(int bits) const { return fVal >> bits; }
53 bool operator==(SkFixed15 o) const { return fVal == o.fVal; }
[all …]
/external/skqp/src/core/
DSkFixed15.h21 SkFixed15(float val) : fVal(val * 32768) { SkASSERT(0.0f <= val && val <= 1.0f); } in SkFixed15()
22 explicit operator float() const { return fVal * (1/32768.0f); }
28 uint16_t store() const { return fVal; } in store()
38 return (fVal - (fVal>>8))>>7; in to_u8()
41 SkFixed15 operator +(SkFixed15 o) const { return fVal + o.fVal; }
42 SkFixed15 operator -(SkFixed15 o) const { return fVal - o.fVal; }
43 SkFixed15 operator *(SkFixed15 o) const { return (fVal * o.fVal + (1<<14)) >> 15; }
44 SkFixed15 operator<<(int bits) const { return fVal << bits; }
45 SkFixed15 operator>>(int bits) const { return fVal >> bits; }
53 bool operator==(SkFixed15 o) const { return fVal == o.fVal; }
[all …]
/external/skia/include/private/
DSkNx.h163 T fVal;
166 AI SkNx(T v) : fVal(v) {}
171 return fVal;
179 AI void store(void* ptr) const { memcpy(ptr, &fVal, sizeof(T)); }
218 AI T min() const { return fVal; }
219 AI T max() const { return fVal; }
220 AI bool anyTrue() const { return fVal != 0; }
221 AI bool allTrue() const { return fVal != 0; }
223 AI SkNx abs() const { return Abs(fVal); }
224 AI SkNx sqrt() const { return Sqrt(fVal); }
[all …]
/external/skqp/include/private/
DSkNx.h163 T fVal;
166 AI SkNx(T v) : fVal(v) {}
171 return fVal;
179 AI void store(void* ptr) const { memcpy(ptr, &fVal, sizeof(T)); }
218 AI T min() const { return fVal; }
219 AI T max() const { return fVal; }
220 AI bool anyTrue() const { return fVal != 0; }
221 AI bool allTrue() const { return fVal != 0; }
223 AI SkNx abs() const { return Abs(fVal); }
224 AI SkNx sqrt() const { return Sqrt(fVal); }
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/
DPowellOptimizer.java102 double fVal = computeObjectiveValue(x); in doOptimize() local
107 double fX = fVal; in doOptimize()
116 fX2 = fVal; in doOptimize()
119 fVal = line.getValueAtOptimum(); in doOptimize()
124 if ((fX2 - fVal) > delta) { in doOptimize()
125 delta = fX2 - fVal; in doOptimize()
131 final RealPointValuePair current = new RealPointValuePair(x, fVal); in doOptimize()
134 return (fVal < fX) ? current : previous; in doOptimize()
136 return (fVal > fX) ? current : previous; in doOptimize()
151 double t = 2 * (fX + fX2 - 2 * fVal); in doOptimize()
[all …]
/external/skia/tests/
DVptrTest.cpp20 SubclassA(size_t val) : fVal(val) {} in SubclassA()
22 size_t val() const override { return fVal; } in val()
24 size_t fVal; member
/external/skqp/tests/
DVptrTest.cpp20 SubclassA(size_t val) : fVal(val) {} in SubclassA()
22 size_t val() const override { return fVal; } in val()
24 size_t fVal; member
/external/icu/icu4c/source/common/
Drbbinode.cpp65 fVal = 0; in RBBINode()
94 fVal = other.fVal; in RBBINode()
320 node->fFirstPos, node->fVal); in printNode()
Drbbitblb.cpp107 bofLeaf->fVal = 2; // Reserved value for {bof}. in buildForwardTable()
468 UChar32 c = this->fRB->fSetBuilder->getFirstChar(endNode->fVal); in calcChainedFollowPos()
488 if (endNode->fVal == startNode->fVal) { in calcChainedFollowPos()
531 U_ASSERT(bofNode->fVal == 2); in bofFixup()
548 if (startNode->fVal == bofNode->fVal) { in bofFixup()
647 if ((p->fType == RBBINode::leafChar) && (p->fVal == a)) { in buildStateTable()
747 sd->fAccepting = endMarker->fVal; in flagAcceptingStates()
752 if (sd->fAccepting==-1 && endMarker->fVal != 0) { in flagAcceptingStates()
756 sd->fAccepting = endMarker->fVal; in flagAcceptingStates()
799 sd->fLookAhead = lookAheadNode->fVal; in flagLookAheadStates()
[all …]
Drbbiscan.cpp347 endNode->fVal = fRuleNum; in doParseActions()
500 n->fVal = fRuleNum; in doParseActions()
514 n->fVal = 0; in doParseActions()
525 n->fVal = n->fVal*10 + v; in doParseActions()
Drbbinode.h77 int32_t fVal; // For leafChar nodes, the value. variable
Drbbisetb.cpp354 leafNode->fVal = (unsigned short)val; in addValToSet()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRBBITableBuilder.java128 bofLeaf.fVal = 2; // Reserved value for {bof}. in buildForwardTable()
443 int c = this.fRB.fSetBuilder.getFirstChar(endNode.fVal); in calcChainedFollowPos()
461 if (endNode.fVal == startNode.fVal) { in calcChainedFollowPos()
500 Assert.assrt(bofNode.fVal == 2); in bofFixup()
513 if (startNode.fVal == bofNode.fVal) { in bofFixup()
572 if ((p.fType == RBBINode.leafChar) && (p.fVal == a)) { in buildStateTable()
644 sd.fAccepting = endMarker.fVal; in flagAcceptingStates()
649 if (sd.fAccepting==-1 && endMarker.fVal != 0) { in flagAcceptingStates()
653 sd.fAccepting = endMarker.fVal; in flagAcceptingStates()
690 sd.fLookAhead = lookAheadNode.fVal; in flagLookAheadStates()
[all …]
DRBBINode.java88 int fVal; // For leafChar nodes, the value. field in RBBINode
138 fVal = other.fVal;
291 RBBINode.printInt(n.fVal, 7);
DRBBIRuleScanner.java265 endNode.fVal = fRuleNum; in doParseActions()
394 n.fVal = fRuleNum; in doParseActions()
405 n.fVal = 0; in doParseActions()
415 n.fVal = n.fVal * 10 + v; in doParseActions()
DRBBISetBuilder.java378 leafNode.fVal = val; in addValToSet()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRBBITableBuilder.java129 bofLeaf.fVal = 2; // Reserved value for {bof}. in buildForwardTable()
444 int c = this.fRB.fSetBuilder.getFirstChar(endNode.fVal); in calcChainedFollowPos()
462 if (endNode.fVal == startNode.fVal) { in calcChainedFollowPos()
501 Assert.assrt(bofNode.fVal == 2); in bofFixup()
514 if (startNode.fVal == bofNode.fVal) { in bofFixup()
573 if ((p.fType == RBBINode.leafChar) && (p.fVal == a)) { in buildStateTable()
645 sd.fAccepting = endMarker.fVal; in flagAcceptingStates()
650 if (sd.fAccepting==-1 && endMarker.fVal != 0) { in flagAcceptingStates()
654 sd.fAccepting = endMarker.fVal; in flagAcceptingStates()
691 sd.fLookAhead = lookAheadNode.fVal; in flagLookAheadStates()
[all …]
DRBBINode.java89 int fVal; // For leafChar nodes, the value. field in RBBINode
139 fVal = other.fVal;
292 RBBINode.printInt(n.fVal, 7);
DRBBIRuleScanner.java266 endNode.fVal = fRuleNum; in doParseActions()
395 n.fVal = fRuleNum; in doParseActions()
406 n.fVal = 0; in doParseActions()
416 n.fVal = n.fVal * 10 + v; in doParseActions()
DRBBISetBuilder.java379 leafNode.fVal = val; in addValToSet()
/external/swiftshader/third_party/SPIRV-Tools/source/util/
Dparse_number.cpp163 HexFloat<FloatProxy<float>> fVal(0.0f); in ParseAndEncodeFloatingPointNumber() local
164 if (!ParseNumber(text, &fVal)) { in ParseAndEncodeFloatingPointNumber()
168 emit(BitwiseCast<uint32_t>(fVal)); in ParseAndEncodeFloatingPointNumber()
/external/deqp-deps/SPIRV-Tools/source/util/
Dparse_number.cpp163 HexFloat<FloatProxy<float>> fVal(0.0f); in ParseAndEncodeFloatingPointNumber() local
164 if (!ParseNumber(text, &fVal)) { in ParseAndEncodeFloatingPointNumber()
168 emit(BitwiseCast<uint32_t>(fVal)); in ParseAndEncodeFloatingPointNumber()
/external/pdfium/core/fpdfapi/page/
Dcpdf_devicecs.cpp24 float NormalizeChannel(float fVal) { in NormalizeChannel() argument
25 return pdfium::clamp(fVal, 0.0f, 1.0f); in NormalizeChannel()
/external/deqp-deps/glslang/SPIRV/
DSpvBuilder.cpp942 spvutils::HexFloat<spvutils::FloatProxy<float>> fVal(f16); in makeFloat16Constant() local
944 fVal.castTo(f16Val, spvutils::kRoundToZero); in makeFloat16Constant()