Home
last modified time | relevance | path

Searched refs:fVal (Results 1 – 21 of 21) 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 …]
DSkNx.h137 T fVal;
140 AI SkNx(T v) : fVal(v) {}
145 return fVal;
153 AI void store(void* ptr) const { memcpy(ptr, &fVal, sizeof(T)); }
176 AI bool anyTrue() const { return fVal != 0; }
177 AI bool allTrue() const { return fVal != 0; }
179 AI SkNx abs() const { return Abs(fVal); }
180 AI SkNx sqrt() const { return Sqrt(fVal); }
182 AI SkNx floor() const { return Floor(fVal); }
185 AI SkNx operator!() const { return !fVal; }
[all …]
DSkLinearBitmapPipeline_core.h27 explicit X(SkScalar val) : fVal{val} { } in X()
28 explicit X(SkPoint pt) : fVal{pt.fX} { } in X()
29 explicit X(SkSize s) : fVal{s.fWidth} { } in X()
30 explicit X(SkISize s) : fVal((SkScalar)s.fWidth) { } in X()
31 operator SkScalar () const {return fVal;} in SkScalar()
33 SkScalar fVal;
37 explicit Y(SkScalar val) : fVal{val} { } in Y()
38 explicit Y(SkPoint pt) : fVal{pt.fY} { } in Y()
39 explicit Y(SkSize s) : fVal{s.fHeight} { } in Y()
40 explicit Y(SkISize s) : fVal((SkScalar)s.fHeight) { } in Y()
[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/include/private/
DSkAtomics.h53 explicit SkAtomic(const T& val) : fVal(val) {} in SkAtomic()
57 return sk_atomic_load(&fVal, mo);
61 sk_atomic_store(&fVal, val, mo);
76 return sk_atomic_fetch_add(&fVal, val, mo);
80 return sk_atomic_fetch_sub(&fVal, val, mo);
86 return sk_atomic_compare_exchange(&fVal, expected, desired, success, failure);
89 T fVal;
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRBBITableBuilder.java126 bofLeaf.fVal = 2; // Reserved value for {bof}. in build()
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.java89 int fVal; // For leafChar nodes, the value. field in RBBINode
139 fVal = other.fVal;
292 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/icu4j/main/classes/core/src/com/ibm/icu/text/
DRBBITableBuilder.java125 bofLeaf.fVal = 2; // Reserved value for {bof}. in build()
442 int c = this.fRB.fSetBuilder.getFirstChar(endNode.fVal); in calcChainedFollowPos()
460 if (endNode.fVal == startNode.fVal) { in calcChainedFollowPos()
499 Assert.assrt(bofNode.fVal == 2); in bofFixup()
512 if (startNode.fVal == bofNode.fVal) { in bofFixup()
571 if ((p.fType == RBBINode.leafChar) && (p.fVal == a)) { in buildStateTable()
643 sd.fAccepting = endMarker.fVal; in flagAcceptingStates()
648 if (sd.fAccepting==-1 && endMarker.fVal != 0) { in flagAcceptingStates()
652 sd.fAccepting = endMarker.fVal; in flagAcceptingStates()
689 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.java264 endNode.fVal = fRuleNum; in doParseActions()
393 n.fVal = fRuleNum; in doParseActions()
404 n.fVal = 0; in doParseActions()
414 n.fVal = n.fVal * 10 + v; in doParseActions()
DRBBISetBuilder.java377 leafNode.fVal = val; in addValToSet()
/external/icu/icu4c/source/common/
Drbbitblb.cpp107 bofLeaf->fVal = 2; // Reserved value for {bof}. in build()
470 UChar32 c = this->fRB->fSetBuilder->getFirstChar(endNode->fVal); in calcChainedFollowPos()
490 if (endNode->fVal == startNode->fVal) { in calcChainedFollowPos()
533 U_ASSERT(bofNode->fVal == 2); in bofFixup()
550 if (startNode->fVal == bofNode->fVal) { in bofFixup()
649 if ((p->fType == RBBINode::leafChar) && (p->fVal == a)) { in buildStateTable()
749 sd->fAccepting = endMarker->fVal; in flagAcceptingStates()
754 if (sd->fAccepting==-1 && endMarker->fVal != 0) { in flagAcceptingStates()
758 sd->fAccepting = endMarker->fVal; in flagAcceptingStates()
801 sd->fLookAhead = lookAheadNode->fVal; in flagLookAheadStates()
[all …]
Drbbinode.cpp65 fVal = 0; in RBBINode()
94 fVal = other.fVal; in RBBINode()
320 node->fFirstPos, node->fVal); in printNode()
Drbbiscan.cpp346 endNode->fVal = fRuleNum; in doParseActions()
499 n->fVal = fRuleNum; in doParseActions()
513 n->fVal = 0; in doParseActions()
524 n->fVal = n->fVal*10 + v; in doParseActions()
Drbbinode.h77 int32_t fVal; // For leafChar nodes, the value. variable
Drbbisetb.cpp367 leafNode->fVal = (unsigned short)val; in addValToSet()
/external/pdfium/core/fpdfapi/page/
Dfpdf_page_colors.cpp24 FX_FLOAT NormalizeChannel(FX_FLOAT fVal) { in NormalizeChannel() argument
25 return std::min(std::max(fVal, 0.0f), 1.0f); in NormalizeChannel()
/external/pdfium/xfa/fxfa/app/
Dxfa_ffwidgetacc.cpp807 FX_FLOAT fVal = 0; in CalculateWidgetAutoSize() local
810 if (GetWidth(fVal)) { in CalculateWidgetAutoSize()
811 size.width = fVal; in CalculateWidgetAutoSize()
818 fVal = 0; in CalculateWidgetAutoSize()
821 if (GetHeight(fVal)) { in CalculateWidgetAutoSize()
822 size.height = fVal; in CalculateWidgetAutoSize()
/external/svox/pico/lib/
Dpicopam.c1491 picoos_single fVal; in f_round() local
1494 fVal = (picoos_single) iVal; in f_round()
1497 if ((fIn - fVal) < (picoos_single) 0.5f) in f_round()
1498 return fVal; in f_round()
1500 return fVal + (picoos_single) 1.0f; in f_round()
1502 if ((fVal - fIn) < (picoos_single) 0.5f) in f_round()
1503 return fVal; in f_round()
1505 return fVal - (picoos_single) 1.0f; in f_round()