File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed
Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -364,16 +364,8 @@ auto min(T...)(T args)
364364
365365 static if ((isFloatingPoint! T0 && isNumeric! T1 ) || (isFloatingPoint! T1 && isNumeric! T0 ))
366366 {
367- version (LDC )
368- {
369- import ldc.intrinsics: llvm_minnum;
370- return llvm_minnum (a, b);
371- }
372- else
373- {
374- import std.math : fmin;
375- return cast (CommonType! (T0 , T1 ))fmin(a, b);
376- }
367+ import mir.math.common: fmin;
368+ return fmin (a, b);
377369 }
378370 else
379371 {
@@ -438,16 +430,8 @@ auto max(T...)(T args)
438430
439431 static if ((isFloatingPoint! T0 && isNumeric! T1 ) || (isFloatingPoint! T1 && isNumeric! T0 ))
440432 {
441- version (LDC )
442- {
443- import ldc.intrinsics: llvm_maxnum;
444- return llvm_maxnum (a, b);
445- }
446- else
447- {
448- import std.math : fmax;
449- return cast (CommonType! (T0 , T1 ))fmax(a, b);
450- }
433+ import mir.math.common: fmax;
434+ return fmax (a, b);
451435 }
452436 else
453437 {
You can’t perform that action at this time.
0 commit comments