Skip to content

Commit aed38c1

Browse files
committed
Some fixes
1 parent 9faf8dd commit aed38c1

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
dlib 1.7.0 - TBD
2-
----------------
1+
dlib 1.7.0 - 9 Sep, 2026
2+
------------------------
33
- **dlib.math**
44
- New module `dlib.math.base`, a direct replacement for `std.math` that implicitly uses LLVM intrinsics instead of Phobos functions when possible for maximum performance
55
- SIMD-optimized 4x4 matrix multiplication

‎dlib/geometry/aabb.d‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2011-2025 Timur Gafarov
2+
Copyright (c) 2011-2026 Timur Gafarov
33
44
Boost Software License - Version 1.0 - August 17th, 2003
55
@@ -27,14 +27,15 @@ DEALINGS IN THE SOFTWARE.
2727
*/
2828

2929
/**
30-
* Copyright: Timur Gafarov 2011-2025.
30+
* Copyright: Timur Gafarov 2011-2026.
3131
* License: $(LINK2 boost.org/LICENSE_1_0.txt, Boost License 1.0).
3232
* Authors: Timur Gafarov
3333
*/
3434
module dlib.geometry.aabb;
3535

3636
import std.algorithm;
3737
import dlib.math.base;
38+
import dlib.math.utils;
3839
import dlib.math.vector;
3940
import dlib.geometry.sphere;
4041
import dlib.geometry.intersection;

‎dlib/math/base.d‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ DEALINGS IN THE SOFTWARE.
4141
*/
4242
module dlib.math.base;
4343

44-
public import dlib.math.utils;
44+
import std.math;
4545

4646
/*
4747
* Basic math constants
@@ -96,7 +96,6 @@ T ctg(T)(T x) pure nothrow @nogc
9696
version(LDC)
9797
{
9898
import ldc.intrinsics;
99-
import std.math;
10099

101100
pragma(inline, true)
102101
T llvm_tan(T)(T x) pure nothrow @nogc
@@ -156,7 +155,8 @@ version(LDC)
156155
alias log10 = llvm_log10;
157156
alias logb = std.math.logb;
158157
alias ilogb = std.math.ilogb;
159-
alias log1p = std.math.scalbn;
158+
alias log1p = std.math.log1p;
159+
alias scalbn = std.math.scalbn;
160160

161161
// Remainder
162162
alias fmod = std.math.fmod;
@@ -196,8 +196,6 @@ version(LDC)
196196
}
197197
else
198198
{
199-
import std.math;
200-
201199
// Use std.math
202200

203201
// Algebraic
@@ -250,7 +248,8 @@ else
250248
alias log10 = std.math.log10;
251249
alias logb = std.math.logb;
252250
alias ilogb = std.math.ilogb;
253-
alias log1p = std.math.scalbn;
251+
alias log1p = std.math.log1p;
252+
alias scalbn = std.math.scalbn;
254253

255254
// Remainder
256255
alias fmod = std.math.fmod;

0 commit comments

Comments
 (0)