Home
last modified time | relevance | path

Searched refs:remainder (Results 1 - 7 of 7) sorted by relevance

/foundation/resourceschedule/ffrt/src/util/
H A Dtime_format.h37 std::string remainder; in FormatDateString() local
41 remainder = std::to_string(us); in FormatDateString()
42 if (remainder.length() < MaxUsLength) { in FormatDateString()
43 remainder = std::string(MaxUsLength - remainder.length(), '0') + remainder; in FormatDateString()
48 remainder = std::to_string(ms); in FormatDateString()
49 if (remainder.length() < MaxMsLength) { in FormatDateString()
50 remainder = std::string(MaxMsLength - remainder in FormatDateString()
[all...]
/foundation/ability/ability_runtime/utils/global/time/include/
H A Dtime_util.h64 auto remainder = timestamp % SEC_TO_MILLISEC; in DefaultCurrentTimeStr() local
66 for (int i = 2; i >= 0 && remainder > 0; i--) { in DefaultCurrentTimeStr()
67 milliStr[i] = '0' + remainder % DECIMAL_BASE; in DefaultCurrentTimeStr()
68 remainder /= DECIMAL_BASE; in DefaultCurrentTimeStr()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/
H A Dprotocol_proto.cpp313 uint32_t remainder = lengthToSplit % maxFragmentLen; in SplitFrameIntoPacketsIfNeed() local
315 uint16_t fragCount = ((remainder == 0) ? quotient : (quotient + 1)); in SplitFrameIntoPacketsIfNeed()
343 uint16_t remainder = lengthBeSplit % fragCount; in AnalyzeSplitStructure() local
345 outLastFragLen = quotient + remainder; in AnalyzeSplitStructure()
961 uint16_t remainder = fragmentInfo.splitLength % fragmentInfo.fragCount; in FrameFragmentation() local
967 uint32_t pieceFragLen = (fragNo != fragmentInfo.fragCount - 1) ? quotient : (quotient + remainder); in FrameFragmentation()
/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/
H A Dbitmap_manager.h472 int remainder = prefixLen % 8; in GetNetworkAddress() local
476 if (remainder) { in GetNetworkAddress()
477 out.s6_addr[quotient] = addr.s6_addr[quotient] & (~(0xff >> remainder)); in GetNetworkAddress()
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_db_helper.cpp728 int32_t remainder = rowCount % requestParam->pageSize; in QueryFirewallRule() local
729 if (remainder > 0) { in QueryFirewallRule()
882 int32_t remainder = rowCount % requestParam->pageSize; in QueryInterceptRecord() local
883 if (remainder > 0) { in QueryInterceptRecord()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_obj_abs_geometry.cpp122 return !ROSEN_EQ(std::remainder(trans_->rotation_, 90.f), 0.f, EPSILON); in IsNeedClientCompose()
/foundation/arkui/ace_engine/interfaces/native/node/
H A Dstyle_modifier.cpp2359 int remainder = i % NUM_4; in SetResponseRegion() local
2360 valuesArray.push_back(remainder > 1 ? (item->value[i].f32) / HUNDRED : item->value[i].f32); in SetResponseRegion()
2362 unitsArray.push_back(remainder > 1 ? NUM_3 : NUM_1); in SetResponseRegion()

Completed in 29 milliseconds