flat assembler
Message board for the users of flat assembler.
Index
> Main > Sse roundss how get low parts? |
Author |
|
macomics 24 Apr 2023, 15:27
fxtract
|
|||
24 Apr 2023, 15:27 |
|
Roman 24 Apr 2023, 15:31
Easy write three sse commands.
Fpu three too fld value fxtract fstp outmem Strange why roundss not have option as fxtract ? |
|||
24 Apr 2023, 15:31 |
|
macomics 24 Apr 2023, 16:39
Because round <> extract
|
|||
24 Apr 2023, 16:39 |
|
Roman 24 Apr 2023, 19:28
But it could be
|
|||
24 Apr 2023, 19:28 |
|
bitRAKE 24 Apr 2023, 22:14
Did you try ...
Code: ;xmm0 = 4.982 roundss xmm1, xmm0, 0x3 ; truncate subss xmm0, xmm1 ;do xmm0 = 0.982 (roundss is all about the integer part, it only helps with fractional part through subtraction) _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
24 Apr 2023, 22:14 |
|
Roman 25 Apr 2023, 02:45
Yes i do this.
|
|||
25 Apr 2023, 02:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.