Lines Matching refs:res

241     void *res = malloc(size);  in smalloc()  local
242 assert(res != 0); in smalloc()
243 return res; in smalloc()
248 void *res = calloc(n, size); in scalloc() local
249 assert(res != 0); in scalloc()
250 return res; in scalloc()
349 F16Dot16 res; in fixedMul() local
361 res = a1 * a2; in fixedMul()
365 res <<= 16; in fixedMul()
366 res += a1 * b2 + b1 * a2 + ((b1 * b2) >> 16); in fixedMul()
368 return sign ? -res : res; in fixedMul()
375 F16Dot16 res; in fixedDiv() local
392 res = (f << 16) + (r << 16) / b; in fixedDiv()
394 return sign ? -res : res; in fixedDiv()
401 F16Dot16 res; in fixedMulDiv() local
403 res = fixedMul(a, b); in fixedMulDiv()
404 return fixedDiv(res, c); in fixedMulDiv()
436 HexFmt* res = (HexFmt*)smalloc(sizeof(HexFmt)); in HexFmtNew() local
437 res->bufpos = res->total = 0; in HexFmtNew()
438 res->o = outf; in HexFmtNew()
439 return res; in HexFmtNew()
829 int res; in GetTTGlyphOutline() local
850 res=GetSimpleTTOutline(ttf, glyphID, pointArray, metrics); in GetTTGlyphOutline()
856res = GetCompoundTTOutline(ttf, glyphID, pointArray, metrics, glyphlist ? *glyphlist : aPrivList ); in GetTTGlyphOutline()
864 fprintf(out, "Glyph: %d\nPoints: %d\n", glyphID, res); in GetTTGlyphOutline()
865 for (i=0; i<res; i++) { in GetTTGlyphOutline()
874 return res; in GetTTGlyphOutline()
1015 char *res; in nameExtract() local
1030 res = (char*)malloc(1 + len/2); in nameExtract()
1031 assert(res != 0); in nameExtract()
1032 for (i = 0; i < len/2; i++) res[i] = *(ptr + i * 2 + 1); in nameExtract()
1033 res[len/2] = 0; in nameExtract()
1041 res = (char*)malloc(1 + len); in nameExtract()
1042 assert(res != 0); in nameExtract()
1043 memcpy(res, ptr, len); in nameExtract()
1044 res[len] = 0; in nameExtract()
1047 return res; in nameExtract()
1305 sal_uInt16 res; in GEbinsearch() local
1313 res = Int16FromMOTA(*(ar+mid)); in GEbinsearch()
1314 if(res >= toSearch) { in GEbinsearch()
2159 int res; in CreateTTFromTTGlyphs() local
2280 if ((res = StreamToFile(ttcr, fname)) != SF_OK) { in CreateTTFromTTGlyphs()
2282 fprintf(stderr, "StreamToFile: error code: %d.\n", res); in CreateTTFromTTGlyphs()
2289 return res; in CreateTTFromTTGlyphs()
2297 GlyphOffsets* res = (GlyphOffsets*)smalloc(sizeof(GlyphOffsets)); in GlyphOffsetsNew() local
2316 res->nGlyphs = locaLen / ((indexToLocFormat == 1) ? 4 : 2); in GlyphOffsetsNew()
2317 assert(res->nGlyphs != 0); in GlyphOffsetsNew()
2318 res->offs = (sal_uInt32*)scalloc(res->nGlyphs, sizeof(sal_uInt32)); in GlyphOffsetsNew()
2320 for (i = 0; i < res->nGlyphs; i++) { in GlyphOffsetsNew()
2322 res->offs[i] = GetUInt32(loca, i * 4, 1); in GlyphOffsetsNew()
2324 res->offs[i] = GetUInt16(loca, i * 2, 1) << 1; in GlyphOffsetsNew()
2327 return res; in GlyphOffsetsNew()
2391 int res; in CreateT42FromTTGlyphs() local
2450 if ((res = StreamToMemory(ttcr, &sfntP, &sfntLen)) != SF_OK) { in CreateT42FromTTGlyphs()
2453 return res; in CreateT42FromTTGlyphs()
2614 … TTSimpleGlyphMetrics* res = (TTSimpleGlyphMetrics*)calloc(nGlyphs, sizeof(TTSimpleGlyphMetrics)); in GetTTSimpleGlyphMetrics() local
2615 assert(res != 0); in GetTTSimpleGlyphMetrics()
2634 res[i].adv = 0; /* better than a crash for buggy fonts */ in GetTTSimpleGlyphMetrics()
2636 res[i].adv = static_cast<sal_uInt16>( in GetTTSimpleGlyphMetrics()
2640 res[i].sb = 0; /* better than a crash for buggy fonts */ in GetTTSimpleGlyphMetrics()
2642 res[i].sb = static_cast<sal_Int16>( in GetTTSimpleGlyphMetrics()
2646 return res; in GetTTSimpleGlyphMetrics()
2652 TTSimpleGlyphMetrics *res = 0; in GetTTSimpleCharMetrics() local
2660 res = GetTTSimpleGlyphMetrics(ttf, str, n, mode); in GetTTSimpleCharMetrics()
2665 return res; in GetTTSimpleCharMetrics()