Changeset 8e7c9fe in mainline for uspace/lib/math/arch/ia32/include/libarch/math.h
- Timestamp:
- 2014-09-12T03:45:25Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c53b58e
- Parents:
- 3eb0c85 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/arch/ia32/include/libarch/math.h
r3eb0c85 r8e7c9fe 1 1 /* 2 * Copyright (c) 20 06Martin Decky2 * Copyright (c) 2014 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup mips6429 /** @addtogroup libmathia32 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef KERN_mips64_CYCLE_H_36 #define KERN_mips64_CYCLE_H_35 #ifndef LIBMATH_ia32_MATH_H_ 36 #define LIBMATH_ia32_MATH_H_ 37 37 38 #include <arch/cp0.h> 39 #include <arch/interrupt.h> 40 #include <trace.h> 38 #include <mod.h> 41 39 42 NO_TRACE static inline uint64_t get_cycle(void)40 static inline double fmod(double dividend, double divisor) 43 41 { 44 return ((uint64_t) count_hi << 32) + ((uint64_t) cp0_count_read());42 return double_mod(dividend, divisor); 45 43 } 44 45 extern double sin(double); 46 extern double cos(double); 47 extern double trunc(double); 46 48 47 49 #endif
Note:
See TracChangeset
for help on using the changeset viewer.