Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 62) sorted by relevance

123

/CafeSDK-2.12.13-1/system/src/lib/szfile/
DCpuArch.h65 #define GetUi16(p) (*(const UInt16 *)(p)) argument
66 #define GetUi32(p) (*(const UInt32 *)(p)) argument
67 #define GetUi64(p) (*(const UInt64 *)(p)) argument
68 #define SetUi16(p, d) *(UInt16 *)(p) = (d); argument
69 #define SetUi32(p, d) *(UInt32 *)(p) = (d); argument
70 #define SetUi64(p, d) *(UInt64 *)(p) = (d); argument
74 #define GetUi16(p) (((const Byte *)(p))[0] | ((UInt16)((const Byte *)(p))[1] << 8))
76 #define GetUi32(p) ( \
77 ((const Byte *)(p))[0] | \
78 ((UInt32)((const Byte *)(p))[1] << 8) | \
[all …]
D7zBuf2.c7 void DynBuf_Construct(CDynBuf *p) in DynBuf_Construct() argument
9 p->data = 0; in DynBuf_Construct()
10 p->size = 0; in DynBuf_Construct()
11 p->pos = 0; in DynBuf_Construct()
14 void DynBuf_SeekToBeg(CDynBuf *p) in DynBuf_SeekToBeg() argument
16 p->pos = 0; in DynBuf_SeekToBeg()
19 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc) in DynBuf_Write() argument
21 if (size > p->size - p->pos) in DynBuf_Write()
23 size_t newSize = p->pos + size; in DynBuf_Write()
29 p->size = newSize; in DynBuf_Write()
[all …]
D7zStream.c72 CLookToRead *p = (CLookToRead *)pp; in LookToRead_Look_Lookahead() local
73 size_t size2 = p->size - p->pos; in LookToRead_Look_Lookahead()
76 p->pos = 0; in LookToRead_Look_Lookahead()
78 res = p->realStream->Read(p->realStream, p->buf, &size2); in LookToRead_Look_Lookahead()
79 p->size = size2; in LookToRead_Look_Lookahead()
83 *buf = p->buf + p->pos; in LookToRead_Look_Lookahead()
90 CLookToRead *p = (CLookToRead *)pp; in LookToRead_Look_Exact() local
91 size_t size2 = p->size - p->pos; in LookToRead_Look_Exact()
94 p->pos = 0; in LookToRead_Look_Exact()
97 res = p->realStream->Read(p->realStream, p->buf, size); in LookToRead_Look_Exact()
[all …]
D7zFile.c28 void File_Construct(CSzFile *p) in File_Construct() argument
31 p->handle = INVALID_HANDLE_VALUE; in File_Construct()
33 p->file = NULL; in File_Construct()
38 static WRes File_Open(CSzFile *p, const char *name, int writeMode) in File_Open() argument
41 p->handle = CreateFileA(name, in File_Open()
46 return (p->handle != INVALID_HANDLE_VALUE) ? 0 : GetLastError(); in File_Open()
48 p->file = fopen(name, writeMode ? "wb+" : "rb"); in File_Open()
49 return (p->file != 0) ? 0 : in File_Open()
58 WRes InFile_Open(CSzFile *p, const char *name) { return File_Open(p, name, 0); } in InFile_Open() argument
59 WRes OutFile_Open(CSzFile *p, const char *name) { return File_Open(p, name, 1); } in OutFile_Open() argument
[all …]
D7zBuf.c8 void Buf_Init(CBuf *p) in Buf_Init() argument
10 p->data = 0; in Buf_Init()
11 p->size = 0; in Buf_Init()
14 int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc) in Buf_Create() argument
16 p->size = 0; in Buf_Create()
19 p->data = 0; in Buf_Create()
22 p->data = (Byte *)alloc->Alloc(alloc, size); in Buf_Create()
23 if (p->data != 0) in Buf_Create()
25 p->size = size; in Buf_Create()
31 void Buf_Free(CBuf *p, ISzAlloc *alloc) in Buf_Free() argument
[all …]
D7zAlloc.c21 void *SzAlloc(void *p, size_t size) in SzAlloc() argument
23 p = p; in SzAlloc()
33 void SzFree(void *p, void *address) in SzFree() argument
35 p = p; in SzFree()
46 void *SzAllocTemp(void *p, size_t size) in SzAllocTemp() argument
48 p = p; in SzAllocTemp()
61 void SzFreeTemp(void *p, void *address) in SzFreeTemp() argument
63 p = p; in SzFreeTemp()
D7zFile.h32 void File_Construct(CSzFile *p);
34 WRes InFile_Open(CSzFile *p, const char *name);
35 WRes OutFile_Open(CSzFile *p, const char *name);
38 WRes InFile_OpenW(CSzFile *p, const WCHAR *name);
39 WRes OutFile_OpenW(CSzFile *p, const WCHAR *name);
41 WRes File_Close(CSzFile *p);
44 WRes File_Read(CSzFile *p, void *data, size_t *size);
47 WRes File_Write(CSzFile *p, const void *data, size_t *size);
49 WRes File_Seek(CSzFile *p, Int64 *pos, ESzSeek origin);
50 WRes File_GetLength(CSzFile *p, UInt64 *length);
[all …]
D7zIn.c17 void SzCoderInfo_Init(CSzCoderInfo *p) in SzCoderInfo_Init() argument
19 Buf_Init(&p->Props); in SzCoderInfo_Init()
22 void SzCoderInfo_Free(CSzCoderInfo *p, ISzAlloc *alloc) in SzCoderInfo_Free() argument
24 Buf_Free(&p->Props, alloc); in SzCoderInfo_Free()
25 SzCoderInfo_Init(p); in SzCoderInfo_Free()
28 void SzFolder_Init(CSzFolder *p) in SzFolder_Init() argument
30 p->Coders = 0; in SzFolder_Init()
31 p->BindPairs = 0; in SzFolder_Init()
32 p->PackStreams = 0; in SzFolder_Init()
33 p->UnpackSizes = 0; in SzFolder_Init()
[all …]
DCpuArch.c97 Bool x86cpuid_CheckAndRead(Cx86cpuid *p) in x86cpuid_CheckAndRead() argument
100 MyCPUID(0, &p->maxFunc, &p->vendor[0], &p->vendor[2], &p->vendor[1]); in x86cpuid_CheckAndRead()
101 MyCPUID(1, &p->ver, &p->b, &p->c, &p->d); in x86cpuid_CheckAndRead()
112 int x86cpuid_GetFirm(const Cx86cpuid *p) in x86cpuid_GetFirm() argument
118 if (v[0] == p->vendor[0] && in x86cpuid_GetFirm()
119 v[1] == p->vendor[1] && in x86cpuid_GetFirm()
120 v[2] == p->vendor[2]) in x86cpuid_GetFirm()
128 Cx86cpuid p; in CPU_Is_InOrder() local
131 if (!x86cpuid_CheckAndRead(&p)) in CPU_Is_InOrder()
133 family = x86cpuid_GetFamily(&p); in CPU_Is_InOrder()
[all …]
D7zTypes.h129 Byte (*Read)(void *p); /* reads one byte, returns 0 in case of EOF or error */
134 void (*Write)(void *p, Byte b);
139 SRes (*Read)(void *p, void *buf, size_t *size);
151 size_t (*Write)(void *p, const void *buf, size_t size);
165 SRes (*Read)(void *p, void *buf, size_t *size); /* same as ISeqInStream::Read */
166 SRes (*Seek)(void *p, Int64 *pos, ESzSeek origin);
171 SRes (*Look)(void *p, const void **buf, size_t *size);
175 SRes (*Skip)(void *p, size_t offset);
178 SRes (*Read)(void *p, void *buf, size_t *size);
180 SRes (*Seek)(void *p, Int64 *pos, ESzSeek origin);
[all …]
D7zCrcOpt.c12 const Byte *p = (const Byte *)data; in CrcUpdateT4() local
13 for (; size > 0 && ((unsigned)(ptrdiff_t)p & 3) != 0; size--, p++) in CrcUpdateT4()
14 v = CRC_UPDATE_BYTE_2(v, *p); in CrcUpdateT4()
15 for (; size >= 4; size -= 4, p += 4) in CrcUpdateT4()
17 v ^= *(const UInt32 *)p; in CrcUpdateT4()
24 for (; size > 0; size--, p++) in CrcUpdateT4()
25 v = CRC_UPDATE_BYTE_2(v, *p); in CrcUpdateT4()
D7zBuf.h19 void Buf_Init(CBuf *p);
20 int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc);
21 void Buf_Free(CBuf *p, ISzAlloc *alloc);
30 void DynBuf_Construct(CDynBuf *p);
31 void DynBuf_SeekToBeg(CDynBuf *p);
32 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc);
33 void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc);
D7z.h54 void SzCoderInfo_Init(CSzCoderInfo *p);
55 void SzCoderInfo_Free(CSzCoderInfo *p, ISzAlloc *alloc);
78 void SzFolder_Init(CSzFolder *p);
79 UInt64 SzFolder_GetUnpackSize(CSzFolder *p);
80 int SzFolder_FindBindPairForInStream(CSzFolder *p, UInt32 inStreamIndex);
81 UInt32 SzFolder_GetNumOutStreams(CSzFolder *p);
82 UInt64 SzFolder_GetUnpackSize(CSzFolder *p);
108 void SzFile_Init(CSzFileItem *p);
122 void SzAr_Init(CSzAr *p);
123 void SzAr_Free(CSzAr *p, ISzAlloc *alloc);
[all …]
D7zAlloc.h9 void *SzAlloc(void *p, size_t size);
10 void SzFree(void *p, void *address);
12 void *SzAllocTemp(void *p, size_t size);
13 void SzFreeTemp(void *p, void *address);
/CafeSDK-2.12.13-1/system/include/cafe/
Dmix.h139 AXVPB *p, // pointer to voice
150 void MIXReleaseChannel (AXVPB *p);
152 void MIXResetControls (AXVPB *p);
154 void MIXSetInput (AXVPB *p, int dB);
155 void MIXAdjustInput (AXVPB *p, int dB);
156 int MIXGetInput (AXVPB *p);
158 void MIXAuxAPostFader (AXVPB *p);
159 void MIXAuxAPreFader (AXVPB *p);
160 BOOL MIXAuxAIsPostFader (AXVPB *p);
161 void MIXSetAuxA (AXVPB *p, int dB);
[all …]
/CafeSDK-2.12.13-1/system/src/lib/libsys/
Dind_mprf.c112 CNT_List *p, *next; in __ghs_prof_clear_callcounts() local
115 for (p = __cntHead__; p; p = next) { in __ghs_prof_clear_callcounts()
116 next = p->next; in __ghs_prof_clear_callcounts()
120 for (i=0; i<p->numUsed; i++) { in __ghs_prof_clear_callcounts()
121 p->counts[i].pc = 0; in __ghs_prof_clear_callcounts()
122 *(p->counts[i].countPtr) = 0; in __ghs_prof_clear_callcounts()
126 p->next = __cntFreeList__; in __ghs_prof_clear_callcounts()
127 __cntFreeList__ = p; in __ghs_prof_clear_callcounts()
153 CNT_List *p; in __ghs_prof_dump_callcounts() local
160 for (totalUsed = 0, p = __cntHead__; p; p = p->next) in __ghs_prof_dump_callcounts()
[all …]
Dindsecinfo.h50 secinfo_ptr p;
52 for (p = &__secinfo; p != NULL; p=p->next,count++) {
53 printf("section \"%s\"\n",p->name);
54 printf(" address: 0x%08x\n",p->addr);
55 printf(" length: 0x%x\n",p->size);
58 if (p->flags&SECINFO_##F) printf("%s ",#F)
66 if (p->romcopyof)
67 printf(" ROMing: \"%s\"\n",p->romcopyof->name);
Dind_bcnt.c55 struct bhdr *p, *next; in __ghs_prof_clear_coverage() local
57 for (p = blocklisthead; p; p = next) { in __ghs_prof_clear_coverage()
58 next = p->next; in __ghs_prof_clear_coverage()
59 if (p->len > 0) { in __ghs_prof_clear_coverage()
61 for (i = 0; i < p->len - 1; i++) in __ghs_prof_clear_coverage()
62 p->info[i].cnt = 0; in __ghs_prof_clear_coverage()
65 if (p->info[p->len - 1].cnt != (unsigned int)-1) in __ghs_prof_clear_coverage()
66 p->info[p->len - 1].cnt = 0; in __ghs_prof_clear_coverage()
/CafeSDK-2.12.13-1/system/src/lib/demo/
DdemoTest.c70 const u8 *p = (const u8 *)datap; in DEMOTestHashCRC16() local
74 u32 data = *p; in DEMOTestHashCRC16()
75 p++; in DEMOTestHashCRC16()
96 const u8 *p = (const u8 *)datap; in DEMOTestHashCRC32() local
100 u32 data = *p; in DEMOTestHashCRC32()
101 p++; in DEMOTestHashCRC32()
117 char *p; in DEMOTestInit() local
141 p = strstr(argv[i], "STOP_SELECT="); in DEMOTestInit()
142 if (p) { in DEMOTestInit()
143 DEMOTestData.stopSelect = (u32) atoi(p+strlen("STOP_SELECT=")); in DEMOTestInit()
[all …]
DdemoDRC.c77 char *p; in DEMODRCInit() local
93 p = strstr(argv[i], "DEMO_DRC_WIDTH"); in DEMODRCInit()
94 if (p != 0){ in DEMODRCInit()
95 renderWidth = (u32)atoi(p+14+SKIP_NON_DIGIT(p[14])); in DEMODRCInit()
97 p = strstr(argv[i], "DEMO_DRC_HEIGHT"); in DEMODRCInit()
98 if (p != 0){ in DEMODRCInit()
99 renderHeight = (u32)atoi(p+15+SKIP_NON_DIGIT(p[15])); in DEMODRCInit()
101 p = strstr(argv[i], "DEMO_DRC_CB_FORMAT"); in DEMODRCInit()
102 if (p != 0){ in DEMODRCInit()
103 p = p+18+SKIP_NON_DIGIT(p[18]); in DEMODRCInit()
[all …]
DdemoGfx.c191 char *p; in DEMOGfxInit() local
248 p = strstr(argv[i], "DEMO_WIDTH"); in DEMOGfxInit()
249 if (p != 0){ in DEMOGfxInit()
250 renderWidth = (u32)atoi(p+10+SKIP_NON_DIGIT(p[10])); in DEMOGfxInit()
252 p = strstr(argv[i], "DEMO_HEIGHT"); in DEMOGfxInit()
253 if (p != 0){ in DEMOGfxInit()
254 renderHeight = (u32)atoi(p+11+SKIP_NON_DIGIT(p[11])); in DEMOGfxInit()
256 p = strstr(argv[i], "DEMO_CB_FORMAT"); in DEMOGfxInit()
257 if (p != 0){ in DEMOGfxInit()
258 p = p+14+SKIP_NON_DIGIT(p[14]); in DEMOGfxInit()
[all …]
/CafeSDK-2.12.13-1/system/include/
DLzmaTypes.h129 Byte (*Read)(void *p); /* reads one byte, and returns 0 for EOF or error */
134 void (*Write)(void *p, Byte b);
139 SRes (*Read)(void *p, void *buf, size_t *size);
151 size_t (*Write)(void *p, const void *buf, size_t size);
165 SRes (*Read)(void *p, void *buf, size_t *size); /* same as ISeqInStream::Read */
166 SRes (*Seek)(void *p, Int64 *pos, ESzSeek origin);
171 SRes (*Look)(void *p, const void **buf, size_t *size);
175 SRes (*Skip)(void *p, size_t offset);
178 SRes (*Read)(void *p, void *buf, size_t *size);
180 SRes (*Seek)(void *p, Int64 *pos, ESzSeek origin);
[all …]
DLzma2Dec.h27 #define Lzma2Dec_Construct(p) LzmaDec_Construct(&(p)->decoder) argument
28 #define Lzma2Dec_FreeProbs(p, alloc) LzmaDec_FreeProbs(&(p)->decoder, alloc); argument
29 #define Lzma2Dec_Free(p, alloc) LzmaDec_Free(&(p)->decoder, alloc); argument
31 SRes Lzma2Dec_AllocateProbs(CLzma2Dec *p, Byte prop, ISzAlloc *alloc);
32 SRes Lzma2Dec_Allocate(CLzma2Dec *p, Byte prop, ISzAlloc *alloc);
33 void Lzma2Dec_Init(CLzma2Dec *p);
51 SRes Lzma2Dec_DecodeToDic(CLzma2Dec *p, SizeT dicLimit,
54 SRes Lzma2Dec_DecodeToBuf(CLzma2Dec *p, Byte *dest, SizeT *destLen,
DLzma2Enc.h21 void Lzma2EncProps_Init(CLzma2EncProps *p);
22 void Lzma2EncProps_Normalize(CLzma2EncProps *p);
39 void Lzma2Enc_Destroy(CLzma2EncHandle p);
40 SRes Lzma2Enc_SetProps(CLzma2EncHandle p, const CLzma2EncProps *props);
41 Byte Lzma2Enc_WriteProperties(CLzma2EncHandle p);
42 SRes Lzma2Enc_Encode(CLzma2EncHandle p,
/CafeSDK-2.12.13-1/system/src/lib/mtx/
DmtxQuat.c48 void C_QUATAdd( const Quaternion *p, const Quaternion *q, Quaternion *r ) in C_QUATAdd() argument
50 ASSERTMSG( ( p != 0 ), QUAT_ADD_1 ); in C_QUATAdd()
54 r->x = p->x + q->x; in C_QUATAdd()
55 r->y = p->y + q->y; in C_QUATAdd()
56 r->z = p->z + q->z; in C_QUATAdd()
57 r->w = p->w + q->w; in C_QUATAdd()
66 void PSQUATAdd( const Quaternion *p, const Quaternion *q, Quaternion *r ) in PSQUATAdd() argument
73 pxy = __PSQ_LX(p, 0, 0, 0); in PSQUATAdd()
91 pzw = __PSQ_LX(p, 8, 0, 0); in PSQUATAdd()
122 void C_QUATSubtract( const Quaternion *p, const Quaternion *q, Quaternion *r ) in C_QUATSubtract() argument
[all …]

123