Changeset a35b458 in mainline for uspace/lib/math/arch/ia32/src/trunc.S
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/arch/ia32/src/trunc.S
r3061bc1 ra35b458 36 36 movl %esp, %ebp 37 37 subl $8, %esp 38 38 39 39 # store x87 control word 40 40 41 41 fnstcw -4(%ebp) 42 42 movw -4(%ebp), %ax 43 43 44 44 # set rounding control to truncate 45 45 # (no masking necessary for this flag) 46 46 47 47 orw $X87_CONTROL_WORD_RC_TRUNCATE, %ax 48 48 movw %ax, -8(%ebp) 49 49 fldcw -8(%ebp) 50 50 51 51 # truncate 52 52 53 53 fldl 8(%ebp) 54 54 frndint 55 55 56 56 # restore original control word 57 57 58 58 fldcw -4(%ebp) 59 59 60 60 leave 61 61 ret
Note:
See TracChangeset
for help on using the changeset viewer.