Home
last modified time | relevance | path

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

12

/third_party/flutter/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/freetype/src/base/
Dftgloadr.c215 FT_UInt new_max, old_max; in FT_GlyphLoader_CheckPoints() local
223 new_max = (FT_UInt)base->n_points + (FT_UInt)current->n_points + in FT_GlyphLoader_CheckPoints()
227 if ( new_max > old_max ) in FT_GlyphLoader_CheckPoints()
229 new_max = FT_PAD_CEIL( new_max, 8 ); in FT_GlyphLoader_CheckPoints()
231 if ( new_max > FT_OUTLINE_POINTS_MAX ) in FT_GlyphLoader_CheckPoints()
234 if ( FT_RENEW_ARRAY( base->points, old_max, new_max ) || in FT_GlyphLoader_CheckPoints()
235 FT_RENEW_ARRAY( base->tags, old_max, new_max ) ) in FT_GlyphLoader_CheckPoints()
241 old_max * 2, new_max * 2 ) ) in FT_GlyphLoader_CheckPoints()
244 FT_ARRAY_MOVE( loader->base.extra_points + new_max, in FT_GlyphLoader_CheckPoints()
248 loader->base.extra_points2 = loader->base.extra_points + new_max; in FT_GlyphLoader_CheckPoints()
[all …]
/third_party/freetype/src/base/
Dftgloadr.c215 FT_UInt new_max, old_max; in FT_GlyphLoader_CheckPoints() local
223 new_max = (FT_UInt)base->n_points + (FT_UInt)current->n_points + in FT_GlyphLoader_CheckPoints()
227 if ( new_max > old_max ) in FT_GlyphLoader_CheckPoints()
229 new_max = FT_PAD_CEIL( new_max, 8 ); in FT_GlyphLoader_CheckPoints()
231 if ( new_max > FT_OUTLINE_POINTS_MAX ) in FT_GlyphLoader_CheckPoints()
234 if ( FT_RENEW_ARRAY( base->points, old_max, new_max ) || in FT_GlyphLoader_CheckPoints()
235 FT_RENEW_ARRAY( base->tags, old_max, new_max ) ) in FT_GlyphLoader_CheckPoints()
241 old_max * 2, new_max * 2 ) ) in FT_GlyphLoader_CheckPoints()
244 FT_ARRAY_MOVE( loader->base.extra_points + new_max, in FT_GlyphLoader_CheckPoints()
248 loader->base.extra_points2 = loader->base.extra_points + new_max; in FT_GlyphLoader_CheckPoints()
[all …]
/third_party/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 …]
/third_party/flutter/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/freetype/src/autofit/
Dafhints.c155 FT_Int new_max = old_max; in af_axis_hints_new_segment() local
165 new_max += ( new_max >> 2 ) + 4; in af_axis_hints_new_segment()
166 if ( new_max < old_max || new_max > big_max ) in af_axis_hints_new_segment()
167 new_max = big_max; in af_axis_hints_new_segment()
171 if ( FT_NEW_ARRAY( axis->segments, new_max ) ) in af_axis_hints_new_segment()
178 if ( FT_RENEW_ARRAY( axis->segments, old_max, new_max ) ) in af_axis_hints_new_segment()
182 axis->max_segments = new_max; in af_axis_hints_new_segment()
220 FT_Int new_max = old_max; in af_axis_hints_new_edge() local
230 new_max += ( new_max >> 2 ) + 4; in af_axis_hints_new_edge()
231 if ( new_max < old_max || new_max > big_max ) in af_axis_hints_new_edge()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_async_debug.c49 size_t new_max = MAX2(16, adbg->max * 2); in u_async_debug_message() local
51 if (new_max < adbg->max || in u_async_debug_message()
52 new_max > SIZE_MAX / sizeof(*adbg->messages)) { in u_async_debug_message()
58 realloc(adbg->messages, new_max * sizeof(*adbg->messages)); in u_async_debug_message()
64 adbg->max = new_max; in u_async_debug_message()
/third_party/freetype/src/pshinter/
Dpshrec.c65 FT_UInt new_max = count; in ps_hint_table_ensure() local
69 if ( new_max > old_max ) in ps_hint_table_ensure()
72 new_max = FT_PAD_CEIL( new_max, 8 ); in ps_hint_table_ensure()
73 if ( !FT_RENEW_ARRAY( table->hints, old_max, new_max ) ) in ps_hint_table_ensure()
74 table->max_hints = new_max; in ps_hint_table_ensure()
140 FT_UInt new_max = ( count + 7 ) >> 3; in ps_mask_ensure() local
144 if ( new_max > old_max ) in ps_mask_ensure()
146 new_max = FT_PAD_CEIL( new_max, 8 ); in ps_mask_ensure()
147 if ( !FT_RENEW_ARRAY( mask->bytes, old_max, new_max ) ) in ps_mask_ensure()
148 mask->max_bits = new_max * 8; in ps_mask_ensure()
[all …]
/third_party/skia/third_party/externals/freetype/src/pshinter/
Dpshrec.c65 FT_UInt new_max = count; in ps_hint_table_ensure() local
69 if ( new_max > old_max ) in ps_hint_table_ensure()
72 new_max = FT_PAD_CEIL( new_max, 8 ); in ps_hint_table_ensure()
73 if ( !FT_RENEW_ARRAY( table->hints, old_max, new_max ) ) in ps_hint_table_ensure()
74 table->max_hints = new_max; in ps_hint_table_ensure()
140 FT_UInt new_max = ( count + 7 ) >> 3; in ps_mask_ensure() local
144 if ( new_max > old_max ) in ps_mask_ensure()
146 new_max = FT_PAD_CEIL( new_max, 8 ); in ps_mask_ensure()
147 if ( !FT_RENEW_ARRAY( mask->bytes, old_max, new_max ) ) in ps_mask_ensure()
148 mask->max_bits = new_max * 8; in ps_mask_ensure()
[all …]
/third_party/flutter/skia/third_party/externals/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 …]
/third_party/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()
/third_party/flutter/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/gettext/gettext-tools/src/
Dmsgl-fsearch.c387 size_t new_max = 2 * accu->nitems2_max + 1; in mult_index_list_accumulate() local
389 if (new_max < need) in mult_index_list_accumulate()
390 new_max = need; in mult_index_list_accumulate()
393 accu->item2 = XNMALLOC (new_max, struct mult_index); in mult_index_list_accumulate()
394 accu->nitems2_max = new_max; in mult_index_list_accumulate()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_sampler_view.c124 unsigned new_max = 2 * views->max; in st_texture_set_sampler_view() local
125 unsigned new_size = sizeof(*views) + new_max * sizeof(views->views[0]); in st_texture_set_sampler_view()
127 if (new_max < views->max || in st_texture_set_sampler_view()
128 new_max > (UINT_MAX - sizeof(*views)) / sizeof(views->views[0])) { in st_texture_set_sampler_view()
140 new_views->max = new_max; in st_texture_set_sampler_view()
149 (new_max - views->count) * sizeof(views->views[0])); in st_texture_set_sampler_view()
/third_party/flutter/skia/third_party/externals/freetype/src/cid/
Dcidload.c546 FT_UInt new_max = FT_PAD_CEIL( num_subrs + 1, 4 ); in cid_read_subrs() local
549 if ( new_max <= max_offsets ) in cid_read_subrs()
555 if ( FT_RENEW_ARRAY( offsets, max_offsets, new_max ) ) in cid_read_subrs()
558 max_offsets = new_max; in cid_read_subrs()
/third_party/freetype/src/cid/
Dcidload.c546 FT_UInt new_max = FT_PAD_CEIL( num_subrs + 1, 4 ); in cid_read_subrs() local
549 if ( new_max <= max_offsets ) in cid_read_subrs()
555 if ( FT_RENEW_ARRAY( offsets, max_offsets, new_max ) ) in cid_read_subrs()
558 max_offsets = new_max; in cid_read_subrs()
/third_party/skia/third_party/externals/freetype/src/cid/
Dcidload.c546 FT_UInt new_max = FT_PAD_CEIL( num_subrs + 1, 4 ); in cid_read_subrs() local
549 if ( new_max <= max_offsets ) in cid_read_subrs()
555 if ( FT_QRENEW_ARRAY( offsets, max_offsets, new_max ) ) in cid_read_subrs()
558 max_offsets = new_max; in cid_read_subrs()
/third_party/libpng/
Dpngpread.c485 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 (size_t)new_max); in png_push_save_buffer()
510 png_ptr->save_buffer_max = new_max; in png_push_save_buffer()
/third_party/flutter/skia/third_party/externals/libpng/
Dpngpread.c485 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 (size_t)new_max); in png_push_save_buffer()
510 png_ptr->save_buffer_max = new_max; in png_push_save_buffer()
/third_party/skia/third_party/externals/libpng/
Dpngpread.c485 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 (size_t)new_max); in png_push_save_buffer()
510 png_ptr->save_buffer_max = new_max; in png_push_save_buffer()
/third_party/flutter/skia/src/ports/
DSkFontConfigInterface_direct.cpp376 SkScalar new_min, SkScalar new_max) in map_range() argument
379 SkASSERT(new_min <= new_max); in map_range()
380 return new_min + ((value - old_min) * (new_max - new_min) / (old_max - old_min)); in map_range()
/third_party/skia/src/ports/
DSkFontConfigInterface_direct.cpp361 SkScalar new_min, SkScalar new_max) in map_range() argument
364 SkASSERT(new_min <= new_max); in map_range()
365 return new_min + ((value - old_min) * (new_max - new_min) / (old_max - old_min)); in map_range()
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_cs.c482 unsigned new_max = in amdgpu_do_add_real_buffer() local
486 new_buffers = MALLOC(new_max * sizeof(*new_buffers)); in amdgpu_do_add_real_buffer()
498 cs->max_real_buffers = new_max; in amdgpu_do_add_real_buffer()
556 unsigned new_max = in amdgpu_lookup_or_add_slab_buffer() local
562 new_max * sizeof(*new_buffers)); in amdgpu_lookup_or_add_slab_buffer()
568 cs->max_slab_buffers = new_max; in amdgpu_lookup_or_add_slab_buffer()
601 unsigned new_max = in amdgpu_lookup_or_add_sparse_buffer() local
607 new_max * sizeof(*new_buffers)); in amdgpu_lookup_or_add_sparse_buffer()
613 cs->max_sparse_buffers = new_max; in amdgpu_lookup_or_add_sparse_buffer()

12