We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d47714 commit 6e9ec11Copy full SHA for 6e9ec11
1 file changed
pixie/math.pxi
@@ -1,5 +1,6 @@
1
(ns pixie.math
2
- (:require [pixie.ffi-infer :as i]))
+ (:require [pixie.ffi-infer :as i]
3
+ [pixie.string :as s]))
4
5
(i/with-config {:library "m"
6
:cxx-flags ["-lm"]
@@ -45,7 +46,8 @@
45
46
47
(i/defcfn exp)
48
(i/defcfn exp2)
- (i/defcfn exp10)
49
+ (if-not (s/starts-with? pixie.platform/name "darwin")
50
+ (i/defcfn exp10))
51
(i/defcfn expm1)
52
53
(i/defcfn log)
@@ -94,3 +96,6 @@
94
96
95
97
(i/defcfn erf)
98
(i/defcfn erfc))
99
+
100
+(if (s/starts-with? pixie.platform/name "darwin")
101
+ (defn exp10 [x] (pow 10.0 x)))
0 commit comments