Mojo doesn't have saturating add/sub ops (yet). But you can add them yourself with inline llvm intrinsics. Delivering on the promise of "moving the magic out of compilers and into libraries".
Notably, this implementation will work for both scalar simd.
Mojo doesn't have saturating add/sub ops (yet). But you can add them yourself with inline llvm intrinsics. Delivering on the promise of "moving the magic out of compilers and into libraries".
Notably, this implementation will work for both scalar simd.