Changeset a35b458 in mainline for uspace/lib/math/arch/ia32/src/cos.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/cos.S
r3061bc1 ra35b458 34 34 FUNCTION_BEGIN(cos_f64) 35 35 # compute cosine (no stack frame) 36 36 37 37 fldl 4(%esp) 38 38 fcos 39 39 40 40 # detect if source operand is out of range 41 41 42 42 fnstsw %ax 43 43 andw $X87_STATUS_WORD_C2_MASK, %ax 44 44 jnz fix_range 45 45 46 46 ret 47 47 48 48 # argument reduction 49 49 50 50 fix_range: 51 51 fldpi 52 52 fadd %st(0) 53 53 fxch %st(1) 54 54 55 55 reduce: 56 56 fprem1 … … 58 58 andw $X87_STATUS_WORD_C2_MASK, %ax 59 59 jnz reduce 60 60 61 61 fstp %st(1) 62 62 fcos 63 63 64 64 ret 65 65 FUNCTION_END(cos_f64)
Note:
See TracChangeset
for help on using the changeset viewer.