Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/scala/debox/Set.scala
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,8 @@ final class Set[@sp (Short, Char, Int, Float, Long, Double, AnyRef) A] protected
*
* This is an O(n) operation, where n is the size of the set.
*/
def toMap[@sp(Boolean, Int, Long, Double) B: ClassTag](f: A => B): Map[A, B] = {
val out = Map.ofSize[A, B](len)
def toMap[@sp(Boolean, Int, Long, Double) B: ClassTag](f: A => B): spall.Map[A, B] = {
val out = spall.Map.ofSize[A, B](len)
cfor(0)(_ < buckets.length, _ + 1) { i =>
if (buckets(i) == 3) {
val a = items(i)
Expand Down
8 changes: 8 additions & 0 deletions src/main/scala/debox/Util.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,11 @@ object Util {
if (x == n) n else x * 2
}
}

import Specializable._

/** Dummy specialization annotation. Used to disable specialization by changing imports in Map. */

class dummysp extends scala.annotation.StaticAnnotation {
def this(dummy: Any*) = this()
}
Loading