增加两个定点数常量
This commit is contained in:
@@ -10,6 +10,8 @@ const ifloat64 ifloat64::kTwo{ INT64_C(2) << kShift };
|
||||
const ifloat64 ifloat64::kThree{ INT64_C(3) << ifloat64::kShift };
|
||||
const ifloat64 ifloat64::kFour{ INT64_C(4) << ifloat64::kShift };
|
||||
const ifloat64 ifloat64::kHalf{ INT64_C(1) << (ifloat64::kShift-1) };
|
||||
const ifloat64 ifloat64::kQuater{ INT64_C(1) << (ifloat64::kShift - 2) };
|
||||
const ifloat64 ifloat64::kOneEighth{ INT64_C(1) << (ifloat64::kShift - 3) };
|
||||
const ifloat64 ifloat64::kPi{ INT64_C(0x3243f6a89) }; //static_cast<int64_t>(std::round(M_PI * kFloatScale));
|
||||
const ifloat64 ifloat64::kPi2{ INT64_C(0x6487ed511) };
|
||||
const ifloat64 ifloat64::kPiHalf{ INT64_C(0x1921fb544) };
|
||||
|
||||
Reference in New Issue
Block a user