Home
last modified time | relevance | path

Searched refs:G_STATIC_ASSERT (Results 1 – 25 of 39) sorted by relevance

12

/third_party/glib/glib/
Dglib-init.c43 G_STATIC_ASSERT (CHAR_BIT == 8);
46 G_STATIC_ASSERT (sizeof (gpointer) == sizeof (GFunc));
47 G_STATIC_ASSERT (G_ALIGNOF (gpointer) == G_ALIGNOF (GFunc));
49 G_STATIC_ASSERT (sizeof (GFunc) == sizeof (GCompareDataFunc));
50 G_STATIC_ASSERT (G_ALIGNOF (GFunc) == G_ALIGNOF (GCompareDataFunc));
68 G_STATIC_ASSERT (sizeof (TestChar) == sizeof (int));
69 G_STATIC_ASSERT (sizeof (TestShort) == sizeof (int));
70 G_STATIC_ASSERT (sizeof (TestInt) == sizeof (int));
71 G_STATIC_ASSERT (G_ALIGNOF (TestChar) == G_ALIGNOF (int));
72 G_STATIC_ASSERT (G_ALIGNOF (TestShort) == G_ALIGNOF (int));
[all …]
Dgatomic.h103 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
111 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
120 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
128 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
137 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
145 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gpointer)); \
155 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
161 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
168 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
174 G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint)); \
[all …]
Dgrefcount.h59 G_STATIC_ASSERT (sizeof *(rc) == sizeof (grefcount)); \
66 G_STATIC_ASSERT (sizeof *(rc) == sizeof (grefcount)); \
75 G_STATIC_ASSERT (sizeof *(rc) == sizeof (grefcount)); \
86 G_STATIC_ASSERT (sizeof *(rc) == sizeof (grefcount)); \
93 G_STATIC_ASSERT (sizeof *(rc) == sizeof (gatomicrefcount)); \
100 G_STATIC_ASSERT (sizeof *(rc) == sizeof (gatomicrefcount)); \
107 G_STATIC_ASSERT (sizeof *(rc) == sizeof (gatomicrefcount)); \
114 G_STATIC_ASSERT (sizeof *(rc) == sizeof (gatomicrefcount)); \
Dgbitlock.h56 G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
62 G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
68 G_STATIC_ASSERT (sizeof *(address) == sizeof (gpointer)); \
Dglib-unix.c36 G_STATIC_ASSERT (sizeof (ssize_t) == GLIB_SIZEOF_SSIZE_T);
37 G_STATIC_ASSERT (G_ALIGNOF (gssize) == G_ALIGNOF (ssize_t));
39 G_STATIC_ASSERT (sizeof (GPid) == sizeof (pid_t));
40 G_STATIC_ASSERT (G_ALIGNOF (GPid) == G_ALIGNOF (pid_t));
Dgrcboxprivate.h54 G_STATIC_ASSERT (sizeof (GRcBox) == sizeof (GArcBox));
Dgmacros.h758 #define G_STATIC_ASSERT(expr) _Static_assert (expr, "Expression evaluates to false") macro
762 #define G_STATIC_ASSERT(expr) static_assert (expr, "Expression evaluates to false") macro
765 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER_… macro
767 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __LINE__)[… macro
Dgmem.h122 G_STATIC_ASSERT (sizeof *(pp) == sizeof (gpointer)); \
134 G_STATIC_ASSERT (sizeof *(pp) == sizeof (gpointer)); \
Dgtranslit.c71 G_STATIC_ASSERT(MAX_KEY_SIZE == 2); in compare_mapping_entry()
359 G_STATIC_ASSERT(MAX_KEY_SIZE == 2); in g_str_to_ascii()
Dgthread.h258 G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer)); \
265 G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer)); \
Dgbitlock.c374 G_STATIC_ASSERT (G_BYTE_ORDER == G_LITTLE_ENDIAN || in g_futex_int_address()
Dgvariant.c2919 G_STATIC_ASSERT (sizeof (struct stack_iter) <= sizeof (GVariantIter));
3178 G_STATIC_ASSERT (sizeof (struct stack_builder) <= sizeof (GVariantBuilder));
3199 G_STATIC_ASSERT (sizeof (GVariantBuilder) == sizeof (gsize[16]));
3836 G_STATIC_ASSERT (sizeof (struct stack_dict) <= sizeof (GVariantDict));
3856 G_STATIC_ASSERT (sizeof (GVariantDict) == sizeof (gsize[16]));
5031 G_STATIC_ASSERT (sizeof (gboolean) == sizeof (guint32));
5032 G_STATIC_ASSERT (sizeof (gdouble) == sizeof (guint64));
Dgmain.h718 G_STATIC_ASSERT (sizeof *(tag_ptr) == sizeof (guint)); \
Dgtypes.h463 G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64)); in _GLIB_CHECKED_ADD_U64()
/third_party/gstreamer/gstplugins_bad/sys/v4l2codecs/
Dgstv4l2codecvp9dec.c122 G_STATIC_ASSERT (sizeof (self->v4l2_vp9_frame.lf.ref_deltas) == in gst_v4l2_codec_vp9_dec_fill_lf_params()
124 G_STATIC_ASSERT (sizeof (self->v4l2_vp9_frame.lf.mode_deltas) == in gst_v4l2_codec_vp9_dec_fill_lf_params()
141 G_STATIC_ASSERT (sizeof (v4l2_segmentation->tree_probs) == in gst_v4l2_codec_vp9_dec_fill_seg_params()
143 G_STATIC_ASSERT (sizeof (v4l2_segmentation->pred_probs) == in gst_v4l2_codec_vp9_dec_fill_seg_params()
145 G_STATIC_ASSERT (sizeof (v4l2_segmentation->feature_data) == in gst_v4l2_codec_vp9_dec_fill_seg_params()
176 G_STATIC_ASSERT (sizeof (probs->tx8) == in gst_v4l2_codec_vp9_dec_fill_prob_updates()
178 G_STATIC_ASSERT (sizeof (probs->tx16) == in gst_v4l2_codec_vp9_dec_fill_prob_updates()
180 G_STATIC_ASSERT (sizeof (probs->tx32) == in gst_v4l2_codec_vp9_dec_fill_prob_updates()
182 G_STATIC_ASSERT (sizeof (probs->coef) == in gst_v4l2_codec_vp9_dec_fill_prob_updates()
184 G_STATIC_ASSERT (sizeof (probs->skip) == in gst_v4l2_codec_vp9_dec_fill_prob_updates()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/
Dgstnvvp9dec.c371 G_STATIC_ASSERT (G_N_ELEMENTS (vp9_params->mbRefLfDelta) == in gst_nv_vp9_dec_decode_picture()
373 G_STATIC_ASSERT (G_N_ELEMENTS (vp9_params->mbModeLfDelta) == in gst_nv_vp9_dec_decode_picture()
375 G_STATIC_ASSERT (G_N_ELEMENTS (vp9_params->mb_segment_tree_probs) == in gst_nv_vp9_dec_decode_picture()
377 G_STATIC_ASSERT (sizeof (vp9_params->mb_segment_tree_probs) == in gst_nv_vp9_dec_decode_picture()
379 G_STATIC_ASSERT (G_N_ELEMENTS (vp9_params->segment_pred_probs) == in gst_nv_vp9_dec_decode_picture()
381 G_STATIC_ASSERT (sizeof (vp9_params->segment_pred_probs) == in gst_nv_vp9_dec_decode_picture()
383 G_STATIC_ASSERT (G_N_ELEMENTS (vp9_params->refFrameSignBias) == in gst_nv_vp9_dec_decode_picture()
385 G_STATIC_ASSERT (sizeof (vp9_params->refFrameSignBias) == in gst_nv_vp9_dec_decode_picture()
387 G_STATIC_ASSERT (G_N_ELEMENTS (vp9_params->activeRefIdx) == in gst_nv_vp9_dec_decode_picture()
389 G_STATIC_ASSERT (G_N_ELEMENTS (vp9_params->segmentFeatureEnable) == in gst_nv_vp9_dec_decode_picture()
[all …]
Dgstnvh265dec.c662 G_STATIC_ASSERT (sizeof (scaling_list->scaling_lists_4x4) == in gst_nv_h265_dec_start_picture()
664 G_STATIC_ASSERT (sizeof (scaling_list->scaling_lists_8x8) == in gst_nv_h265_dec_start_picture()
666 G_STATIC_ASSERT (sizeof (scaling_list->scaling_lists_16x16) == in gst_nv_h265_dec_start_picture()
668 G_STATIC_ASSERT (sizeof (scaling_list->scaling_lists_32x32) == in gst_nv_h265_dec_start_picture()
/third_party/glib/glib/tests/
Dmacros.c27 G_STATIC_ASSERT (4 == 4); in test_assert_static()
56 G_STATIC_ASSERT (G_SIZEOF_MEMBER (struct { char a; int b; }, a) == sizeof (char)); in test_struct_sizeof_member()
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11vp9dec.cpp568 G_STATIC_ASSERT (G_N_ELEMENTS (params->ref_frame_sign_bias) == in gst_d3d11_vp9_dec_copy_frame_refs()
570 G_STATIC_ASSERT (sizeof (params->ref_frame_sign_bias) == in gst_d3d11_vp9_dec_copy_frame_refs()
597 G_STATIC_ASSERT (G_N_ELEMENTS (params->ref_deltas) == in gst_d3d11_vp9_dec_copy_loop_filter_params()
599 G_STATIC_ASSERT (sizeof (params->ref_deltas) == in gst_d3d11_vp9_dec_copy_loop_filter_params()
604 G_STATIC_ASSERT (G_N_ELEMENTS (params->mode_deltas) == in gst_d3d11_vp9_dec_copy_loop_filter_params()
606 G_STATIC_ASSERT (sizeof (params->mode_deltas) == in gst_d3d11_vp9_dec_copy_loop_filter_params()
638 G_STATIC_ASSERT (G_N_ELEMENTS (params->stVP9Segments.tree_probs) == in gst_d3d11_vp9_dec_copy_segmentation_params()
640 G_STATIC_ASSERT (sizeof (params->stVP9Segments.tree_probs) == in gst_d3d11_vp9_dec_copy_segmentation_params()
645 G_STATIC_ASSERT (G_N_ELEMENTS (params->stVP9Segments.pred_probs) == in gst_d3d11_vp9_dec_copy_segmentation_params()
647 G_STATIC_ASSERT (sizeof (params->stVP9Segments.pred_probs) == in gst_d3d11_vp9_dec_copy_segmentation_params()
Dgstd3d11h265dec.cpp781 G_STATIC_ASSERT (sizeof (iq_matrix->ucScalingLists0) == in gst_d3d11_h265_dec_start_picture()
783 G_STATIC_ASSERT (sizeof (iq_matrix->ucScalingLists1) == in gst_d3d11_h265_dec_start_picture()
785 G_STATIC_ASSERT (sizeof (iq_matrix->ucScalingLists2) == in gst_d3d11_h265_dec_start_picture()
787 G_STATIC_ASSERT (sizeof (iq_matrix->ucScalingLists3) == in gst_d3d11_h265_dec_start_picture()
Dgstd3d11h264dec.cpp758 G_STATIC_ASSERT (sizeof (iq_matrix->bScalingLists4x4) == in gst_d3d11_h264_dec_start_picture()
763 G_STATIC_ASSERT (sizeof (iq_matrix->bScalingLists8x8[0]) == in gst_d3d11_h264_dec_start_picture()
/third_party/glib/gio/
Dgioprivate.h58 G_STATIC_ASSERT (G_IOV_MAX <= G_MAXINT);
/third_party/gstreamer/gstplugins_bad/gst/rtmp2/rtmp/
Drtmphandshake.c81 G_STATIC_ASSERT (SIZE_RANDOM % 4 == 0); in handshake_random_data()
198 G_STATIC_ASSERT (SIZE_P1 == SIZE_P2); in create_c2()
Drtmpclient.c279 G_STATIC_ASSERT (GST_RTMP_AUDIOCODECS == 4071); /* libavformat's magic number */
299 G_STATIC_ASSERT (GST_RTMP_VIDEOCODECS == 252); /* libavformat's magic number */
311 G_STATIC_ASSERT (GST_RTMP_VIDEOFUNCTION == 1); /* libavformat's magic number */
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Dmpegtsdemux.c119 G_STATIC_ASSERT (sizeof aac_ts % PACKETSIZE == 0);
153 G_STATIC_ASSERT (sizeof padding_ts == PACKETSIZE);

12