Imath icon indicating copy to clipboard operation
Imath copied to clipboard

assert half assumptions

Open cary-ilm opened this issue 4 years ago • 0 comments

add static_assert to validate the assumptions of half:

/// * sizeof (float) == 4 /// * sizeof (unsigned int) == sizeof (float) /// * alignof (unsigned int) == alignof (float) /// * sizeof (unsigned short) == 2

And replace the int type with uintN_t

cary-ilm avatar Mar 13 '21 02:03 cary-ilm