Mercurial > vec
comparison gen/genlib.h @ 46:31cee67540b5
f32/f64: add floor, ceil, round, and trunc operations
we also need saturated add sub mul etc
author | Paper <paper@tflc.us> |
---|---|
date | Sat, 09 Aug 2025 15:55:59 -0400 |
parents | 7955bed1d169 |
children |
comparison
equal
deleted
inserted
replaced
45:7955bed1d169 | 46:31cee67540b5 |
---|---|
51 OP_MAX, | 51 OP_MAX, |
52 OP_RSHIFT, | 52 OP_RSHIFT, |
53 OP_LRSHIFT, | 53 OP_LRSHIFT, |
54 OP_LSHIFT, | 54 OP_LSHIFT, |
55 | 55 |
56 OP_FLOOR, | |
57 OP_CEIL, | |
58 OP_ROUND, | |
59 OP_TRUNC, | |
60 | |
56 /* use this for array sizes and the like */ | 61 /* use this for array sizes and the like */ |
57 OP_FINAL_, | 62 OP_FINAL_, |
58 }; | 63 }; |
59 | 64 |
60 enum { | 65 enum { |