Home
last modified time | relevance | path

Searched refs:OSRoundUp32B (Results 1 – 25 of 77) sorted by relevance

1234

/RvlSDK-3.2.2/build/demos/cntdemo/src/
Dcntdemo.c111 buffer1 = (u8*)MEMAllocFromAllocator(&DemoAllocator1, OSRoundUp32B(fileSize1)); in main()
112 buffer2 = (u8*)MEMAllocFromAllocator(&DemoAllocator1, OSRoundUp32B(fileSize2)); in main()
113 buffer3 = (u8*)MEMAllocFromAllocator(&DemoAllocator1, OSRoundUp32B(fileSize3)); in main()
116 rv = CNTRead(&fileInfo1, (void*)buffer1, (u32)OSRoundUp32B(fileSize1)); in main()
119 if (rv < 0 || rv != (u32)OSRoundUp32B(fileSize1)) in main()
126 rv = CNTRead(&fileInfo2, (void*)buffer2, (u32)OSRoundUp32B(fileSize2)); in main()
128 if (rv < 0 || rv != (u32)OSRoundUp32B(fileSize2)) in main()
141 rv = CNTRead(&fileInfo3, (void*)buffer3, (u32)OSRoundUp32B(fileSize3)); in main()
Ddatatitledemo.c113 buffer1 = (u8*)MEMAllocFromAllocator(&DemoAllocator1, OSRoundUp32B(fileSize1)); in main()
114 buffer2 = (u8*)MEMAllocFromAllocator(&DemoAllocator1, OSRoundUp32B(fileSize2)); in main()
115 buffer3 = (u8*)MEMAllocFromAllocator(&DemoAllocator1, OSRoundUp32B(fileSize3)); in main()
118 rv = CNTRead(&fileInfo1, (void*)buffer1, (u32)OSRoundUp32B(fileSize1)); in main()
121 if (rv < 0 || rv != (u32)OSRoundUp32B(fileSize1)) in main()
128 rv = CNTRead(&fileInfo2, (void*)buffer2, (u32)OSRoundUp32B(fileSize2)); in main()
130 if (rv < 0 || rv != (u32)OSRoundUp32B(fileSize2)) in main()
143 rv = CNTRead(&fileInfo3, (void*)buffer3, (u32)OSRoundUp32B(fileSize3)); in main()
/RvlSDK-3.2.2/build/demos/arcdemo/src/
Darctest2.c119 buf = (char*)OSAlloc(OSRoundUp32B(length)); in chdirOpenAllocRead()
123 if (OSRoundUp32B(length) != in chdirOpenAllocRead()
124 DVDRead(&finfo, (void*)buf, (s32)OSRoundUp32B(length), in chdirOpenAllocRead()
133 if (OSRoundUp32B(length) != in chdirOpenAllocRead()
134 DVDRead(&finfo, (void*)buf, (s32)OSRoundUp32B(length), 0)) in chdirOpenAllocRead()
177 length = OSRoundUp32B(DVDGetLength(&finfo)); in Read()
186 length = OSRoundUp32B(header.fileStart); in Read()
298 OSSetCurrentHeap(OSCreateHeap((void*)OSRoundUp32B(arenaLo), in MyOSInit()
Darctest1.c117 buf = (char*)OSAlloc(OSRoundUp32B(length)); in chdirOpenAllocRead()
119 if (OSRoundUp32B(length) != DVDRead(&finfo, (void*)buf, (s32)OSRoundUp32B(length), 0)) in chdirOpenAllocRead()
162 length = OSRoundUp32B(DVDGetLength(&finfo)); in Read()
164 buf = OSAlloc(OSRoundUp32B(length)); in Read()
275 OSSetCurrentHeap(OSCreateHeap((void*)OSRoundUp32B(arenaLo), in MyOSInit()
Darctest3.c142 length = OSRoundUp32B(DVDGetLength(&finfo)); in Read()
144 buf = OSAlloc(OSRoundUp32B(length)); in Read()
213 OSSetCurrentHeap(OSCreateHeap((void*)OSRoundUp32B(arenaLo), in MyOSInit()
/RvlSDK-3.2.2/build/demos/dvddemo/src/
Ddvddemo3.c156 buffer1 = (u8*)OSAlloc(OSRoundUp32B(fileSize1)); in main()
157 buffer2 = (u8*)OSAlloc(OSRoundUp32B(fileSize2)); in main()
160 (s32)OSRoundUp32B(fileSize1), 0, callback)) in main()
168 (s32)OSRoundUp32B(fileSize2), 0, callback)) in main()
262 OSSetCurrentHeap(OSCreateHeap((void*)OSRoundUp32B(arenaLo), in MyOSInit()
Ddvddemo1.c108 buffer = (u8*)OSAlloc(OSRoundUp32B(fileSize)); in main()
111 if (0 > DVDRead(&fileInfo, (void*)buffer, (s32)OSRoundUp32B(fileSize), 0)) in main()
163 OSSetCurrentHeap(OSCreateHeap((void*)OSRoundUp32B(arenaLo), in MyOSInit()
Ddvddemo2.c140 buffer = (u8*)OSAlloc(OSRoundUp32B(fileSize)); in main()
145 (s32)OSRoundUp32B(fileSize), 0, callback)) in main()
214 OSSetCurrentHeap(OSCreateHeap((void*)OSRoundUp32B(arenaLo), in MyOSInit()
/RvlSDK-3.2.2/build/demos/darchdemo/src/
Ddarchdemo.c98 … darchFileInfo->fileStart = OSAllocFromMEM2ArenaLo(OSRoundUp32B(DVDGetLength(&dvdFileInfo)), 32); in GetFileInfo()
101 … if(!DVDRead(&dvdFileInfo, darchFileInfo->fileStart, (s32)OSRoundUp32B(darchFileInfo->length), 0)) in GetFileInfo()
140 cmpBuffer = OSAllocFromMEM2ArenaLo(OSRoundUp32B(cmpSize), 32); in CompTest()
142 if(!DVDRead(&dvdFileInfo, cmpBuffer, (s32)OSRoundUp32B(cmpSize), 0)) in CompTest()
/RvlSDK-3.2.2/build/demos/videmo/src/
Dviewer.c192 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in readConvertBmp()
198 if (OSRoundUp32B(length) != in readConvertBmp()
199 DVDRead(&finfo, buf, (s32)OSRoundUp32B(length), 0)) in readConvertBmp()
301 if( NULL == (fn = OSAlloc(OSRoundUp32B(fnlength))) ) in idle()
336 if (OSRoundUp32B(length) != in idle()
337 DVDRead(&finfo, ip->image, (s32)OSRoundUp32B(length), 0)) in idle()
558 xfb1 = (u8*)OSRoundUp32B(arenaLo); in MyOSInit()
559 xfb2 = (u8*)OSRoundUp32B(arenaLo) in MyOSInit()
569 OSSetCurrentHeap(OSCreateHeap((void*)OSRoundUp32B(arenaLo), in MyOSInit()
Dcolor.c132 xfb1 = (u8*)OSRoundUp32B(arenaLo); in allocateFB()
133 xfb2 = (u8*)OSRoundUp32B(xfb1 + fbSize); in allocateFB()
Dmoving.c94 xfbA = (u8*)OSRoundUp32B(arenaLo); in allocateFB()
95 xfbB = (u8*)OSRoundUp32B(xfbA + fbSize); in allocateFB()
/RvlSDK-3.2.2/build/libraries/demo/src/
DDEMOInit.c231 DemoFifoBuffer = (void*)OSRoundUp32B((u32)arenaLo); in DEMOConfigureMem()
232 arenaLo = (void*)OSRoundUp32B((u32)DemoFifoBuffer + DEFAULT_FIFO_SIZE); in DEMOConfigureMem()
247 DemoFrameBuffer1 = (void*)OSRoundUp32B((u32)arenaLo); in DEMOConfigureMem()
248 DemoFrameBuffer2 = (void*)OSRoundUp32B((u32)DemoFrameBuffer1 + fbSize); in DEMOConfigureMem()
249 arenaLo = (void*)OSRoundUp32B((u32)DemoFrameBuffer2 + fbSize); in DEMOConfigureMem()
320 arenaLo = (void*)OSRoundUp32B(arenaLo); in DEMOConfigureMem()
/RvlSDK-3.2.2/build/demos/rsodemo/LinkListFixed0/src/
Dstatic.c52 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadFixed()
66 bss = (u8*) OSRoundUp32B(bss); in RsoLoadFixed()
69 new_arenaLo = OSRoundUp32B(new_arenaLo); in RsoLoadFixed()
101 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad()
/RvlSDK-3.2.2/build/libraries/gd/src/
DGDFile.c57 #define OSRoundUp32B(x) (((u32)(x) + 31) & ~31) macro
58 #define OSAlloc(x) ((void*)OSRoundUp32B(malloc((x)+31)))
225 padBytes = OSRoundUp32B(offset) - offset; in GDWriteDLFile()
339 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in GDReadDLFile()
442 if( NULL == (buf = OSAlloc(OSRoundUp32B(length))) ) in GDReadDLFile()
449 if (OSRoundUp32B(length) != in GDReadDLFile()
450 DVDRead(&finfo, buf, (s32)OSRoundUp32B(length), 0)) in GDReadDLFile()
/RvlSDK-3.2.2/build/demos/gddemo/src/
Dgd-matrix-host.c45 #define OSRoundUp32B(x) (((u32)(x) + 31) & ~31) macro
46 #define OSAlloc(x) ((void*)OSRoundUp32B(malloc((x)+31)))
Dgd-init-host.c46 #define OSRoundUp32B(x) (((u32)(x) + 31) & ~31) macro
47 #define OSAlloc(x) ((void*)OSRoundUp32B(malloc((x)+31)))
Dgd-texture-host.c46 #define OSRoundUp32B(x) (((u32)(x) + 31) & ~31) macro
47 #define OSAlloc(x) ((void*)OSRoundUp32B(malloc((x)+31)))
/RvlSDK-3.2.2/include/
Ddemo.h126 (*pal) = (TPLPalettePtr)MEMAllocFromAllocator(&DemoAllocator1, OSRoundUp32B(dfi.length)); in TPLGetPalette()
127 (void)DVDRead(&dfi, (*pal), (s32)OSRoundUp32B(dfi.length), 0); in TPLGetPalette()
/RvlSDK-3.2.2/build/demos/rsodemo/LinkMem2/src/
Dstatic.c51 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad()
79 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadMem2()
106 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad()
/RvlSDK-3.2.2/build/demos/thpdemo/src/THPPlayerStrmAX/
DTHPPlayer.c356 size = OSRoundUp32B(ActivePlayer.header.movieDataSize); in THPPlayerCalcNeedMemory()
360 size = OSRoundUp32B(ActivePlayer.header.bufSize) * READ_BUFFER_NUM; in THPPlayerCalcNeedMemory()
364 size += OSRoundUp32B(ActivePlayer.videoInfo.xSize * ActivePlayer.videoInfo.ySize) in THPPlayerCalcNeedMemory()
366 size += OSRoundUp32B(ActivePlayer.videoInfo.xSize * ActivePlayer.videoInfo.ySize / 4) in THPPlayerCalcNeedMemory()
368 size += OSRoundUp32B(ActivePlayer.videoInfo.xSize * ActivePlayer.videoInfo.ySize / 4) in THPPlayerCalcNeedMemory()
374 … size += (OSRoundUp32B(ActivePlayer.header.audioMaxSamples * 4) * DECODE_AUDIO_BUFFER_NUM); in THPPlayerCalcNeedMemory()
375 … size += (OSRoundUp32B(STREAM_BUFFER_MS * ActivePlayer.audioInfo.sndFrequency / 1000.0f + 0.5f) * 2 in THPPlayerCalcNeedMemory()
420 ptr += OSRoundUp32B(ActivePlayer.header.bufSize); in THPPlayerSetBuffer()
424 ysize = OSRoundUp32B(ActivePlayer.videoInfo.xSize * ActivePlayer.videoInfo.ySize); in THPPlayerSetBuffer()
425 uvsize = OSRoundUp32B(ActivePlayer.videoInfo.xSize * ActivePlayer.videoInfo.ySize / 4); in THPPlayerSetBuffer()
[all …]
/RvlSDK-3.2.2/build/demos/reldemo/src/
Dstatic.c127 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in Load()
150 OSSetArenaLo((void*) OSRoundUp32B(bss + module->bssSize)); in Load()
186 length = OSRoundUp32B(DVDGetLength(&fileInfo)); in main()
/RvlSDK-3.2.2/build/demos/rsodemo/MakeInc/src/
Dstatic.c63 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad()
90 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad()
/RvlSDK-3.2.2/build/demos/rsodemo/LinkJump/src/
Dstatic.c72 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad()
100 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadMem2()
128 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad()
/RvlSDK-3.2.2/build/demos/rsodemo/LinkFar/src/
Dstatic.c121 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoad()
149 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in RsoLoadMem2()
176 length = (s32) OSRoundUp32B(DVDGetLength(&fileInfo)); in StaticRsoLoad()

1234