Home
last modified time | relevance | path

Searched refs:new_max (Results 1 – 25 of 28) sorted by relevance

12

/external/freetype/src/base/
Dftgloadr.c211 FT_UInt new_max, old_max; in FT_GlyphLoader_CheckPoints() local
215 new_max = (FT_UInt)base->n_points + (FT_UInt)current->n_points + in FT_GlyphLoader_CheckPoints()
219 if ( new_max > old_max ) in FT_GlyphLoader_CheckPoints()
221 new_max = FT_PAD_CEIL( new_max, 8 ); in FT_GlyphLoader_CheckPoints()
223 if ( new_max > FT_OUTLINE_POINTS_MAX ) in FT_GlyphLoader_CheckPoints()
226 if ( FT_RENEW_ARRAY( base->points, old_max, new_max ) || in FT_GlyphLoader_CheckPoints()
227 FT_RENEW_ARRAY( base->tags, old_max, new_max ) ) in FT_GlyphLoader_CheckPoints()
233 old_max * 2, new_max * 2 ) ) in FT_GlyphLoader_CheckPoints()
236 FT_ARRAY_MOVE( loader->base.extra_points + new_max, in FT_GlyphLoader_CheckPoints()
240 loader->base.extra_points2 = loader->base.extra_points + new_max; in FT_GlyphLoader_CheckPoints()
[all …]
Dftstroke.c331 FT_UInt new_max = border->num_points + new_points; in ft_stroke_border_grow() local
335 if ( new_max > old_max ) in ft_stroke_border_grow()
341 while ( cur_max < new_max ) in ft_stroke_border_grow()
/external/freetype/src/autofit/
Dafhints.c57 FT_Int new_max = old_max; in af_axis_hints_new_segment() local
67 new_max += ( new_max >> 2 ) + 4; in af_axis_hints_new_segment()
68 if ( new_max < old_max || new_max > big_max ) in af_axis_hints_new_segment()
69 new_max = big_max; in af_axis_hints_new_segment()
73 if ( FT_NEW_ARRAY( axis->segments, new_max ) ) in af_axis_hints_new_segment()
80 if ( FT_RENEW_ARRAY( axis->segments, old_max, new_max ) ) in af_axis_hints_new_segment()
84 axis->max_segments = new_max; in af_axis_hints_new_segment()
122 FT_Int new_max = old_max; in af_axis_hints_new_edge() local
132 new_max += ( new_max >> 2 ) + 4; in af_axis_hints_new_edge()
133 if ( new_max < old_max || new_max > big_max ) in af_axis_hints_new_edge()
[all …]
/external/freetype/src/pshinter/
Dpshrec.c66 FT_UInt new_max = count; in ps_hint_table_ensure() local
70 if ( new_max > old_max ) in ps_hint_table_ensure()
73 new_max = FT_PAD_CEIL( new_max, 8 ); in ps_hint_table_ensure()
74 if ( !FT_RENEW_ARRAY( table->hints, old_max, new_max ) ) in ps_hint_table_ensure()
75 table->max_hints = new_max; in ps_hint_table_ensure()
141 FT_UInt new_max = ( count + 7 ) >> 3; in ps_mask_ensure() local
145 if ( new_max > old_max ) in ps_mask_ensure()
147 new_max = FT_PAD_CEIL( new_max, 8 ); in ps_mask_ensure()
148 if ( !FT_RENEW_ARRAY( mask->bytes, old_max, new_max ) ) in ps_mask_ensure()
149 mask->max_bits = new_max * 8; in ps_mask_ensure()
[all …]
/external/freetype/src/pfr/
Dpfrgload.c296 FT_UInt new_max = FT_PAD_CEIL( count, 8 ); in pfr_glyph_load_simple() local
301 new_max ) ) in pfr_glyph_load_simple()
304 glyph->max_xy_control = new_max; in pfr_glyph_load_simple()
601 FT_UInt new_max = ( org_count + count + 3 ) & (FT_UInt)-4; in pfr_glyph_load_compound() local
606 if ( new_max > 64 ) in pfr_glyph_load_compound()
614 if ( FT_RENEW_ARRAY( glyph->subs, glyph->max_subs, new_max ) ) in pfr_glyph_load_compound()
617 glyph->max_subs = new_max; in pfr_glyph_load_compound()
Dpfrload.c476 FT_UInt new_max = FT_PAD_CEIL( phy_font->num_strikes + count, 4 ); in pfr_extra_item_load_bitmap_info() local
481 new_max ) ) in pfr_extra_item_load_bitmap_info()
484 phy_font->max_strikes = new_max; in pfr_extra_item_load_bitmap_info()
/external/libevent/
Dsignal.c228 int new_max = evsignal + 1; in evsig_set_handler_() local
231 p = mm_realloc(sig->sh_old, new_max * sizeof(*sig->sh_old)); in evsig_set_handler_()
238 0, (new_max - sig->sh_old_max) * sizeof(*sig->sh_old)); in evsig_set_handler_()
240 sig->sh_old_max = new_max; in evsig_set_handler_()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_cs.c322 unsigned new_max = in amdgpu_lookup_or_add_real_buffer() local
328 new_buffers = MALLOC(new_max * sizeof(*new_buffers)); in amdgpu_lookup_or_add_real_buffer()
329 new_handles = MALLOC(new_max * sizeof(*new_handles)); in amdgpu_lookup_or_add_real_buffer()
330 new_flags = MALLOC(new_max * sizeof(*new_flags)); in amdgpu_lookup_or_add_real_buffer()
348 cs->max_real_buffers = new_max; in amdgpu_lookup_or_add_real_buffer()
393 unsigned new_max = in amdgpu_lookup_or_add_slab_buffer() local
399 new_max * sizeof(*new_buffers)); in amdgpu_lookup_or_add_slab_buffer()
405 cs->max_slab_buffers = new_max; in amdgpu_lookup_or_add_slab_buffer()
/external/freetype/src/cid/
Dcidload.c470 FT_UInt new_max = FT_PAD_CEIL( num_subrs + 1, 4 ); in cid_read_subrs() local
473 if ( new_max <= max_offsets ) in cid_read_subrs()
479 if ( FT_RENEW_ARRAY( offsets, max_offsets, new_max ) ) in cid_read_subrs()
482 max_offsets = new_max; in cid_read_subrs()
/external/pdfium/third_party/libpng16/
Dpngpread.c484 png_size_t new_max; in png_push_save_buffer() local
493 new_max = png_ptr->save_buffer_size + png_ptr->current_buffer_size + 256; in png_push_save_buffer()
496 (png_size_t)new_max); in png_push_save_buffer()
506 png_ptr->save_buffer_max = new_max; in png_push_save_buffer()
/external/libpng/
Dpngpread.c485 png_size_t new_max; in png_push_save_buffer() local
494 new_max = png_ptr->save_buffer_size + png_ptr->current_buffer_size + 256; in png_push_save_buffer()
497 (png_size_t)new_max); in png_push_save_buffer()
510 png_ptr->save_buffer_max = new_max; in png_push_save_buffer()
/external/skia/src/ports/
DSkFontConfigInterface_direct.cpp373 SkFixed new_min, SkFixed new_max) in map_range() argument
376 SkASSERT(new_min <= new_max); in map_range()
377 return new_min + SkMulDiv(value - old_min, new_max - new_min, old_max - old_min); in map_range()
DSkFontMgr_fontconfig.cpp290 SkFixed new_min, SkFixed new_max) in map_range() argument
293 SkASSERT(new_min <= new_max); in map_range()
294 return new_min + SkMulDiv(value - old_min, new_max - new_min, old_max - old_min); in map_range()
/external/skqp/src/ports/
DSkFontConfigInterface_direct.cpp373 SkFixed new_min, SkFixed new_max) in map_range() argument
376 SkASSERT(new_min <= new_max); in map_range()
377 return new_min + SkMulDiv(value - old_min, new_max - new_min, old_max - old_min); in map_range()
DSkFontMgr_fontconfig.cpp290 SkFixed new_min, SkFixed new_max) in map_range() argument
293 SkASSERT(new_min <= new_max); in map_range()
294 return new_min + SkMulDiv(value - old_min, new_max - new_min, old_max - old_min); in map_range()
/external/iputils/
Drdisc.c1446 int new_max = max_preference(); in record_router() local
1447 if (new_max != INELIGIBLE_PREF) { in record_router()
1450 if (tp->preference == new_max && in record_router()
1461 int new_max = max_preference(); in record_router() local
1464 if (tp->preference < new_max && tp->in_kernel) { in record_router()
/external/e2fsprogs/lib/ext2fs/
Dblkmap64_rb.c278 static void rb_truncate(__u64 new_max, struct rb_root *root) in rb_truncate() argument
287 if ((ext->start + ext->count - 1) <= new_max) in rb_truncate()
289 else if (ext->start > new_max) { in rb_truncate()
295 ext->count = new_max - ext->start + 1; in rb_truncate()
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_cs.c311 unsigned new_max = MAX2(csc->max_slab_buffers + 16, in radeon_lookup_or_add_slab_buffer() local
316 new_max * sizeof(*new_buffers)); in radeon_lookup_or_add_slab_buffer()
322 csc->max_slab_buffers = new_max; in radeon_lookup_or_add_slab_buffer()
/external/freetype/src/truetype/
Dttinterp.h463 FT_ULong new_max );
Dttinterp.c345 FT_ULong new_max ) in Update_Max() argument
351 if ( *size < new_max ) in Update_Max()
353 if ( FT_REALLOC( *pbuff, *size * multiplier, new_max * multiplier ) ) in Update_Max()
355 *size = new_max; in Update_Max()
/external/v8/src/compiler/
Doperation-typer.cc98 double new_max = current_max; in WeakenRange() local
102 new_max = V8_INFINITY; in WeakenRange()
105 new_max = max; in WeakenRange()
111 return Type::Range(new_min, new_max, zone()); in WeakenRange()
Dtyper.cc1218 double new_max = current_max; in Weaken() local
1222 new_max = V8_INFINITY; in Weaken()
1225 new_max = max; in Weaken()
1232 Type::Range(new_min, new_max, typer_->zone()), in Weaken()
/external/syslinux/com32/lib/libpng/
Dpngpread.c694 png_size_t new_max; in png_push_save_buffer() local
703 new_max = png_ptr->save_buffer_size + png_ptr->current_buffer_size + 256; in png_push_save_buffer()
706 (png_uint_32)new_max); in png_push_save_buffer()
714 png_ptr->save_buffer_max = new_max; in png_push_save_buffer()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_tgsi_setup.c349 unsigned new_max = MAX2(ctx->flow_depth << 1, RADEON_LLVM_INITIAL_CF_DEPTH); in push_flow() local
352 new_max * sizeof(*ctx->flow)); in push_flow()
353 ctx->flow_depth_max = new_max; in push_flow()
/external/blktrace/
Dblkparse.c507 int new_max = (cpu + CPUS_PER_LONG) & ~(CPUS_PER_LONG - 1); in cpu_mark_online() local
508 unsigned long *map = malloc(new_max / sizeof(long)); in cpu_mark_online()
510 memset(map, 0, new_max / sizeof(long)); in cpu_mark_online()
518 pdi->cpu_map_max = new_max; in cpu_mark_online()

12