Home
last modified time | relevance | path

Searched refs:G_MAXSIZE (Results 1 – 25 of 136) sorted by relevance

123456

/dports/devel/glib20/glib-2.70.4/glib/tests/
H A Doverflow.c140 { TRUE, G_MAXSIZE, G_MAXSIZE, 0 }, in test_checked_gsize_add()
141 { TRUE, G_MAXSIZE, 0, G_MAXSIZE }, in test_checked_gsize_add()
142 { TRUE, G_MAXSIZE - 1, G_MAXSSIZE, G_MAXSSIZE }, in test_checked_gsize_add()
143 { FALSE, 0, G_MAXSIZE, 1 }, in test_checked_gsize_add()
144 { FALSE, 0, 1, G_MAXSIZE }, in test_checked_gsize_add()
145 { FALSE, 0, G_MAXSIZE, G_MAXSIZE } in test_checked_gsize_add()
167 { TRUE, 0, G_MAXSIZE, 0 }, in test_checked_gsize_mul()
168 { TRUE, G_MAXSIZE, G_MAXSIZE, 1 }, in test_checked_gsize_mul()
H A Dbytes.c466 g_assert_true (g_bytes_get_region (bytes, 32, 0, G_MAXSIZE / 32 + 1) == NULL); in test_get_region()
467 g_assert_true (g_bytes_get_region (bytes, G_MAXSIZE / 32 + 1, 0, 32) == NULL); in test_get_region()
470 g_assert_true (g_bytes_get_region (bytes, 1, G_MAXSIZE, -G_MAXSIZE) == NULL); in test_get_region()
472 g_assert_true (g_bytes_get_region (bytes, 1, G_MAXSIZE, 1) == NULL); in test_get_region()
/dports/devel/glib20/glib-2.70.4/glib/gnulib/
H A Dxsize.h58 ((N) <= G_MAXSIZE ? (size_t) (N) : G_MAXSIZE)
68 return (sum >= size1 ? sum : G_MAXSIZE); in xsum()
108 ((N) <= G_MAXSIZE / (ELSIZE) ? (size_t) (N) * (ELSIZE) : G_MAXSIZE)
112 ((SIZE) == G_MAXSIZE)
115 ((SIZE) != G_MAXSIZE)
H A Dglib-gnulib.patch23 * glib has G_MAXSIZE instead of SIZE_MAX, so use that
371 +/* Get G_MAXSIZE. */
381 + The convention is that G_MAXSIZE represents overflow.
382 + malloc (G_MAXSIZE) is not guaranteed to fail -- think of a malloc
391 + ((N) <= G_MAXSIZE ? (size_t) (N) : G_MAXSIZE)
400 + return (sum >= size1 ? sum : G_MAXSIZE);
409 + max (G_MAXSIZE, n) == G_MAXSIZE and max (n, G_MAXSIZE) == G_MAXSIZE. */
417 + when N is of a wider type and N > G_MAXSIZE. */
420 + ((N) <= G_MAXSIZE / (ELSIZE) ? (size_t) (N) * (ELSIZE) : G_MAXSIZE)
425 + ((SIZE) == G_MAXSIZE)
[all …]
/dports/security/libsecret/libsecret-0.20.4/egg/
H A Dtest-secmem.c66 return G_MAXSIZE; in find_non_zero()
77 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 512)); in test_alloc_free()
95 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 1088)); in test_realloc_across()
100 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p2, 16200)); in test_realloc_across()
113 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p2, 4)); in test_alloc_two()
119 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 16200)); in test_alloc_two()
141 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, len)); in test_realloc()
147 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (((gchar*)p2) + len, 512 - len)); in test_realloc()
/dports/security/libgnome-keyring/libgnome-keyring-3.12.0/egg/tests/
H A Dtest-secmem.c65 return G_MAXSIZE; in find_non_zero()
76 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 512)); in test_alloc_free()
94 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 1088)); in test_realloc_across()
99 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p2, 16200)); in test_realloc_across()
112 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p2, 4)); in test_alloc_two()
118 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 16200)); in test_alloc_two()
140 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, len)); in test_realloc()
146 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (((gchar*)p2) + len, 512 - len)); in test_realloc()
/dports/security/gcr/gcr-3.40.0/egg/
H A Dtest-secmem.c64 return G_MAXSIZE; in find_non_zero()
75 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 512)); in test_alloc_free()
93 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 1088)); in test_realloc_across()
98 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p2, 16200)); in test_realloc_across()
111 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p2, 4)); in test_alloc_two()
117 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 16200)); in test_alloc_two()
139 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, len)); in test_realloc()
145 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (((gchar*)p2) + len, 512 - len)); in test_realloc()
/dports/security/gnome-keyring/gnome-keyring-40.0/egg/
H A Dtest-secmem.c64 return G_MAXSIZE; in find_non_zero()
75 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 512)); in test_alloc_free()
93 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 1088)); in test_realloc_across()
98 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p2, 16200)); in test_realloc_across()
111 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p2, 4)); in test_alloc_two()
117 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, 16200)); in test_alloc_two()
139 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (p, len)); in test_realloc()
145 g_assert_cmpint (G_MAXSIZE, ==, find_non_zero (((gchar*)p2) + len, 512 - len)); in test_realloc()
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/lib/tests/
H A Dtest_atomic_gssize.c53 atomic_gssize_set(&a, G_MAXSIZE); in Test()
54 cr_assert_eq(atomic_gssize_get_unsigned(&a), G_MAXSIZE); in Test()
58 cr_assert_eq(atomic_gssize_get_unsigned(&a), G_MAXSIZE); in Test()
/dports/net-im/pidgin-fetion/fetion-0.98.5.2/src/
H A Dinternal.h143 #ifndef G_MAXSIZE
145 # define G_MAXSIZE ((gsize) 0xffffffffffffffff) macro
147 # define G_MAXSIZE ((gsize) 0xffffffff) macro
/dports/graphics/gegl/gegl-0.4.34/gegl/buffer/
H A Dgegl-scratch.h56 (G_LIKELY ((y) <= G_MAXSIZE / (x)) ? (x) * (y) : G_MAXSIZE)
/dports/devel/glib20/glib-2.70.4/glib/
H A Dgrcbox.c195 g_assert (block_size < (G_MAXSIZE - private_size)); in g_rc_box_alloc_full()
204 g_assert (real_size < (G_MAXSIZE - (alignment - offset))); in g_rc_box_alloc_full()
217 g_assert (private_size < (G_MAXSIZE - ALIGN_STRUCT (1))); in g_rc_box_alloc_full()
H A Dgmem.h238 (__s == 0 || __n <= G_MAXSIZE / __s)) \
252 (__s == 0 || __n <= G_MAXSIZE / __s)) \
/dports/sysutils/syslog-ng/syslog-ng-3.35.1/lib/
H A Dwindow-size-counter.c29 static const gsize SUSPEND_MASK = G_MAXSIZE ^ COUNTER_MASK;
30 static const gsize RESUME_MASK = G_MAXSIZE >> 1;
/dports/devel/pyl-gobject/pygobject-2.28.6/gobject/
H A Dconstants.py79 G_MAXSIZE = _gobject.G_MAXSIZE variable
/dports/graphics/gdk-pixbuf2/gdk-pixbuf-2.40.0/tests/
H A Dpixbuf-short-gif-write.c21 if(count_bytes < G_MAXSIZE) { in loader_write_from_channel()
51 loader_write_from_channel (loader, channel, G_MAXSIZE); in test_short_gif_write()
H A Dpixbuf-area-updated.c156 if(count_bytes < G_MAXSIZE) { in loader_write_from_channel()
201 loader_write_from_channel(loader, channel, G_MAXSIZE); in test_area_updated_ico()
318 loader_write_from_channel (loader, channel, G_MAXSIZE); in test_area_updated_anim()
/dports/sysutils/tracker/tracker-2.3.4/tests/libtracker-data/
H A Dtracker-ontology-test.c186 tracker_db_journal_set_rotating (FALSE, G_MAXSIZE, NULL); in test_ontology_init()
197 tracker_db_journal_set_rotating (FALSE, G_MAXSIZE, NULL); in test_ontology_init()
233 tracker_db_journal_set_rotating (FALSE, G_MAXSIZE, NULL); in test_query()
H A Dtracker-db-journal-test.c47 tracker_db_journal_set_rotating (FALSE, G_MAXSIZE, NULL); in test_init_and_shutdown()
56 tracker_db_journal_set_rotating (FALSE, G_MAXSIZE, NULL); in test_init_and_shutdown()
88 tracker_db_journal_set_rotating (FALSE, G_MAXSIZE, NULL); in test_write_functions()
H A Dtracker-backup-test.c126 tracker_db_journal_set_rotating (FALSE, G_MAXSIZE, NULL); in test_backup_and_restore_helper()
193 tracker_db_journal_set_rotating (FALSE, G_MAXSIZE, NULL); in test_backup_and_restore_helper()
/dports/x11-toolkits/gtk40/gtk-4.4.1/gtk/timsort/
H A Dgtktimsort.c77 self->max_merge_size = G_MAXSIZE; in gtk_tim_sort_init()
267 max_merge_size = G_MAXSIZE; in gtk_tim_sort_set_max_merge_size()
/dports/graphics/cogl/cogl-1.22.8/deps/glib/
H A Dgmem.h110 (__s == 0 || __n <= G_MAXSIZE / __s)) \
124 (__s == 0 || __n <= G_MAXSIZE / __s)) \
/dports/deskutils/gnome-photos/gnome-photos-40.0/src/
H A Dphotos-operation-png-guess-sizes.c344 G_MAXSIZE, in photos_operation_png_guess_sizes_class_init()
355 G_MAXSIZE, in photos_operation_png_guess_sizes_class_init()
H A Dphotos-operation-jpg-guess-sizes.c319 G_MAXSIZE, in photos_operation_jpg_guess_sizes_class_init()
330 G_MAXSIZE, in photos_operation_jpg_guess_sizes_class_init()
/dports/lang/spidermonkey78/firefox-78.9.0/widget/gtk/compat/glib/
H A Dgmem.h28 if (G_UNLIKELY(type_size > 0 && num > G_MAXSIZE / type_size)) { \

123456