3 ms·
I tried implementing the four versions: 16bit: https://gcc.godbolt.org/z/6G38YxcGr https://gcc.godbolt.org/z/6G38YxcGr 32bit: https://gcc.godbolt.org/z/vEzf9h
by omoikane 2y ago
I tried implementing the four versions:
16bit: https://gcc.godbolt.org/z/6G38YxcGr https://gcc.godbolt.org/z/6G38YxcGr
32bit: https://gcc.godbolt.org/z/vEzf9h1jo https://gcc.godbolt.org/z/vEzf9h1jo
I thought it's interesting how "div" is used in 16bit versions, whereas for 32bit versions the compiler optimized all of them to use only imul.