@@ -428,23 +428,23 @@ struct qvi_hwloc_bitmap_s {
428
428
qvi_hwloc_bitmap_s (void )
429
429
{
430
430
const int rc = qvi_hwloc_bitmap_calloc (&m_data);
431
- if (rc != QV_SUCCESS) throw qvi_runtime_error ();
431
+ if (qvi_unlikely ( rc != QV_SUCCESS) ) throw qvi_runtime_error ();
432
432
}
433
433
/* * Construct via hwloc_const_bitmap_t. */
434
434
explicit qvi_hwloc_bitmap_s (hwloc_const_bitmap_t bitmap)
435
435
{
436
436
int rc = qvi_hwloc_bitmap_calloc (&m_data);
437
- if (rc != QV_SUCCESS) throw qvi_runtime_error ();
437
+ if (qvi_unlikely ( rc != QV_SUCCESS) ) throw qvi_runtime_error ();
438
438
rc = set (bitmap);
439
- if (rc != QV_SUCCESS) throw qvi_runtime_error ();
439
+ if (qvi_unlikely ( rc != QV_SUCCESS) ) throw qvi_runtime_error ();
440
440
}
441
441
/* * Copy constructor. */
442
442
qvi_hwloc_bitmap_s (const qvi_hwloc_bitmap_s &src)
443
443
{
444
444
int rc = qvi_hwloc_bitmap_calloc (&m_data);
445
- if (rc != QV_SUCCESS) throw qvi_runtime_error ();
445
+ if (qvi_unlikely ( rc != QV_SUCCESS) ) throw qvi_runtime_error ();
446
446
rc = set (src.m_data );
447
- if (rc != QV_SUCCESS) throw qvi_runtime_error ();
447
+ if (qvi_unlikely ( rc != QV_SUCCESS) ) throw qvi_runtime_error ();
448
448
}
449
449
/* * Destructor. */
450
450
~qvi_hwloc_bitmap_s (void )
@@ -463,7 +463,7 @@ struct qvi_hwloc_bitmap_s {
463
463
operator =(const qvi_hwloc_bitmap_s &src)
464
464
{
465
465
const int rc = qvi_hwloc_bitmap_copy (src.m_data , m_data);
466
- if (rc != QV_SUCCESS) throw qvi_runtime_error ();
466
+ if (qvi_unlikely ( rc != QV_SUCCESS) ) throw qvi_runtime_error ();
467
467
}
468
468
/* * Sets the object's internal bitmap to match src's. */
469
469
int
0 commit comments