AcademySoftwareFoundation / AcademySoftwareFoundation/Imath
assert half assumptions
Open
- Dominant language
- C++
- Stars
- 488
- Forks
- 161
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 3
Description
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
Contributor guide
Research direction
No file or test is named. Locate the implementation and uses of half, inspect how its assumptions and integer types are currently defined, and verify the listed static assertions and uintN_t replacements against the existing test suite or build checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100