Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 42) sorted by relevance

12

/CTR-SDK-4.2.5/sources/libraries/fnd/
Dfnd_Storage.cpp23 size_t& ret = *pOut; in TryRead() local
26 ret = m_Size - m_Position; in TryRead()
30 ret = size; in TryRead()
32 NN_ASSERT(m_Position + ret <= m_Size); in TryRead()
33 std::memcpy(buffer, m_Buffer + m_Position, ret); in TryRead()
34 m_Position += ret; in TryRead()
40 size_t& ret = *pOut; in TryWrite() local
43 ret = m_Size - m_Position; in TryWrite()
47 ret = size; in TryWrite()
49 NN_ASSERT(m_Position + ret <= m_Size); in TryWrite()
[all …]
/CTR-SDK-4.2.5/sources/libraries/os/
Dos_WaitableCounter.cpp32 Result ret = nn::svc::CreateAddressArbiter(&h); in Initialize() local
33 NN_TASSERT_( ret.IsSuccess() ); in Initialize()
35 if( ret.IsSuccess() ) in Initialize()
46 Result ret = nn::svc::CloseHandle(s_Handle); in Finalize() local
47 NN_TASSERT_( ret.IsSuccess() ); in Finalize()
49 if( ret.IsSuccess() ) in Finalize()
/CTR-SDK-4.2.5/sources/libraries/rdt/CTR/
Drdt_Segment.cpp48 u32 ret = min(header.dataLength, len); in GetData() local
49 memcpy(pBuf, payload, ret); in GetData()
51 return ret; in GetData()
89 u32 ret = header.dataLength; in GetSegmentLength() local
92 ++ret; in GetSegmentLength()
96 ++ret; in GetSegmentLength()
99 return ret; in GetSegmentLength()
Drdt_Utility.cpp112 int ret = ioctlsocket(sock, FIONBIO, &val); in SetupServerSide() local
113 if(ret!=0) in SetupServerSide()
115 printf("error: %d\n", ret); in SetupServerSide()
144 int ret = connect(sock, (struct sockaddr *)&server, sizeof(server)); in SetupClientSide() local
145 assert(ret==0); in SetupClientSide()
150 int ret = ioctlsocket(sock, FIONBIO, &val); in SetupClientSide() local
151 if(ret!=0) in SetupClientSide()
153 printf("error: %d\n", ret); in SetupClientSide()
182 u16 ret = s_counter + OFFSET; in GetAvailablePort() local
186 ASSERT((49152<=ret) && (ret <= 65535)); in GetAvailablePort()
[all …]
Drdt_SendBuffer.cpp82 bool ret = m_ringBuf.Push(pBuf, len); in Push() local
83 if(ret) in Push()
101 size_t ret = m_ringBuf.Read(pBuf, len); in Pull() local
102 if(ret > 0) in Pull()
104 m_ringBuf.Pop(ret); in Pull()
106 m_readByte += ret; in Pull()
107 return ret; in Pull()
Drdt_ReceiveBuffer.cpp97 bool ret = m_ringBuf.Push(pBuf, len); in Push() local
98 if(ret) in Push()
102 return ret; in Push()
128 size_t ret = m_ringBuf.GetRestSize(); in GetRestSize() local
132 ASSERT((0 <= ret) && (ret <= USHRT_MAX)); in GetRestSize()
134 return ret; in GetRestSize()
Drdt_Transceiver.cpp41 int ret = ::send(sock, static_cast<const char*>(pBuf), bufSize, c_flags); in SendRawData() local
42 if(ret < 1) in SendRawData()
72 return ret; in SendRawData()
84 int ret = ::recv(sock, static_cast<char*>(pBuf), bufSize, 0); in RecvRawData() local
85 if(ret < 0) in RecvRawData()
106 return ret; in RecvRawData()
354 nn::Result ret; in Put() local
355 int n = SendRawData(&m_sendEp, m_remoteNodeId, m_port, &seg, sizeof(Segment), &ret); in Put()
370 return ret; // Return the UDS errors as is in Put()
385 nn::Result ret; in Pull() local
[all …]
Drdt_Stopwatch.cpp104 bool ret = initInstance("(No name)"); in Stopwatch() local
105 if(!ret) in Stopwatch()
122 bool ret = initInstance(name); in Stopwatch() local
123 if(!ret) in Stopwatch()
Drdt_RingBuffer.cpp216 u8 *ret = m_pHeadData + m_dataLength; in getEndOfData() local
217 if(ret < getEndOfBuffer()) in getEndOfData()
223 ret -= m_bufLength; in getEndOfData()
226 ASSERT(isValidAddress(ret)); in getEndOfData()
228 return ret; in getEndOfData()
/CTR-SDK-4.2.5/include/nn/fs/
Dfs_FileBase.h134 s32 ret; in Read() local
135 NN_ERR_THROW_FATAL_ALL(TryRead(&ret, buffer, size)); in Read()
136 return ret; in Read()
141 s32 ret; in Write() local
142 NN_ERR_THROW_FATAL_ALL(TryWrite(&ret, buffer, size, flush)); in Write()
143 return ret; in Write()
153 s64 ret; in GetPosition() local
154 NN_ERR_THROW_FATAL_ALL(TryGetPosition(&ret)); in GetPosition()
155 return ret; in GetPosition()
165 s64 ret; in GetSize() local
[all …]
Dfs_MemoryStream.h55 …s32 Read(void* buffer, size_t size) { s32 ret; NN_ERR_THROW_FATAL_ALL(TryRead(&ret, buffer, size))… in Read() local
58 …te(const void* buffer, size_t size) { s32 ret; NN_ERR_THROW_FATAL_ALL(TryWrite(&ret, buffer, size)… in Write() local
Dfs_DirectoryBase.h97 s32 ret; in Read() local
98 NN_ERR_THROW_FATAL_ALL(TryRead(&ret, pEntries, numEntries)); in Read()
99 return ret; in Read()
/CTR-SDK-4.2.5/include/nn/fnd/
Dfnd_TimeSpan.h73 …imeSpan FromNanoSeconds(s64 nanoSeconds) { TimeSpan ret; ret.m_NanoSeconds = nanoSeconds; return r… in FromNanoSeconds() local
254 …eSpan operator+(const TimeSpan& lhs, const TimeSpan& rhs) { TimeSpan ret(lhs); return ret += rhs; }
271 …eSpan operator-(const TimeSpan& lhs, const TimeSpan& rhs) { TimeSpan ret(lhs); return ret -= rhs; }
Dfnd_WaitableUnitHeap.h80 void* ret = Base::Allocate(); in TryAllocate() local
81 NN_TASSERT_(ret); in TryAllocate()
82 return ret; in TryAllocate()
99 void* ret = Base::Allocate(); in Allocate() local
100 NN_TASSERT_(ret); in Allocate()
101 return ret; in Allocate()
Dfnd_Queue.h123 Item* ret = m_Head; in Dequeue() local
132 ret->m_NextLink = 0; in Dequeue()
133 return static_cast<T*>(ret); in Dequeue()
Dfnd_DateTime.h255 …eTime operator+(const DateTime& lhs, const TimeSpan& rhs) { DateTime ret(lhs); return ret += rhs; }
265 …eTime operator-(const DateTime& lhs, const TimeSpan& rhs) { DateTime ret(lhs); return ret -= rhs; }
Dfnd_LinkedList.h304 if (T* ret = GetFront()) in PopFront() local
306 this->Erase(ret); in PopFront()
307 return ret; in PopFront()
318 if (T* ret = GetBack()) in PopBack() local
320 this->Erase(ret); in PopBack()
321 return ret; in PopBack()
Dfnd_FrameHeap.h133 uptr ret; in Allocate() local
141 ret = RoundUp(m_CurrentHead, alignment); in Allocate()
142 uptr current = ret + size; in Allocate()
153 uptr current = ret = RoundDown(m_CurrentTail-size, -alignment); in Allocate()
165 DebugFillMemory(ret, size, HEAP_FILL_TYPE_ALLOC); in Allocate()
166 FillMemoryZero(ret, size); in Allocate()
168 return reinterpret_cast<void*>(ret); in Allocate()
/CTR-SDK-4.2.5/include/nn/os/
Dos_Synchronization.h191 s32 ret; in WaitAny() local
192 nn::Result result = WaitMultiple(&ret, objs, numObjects, false, timeout.GetNanoSeconds()); in WaitAny()
194 return (result.GetDescription() == nn::Result::DESCRIPTION_TIMEOUT) ? -1 : ret; in WaitAny()
199 s32 ret; in WaitAny() local
200 NN_OS_ERROR_IF_FAILED(WaitMultiple(&ret, objs, numObjects, false, WAIT_INFINITE)); in WaitAny()
201 return ret; in WaitAny()
Dos_Tick.h252 inline Tick Tick::operator-(Tick rhs) const { Tick ret(*this); return ret -= rhs; }
254 inline Tick Tick::operator+(Tick rhs) const { Tick ret(*this); return ret += rhs; }
255 inline Tick Tick::operator+(fnd::TimeSpan rhs) const { Tick ret(*this); return ret += rhs; }
Dos_Thread.h1001 bit32 ret; in GetId() local
1002 NN_OS_ERROR_IF_FAILED(nn::svc::GetThreadId(&ret, GetHandle())); in GetId()
1003 return ret; in GetId()
1008 bit32 ret; in GetCurrentId() local
1009 NN_OS_ERROR_IF_FAILED(nn::svc::GetThreadId(&ret, PSEUDO_HANDLE_CURRENT_THREAD)); in GetCurrentId()
1010 return ret; in GetCurrentId()
1015 s32 ret; in GetPriority() local
1016 NN_OS_ERROR_IF_FAILED(nn::svc::GetThreadPriority(&ret, GetHandle())); in GetPriority()
1017 return os::detail::ConvertSvcToLibraryPriority(ret); in GetPriority()
1022 s32 ret; in GetCurrentPriority() local
[all …]
Dos_Semaphore.h201 s32 ret; in Release() local
202 NN_OS_ERROR_IF_FAILED(nn::svc::ReleaseSemaphore(&ret, GetHandle(), releaseCount)); in Release()
203 return ret; in Release()
/CTR-SDK-4.2.5/include/nn/math/
Dmath_Arithmetic.h112 f32 ret; in FSelect() local
114 ret = (cond >= 0) ? ifPos: ifNeg; in FSelect()
117 return ret; in FSelect()
131 f32 ret; in FAbs() local
133 ret = ::std::fabsf(x); in FAbs()
136 return ret; in FAbs()
150 f32 ret; in FNAbs() local
152 ret = - FAbs(x); in FNAbs()
155 return ret; in FNAbs()
/CTR-SDK-4.2.5/sources/libraries/init/
Dinit_Default.cpp68 bool ret = false; in nninitIsStartUpDefaultUsing() local
70 ret = s_UsingStartUpDefault; in nninitIsStartUpDefaultUsing()
72 return ret; in nninitIsStartUpDefaultUsing()
/CTR-SDK-4.2.5/include/nn/math/ARMv6/
Dmath_Arithmetic.h110 f32 tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, ret; in HermiteC_FAST() local
119 ret = v0 + tmp1 * tmp2 * tmp3 + tmp4 * (tmp5 + tmp6); in HermiteC_FAST()
120 return ret; in HermiteC_FAST()

12