-- |
-- Module:     Data.Vector.Algorithms.Quicksort.Predefined.VIntParallelStrategiesMedian3or5ST
-- Copyright:  (c) Sergey Vinokurov 2023
-- License:    Apache-2.0 (see LICENSE)
-- Maintainer: serg.foo@gmail.com

module Data.Vector.Algorithms.Quicksort.Predefined.PIntParallelStrategiesMedian3or5IO
  ( sortPIntParallelStrategiesMedian3or5IO
  ) where

import Control.Monad.ST
import Data.Int
import Data.Vector.Primitive qualified as P

import Data.Vector.Algorithms.Quicksort.Parameterised

import Data.Vector.Algorithms.Quicksort.Predefined.PIntSequentialMedian3IO ()

{-# NOINLINE sortPIntParallelStrategiesMedian3or5IO #-}
sortPIntParallelStrategiesMedian3or5IO :: P.MVector RealWorld Int64 -> IO ()
sortPIntParallelStrategiesMedian3or5IO :: MVector RealWorld Int64 -> IO ()
sortPIntParallelStrategiesMedian3or5IO = ParStrategies
-> Median3or5 Int64 -> MVector (PrimState IO) Int64 -> IO ()
forall p med x (m :: * -> *) a (v :: * -> * -> *).
(Fork2 p x m, Median med a m (PrimState m), PrimMonad m, Ord a,
 MVector v a) =>
p -> med -> v (PrimState m) a -> m ()
sortInplaceFM ParStrategies
defaultParStrategies (forall a. Median3or5 a
forall {k} (a :: k). Median3or5 a
Median3or5 @Int64)