Skip to content

Commit 71fef04

Browse files
committed
Force inlining of NativeMath functions
1 parent 8bea2ef commit 71fef04

File tree

1 file changed

+3
-0
lines changed
  • jsoniter-scala-core/native/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core

1 file changed

+3
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
package com.github.plokhotnyuk.jsoniter_scala.core
22

3+
import scala.scalanative.annotation.alwaysinline
34
import scala.scalanative.unsafe._
45

56
@extern
67
private[core] object NativeMath {
8+
@alwaysinline
79
@name("jsoniter_scala_multiply_high")
810
def multiplyHigh(x: Long, y: Long): Long = extern
911

12+
@alwaysinline
1013
@name("jsoniter_scala_unsigned_multiply_high")
1114
def unsignedMultiplyHigh(x: Long, y: Long): Long = extern
1215
}

0 commit comments

Comments
 (0)