Useful for representing -0 in transcendental sequences matching the
blob.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9420>
static inline bi_index
bi_abs(bi_index idx)
{
- assert(idx.type != BI_INDEX_CONSTANT);
idx.abs = true;
return idx;
}
static inline bi_index
bi_neg(bi_index idx)
{
- assert(idx.type != BI_INDEX_CONSTANT);
idx.neg ^= true;
return idx;
}