summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cspan.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-09-06 09:49:47 +0200
committerTyge Løvset <[email protected]>2023-09-06 10:38:06 +0200
commit0da4c619e8e8134d1776097a9e102ed48d54b9a5 (patch)
treea12c71567935e7cbf784454b009f737b3673c0fa /include/stc/cspan.h
parenta0a75ac1c324ac52931c9df37ce13cb4213ab711 (diff)
downloadSTC-modified-0da4c619e8e8134d1776097a9e102ed48d54b9a5.tar.gz
STC-modified-0da4c619e8e8134d1776097a9e102ed48d54b9a5.zip
Renamed c_LTu(a, b) => c_less_unsigned(a, b)
Renamed c_u2i(i) => c_u2i_size(u) Renamed c_i2u(i) => c_i2u_size(i)
Diffstat (limited to 'include/stc/cspan.h')
-rw-r--r--include/stc/cspan.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/cspan.h b/include/stc/cspan.h
index e058c0e8..1bc57e2b 100644
--- a/include/stc/cspan.h
+++ b/include/stc/cspan.h
@@ -201,7 +201,7 @@ STC_INLINE void _cspan_transpose(int32_t shape[], intptr_t stride[], int rank) {
STC_INLINE intptr_t _cspan_index(int rank, const int32_t shape[], const intptr_t stride[], const int32_t a[]) {
intptr_t off = 0;
while (rank--) {
- c_assert(c_LTu(a[rank], shape[rank]));
+ c_assert(c_less_unsigned(a[rank], shape[rank]));
off += stride[rank]*a[rank];
}
return off;
@@ -265,13 +265,13 @@ STC_DEF intptr_t _cspan_slice(int32_t oshape[], intptr_t ostride[], int* orank,
for (; i < rank; ++i) {
off += stride[i]*a[i][0];
switch (a[i][1]) {
- case 0: c_assert(c_LTu(a[i][0], shape[i])); continue;
+ case 0: c_assert(c_less_unsigned(a[i][0], shape[i])); continue;
case -1: end = shape[i]; break;
default: end = a[i][1];
}
oshape[oi] = end - a[i][0];
ostride[oi] = stride[i];
- c_assert((oshape[oi] > 0) & !c_LTu(shape[i], end));
+ c_assert((oshape[oi] > 0) & !c_less_unsigned(shape[i], end));
++oi;
}
*orank = oi;