Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
CIccOpDefCubeRoot Class Reference
+ Inheritance diagram for CIccOpDefCubeRoot:
+ Collaboration diagram for CIccOpDefCubeRoot:

Public Member Functions

virtual bool Exec (SIccCalcOp *op, SIccOpState &os)
 
- Public Member Functions inherited from IIccOpDef
virtual int ArgsPushed (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual int ArgsUsed (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual void Describe (SIccCalcOp &op, std::string &desc, int nVerboseness)
 
 IIccOpDef ()
 
virtual bool IsValid (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual ~IIccOpDef ()
 

Detailed Description

Definition at line 1126 of file IccMpeCalc.cpp.

Member Function Documentation

◆ Exec()

virtual bool CIccOpDefCubeRoot::Exec ( SIccCalcOp * op,
SIccOpState & os )
inlinevirtual

Reimplemented from IIccOpDef.

Definition at line 1129 of file IccMpeCalc.cpp.

1130 {
1131 int j, n = op->data.select.v1+1;
1132 icFloatNumber a1;
1133 size_t ss = os.pStack->size();
1134 if (n>(int)ss)
1135 return false;
1136 icFloatNumber *s = &(*os.pStack)[ss-n];
1137 for (j=0; j<n; j++) {
1138 a1 = s[j];
1139 s[j] = (icFloatNumber)ICC_CBRTF(a1);
1140 }
1141 return true;
1142 }
float icFloatNumber
All floating point operations/variables in IccProfLib use the icFloatNumber data type.
Definition IccDefs.h:100
#define ICC_CBRTF(v)
icUInt16Number v1
Definition IccMpeCalc.h:243
struct SIccCalcOp::@1::@2 select
union SIccCalcOp::@1 data
CIccFloatVector * pStack
Definition IccMpeCalc.h:275

References SIccCalcOp::data, ICC_CBRTF, SIccOpState::pStack, SIccCalcOp::select, and SIccCalcOp::v1.


The documentation for this class was generated from the following file: