diff options
| author | gingerBill <bill@gingerbill.org> | 2024-01-28 22:18:51 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-01-28 22:18:51 +0000 |
| commit | 3e7e779abf305f55a5b4fe59f3b905b397c0fe87 (patch) | |
| tree | 8c92f5f4fc9e7eb7d83f03c80e592c77299f06ad /core/math | |
| parent | 6a07effdd2cb7c369aa4c9711ff66b840abe3033 (diff) | |
Replace `core:*` to `base:*` where appropriate
Diffstat (limited to 'core/math')
| -rw-r--r-- | core/math/big/common.odin | 2 | ||||
| -rw-r--r-- | core/math/big/helpers.odin | 2 | ||||
| -rw-r--r-- | core/math/big/internal.odin | 4 | ||||
| -rw-r--r-- | core/math/big/private.odin | 2 | ||||
| -rw-r--r-- | core/math/big/public.odin | 2 | ||||
| -rw-r--r-- | core/math/big/radix.odin | 2 | ||||
| -rw-r--r-- | core/math/big/rat.odin | 4 | ||||
| -rw-r--r-- | core/math/big/tune.odin | 2 | ||||
| -rw-r--r-- | core/math/bits/bits.odin | 2 | ||||
| -rw-r--r-- | core/math/cmplx/cmplx.odin | 2 | ||||
| -rw-r--r-- | core/math/cmplx/cmplx_invtrig.odin | 2 | ||||
| -rw-r--r-- | core/math/ease/ease.odin | 2 | ||||
| -rw-r--r-- | core/math/fixed/fixed.odin | 2 | ||||
| -rw-r--r-- | core/math/linalg/extended.odin | 2 | ||||
| -rw-r--r-- | core/math/linalg/general.odin | 4 | ||||
| -rw-r--r-- | core/math/linalg/glsl/linalg_glsl.odin | 4 | ||||
| -rw-r--r-- | core/math/linalg/hlsl/linalg_hlsl.odin | 4 | ||||
| -rw-r--r-- | core/math/linalg/specific.odin | 2 | ||||
| -rw-r--r-- | core/math/math.odin | 4 | ||||
| -rw-r--r-- | core/math/math_basic.odin | 2 | ||||
| -rw-r--r-- | core/math/math_basic_js.odin | 2 | ||||
| -rw-r--r-- | core/math/rand/rand.odin | 2 |
22 files changed, 28 insertions, 28 deletions
diff --git a/core/math/big/common.odin b/core/math/big/common.odin index 74a641d83..fabf39520 100644 --- a/core/math/big/common.odin +++ b/core/math/big/common.odin @@ -6,7 +6,7 @@ package math_big -import "core:intrinsics" +import "base:intrinsics" /* TODO: Make the tunables runtime adjustable where practical. diff --git a/core/math/big/helpers.odin b/core/math/big/helpers.odin index a4313a244..8ab19e3e7 100644 --- a/core/math/big/helpers.odin +++ b/core/math/big/helpers.odin @@ -6,7 +6,7 @@ package math_big -import "core:intrinsics" +import "base:intrinsics" import rnd "core:math/rand" /* diff --git a/core/math/big/internal.odin b/core/math/big/internal.odin index ca8dbf4c5..829cbf0e2 100644 --- a/core/math/big/internal.odin +++ b/core/math/big/internal.odin @@ -28,9 +28,9 @@ package math_big import "core:mem" -import "core:intrinsics" +import "base:intrinsics" import rnd "core:math/rand" -import "core:builtin" +import "base:builtin" /* Low-level addition, unsigned. Handbook of Applied Cryptography, algorithm 14.7. diff --git a/core/math/big/private.odin b/core/math/big/private.odin index d41e66343..d045b4239 100644 --- a/core/math/big/private.odin +++ b/core/math/big/private.odin @@ -19,7 +19,7 @@ package math_big
-import "core:intrinsics"
+import "base:intrinsics"
import "core:mem"
/*
diff --git a/core/math/big/public.odin b/core/math/big/public.odin index 3227d7bc4..070c45283 100644 --- a/core/math/big/public.odin +++ b/core/math/big/public.odin @@ -12,7 +12,7 @@ package math_big
-import "core:intrinsics"
+import "base:intrinsics"
/*
===========================
diff --git a/core/math/big/radix.odin b/core/math/big/radix.odin index d15ce0e98..8d8ea734e 100644 --- a/core/math/big/radix.odin +++ b/core/math/big/radix.odin @@ -16,7 +16,7 @@ package math_big -import "core:intrinsics" +import "base:intrinsics" import "core:mem" import "core:os" diff --git a/core/math/big/rat.odin b/core/math/big/rat.odin index 35618affb..e0e58b80f 100644 --- a/core/math/big/rat.odin +++ b/core/math/big/rat.odin @@ -1,7 +1,7 @@ package math_big -import "core:builtin" -import "core:intrinsics" +import "base:builtin" +import "base:intrinsics" import "core:math" Rat :: struct { diff --git a/core/math/big/tune.odin b/core/math/big/tune.odin index ec1ef9a5b..5938dafde 100644 --- a/core/math/big/tune.odin +++ b/core/math/big/tune.odin @@ -11,7 +11,7 @@ package math_big import "core:time" -import "core:runtime" +import "base:runtime" print_value :: proc(name: string, value: i64) { runtime.print_string("\t") diff --git a/core/math/bits/bits.odin b/core/math/bits/bits.odin index 959b5536f..154b5a142 100644 --- a/core/math/bits/bits.odin +++ b/core/math/bits/bits.odin @@ -1,6 +1,6 @@ package math_bits -import "core:intrinsics" +import "base:intrinsics" U8_MIN :: 0 U16_MIN :: 0 diff --git a/core/math/cmplx/cmplx.odin b/core/math/cmplx/cmplx.odin index c029be30c..4625f83c6 100644 --- a/core/math/cmplx/cmplx.odin +++ b/core/math/cmplx/cmplx.odin @@ -1,6 +1,6 @@ package math_cmplx -import "core:builtin" +import "base:builtin" import "core:math" // The original C code, the long comment, and the constants diff --git a/core/math/cmplx/cmplx_invtrig.odin b/core/math/cmplx/cmplx_invtrig.odin index a746a370f..b84f0ac9c 100644 --- a/core/math/cmplx/cmplx_invtrig.odin +++ b/core/math/cmplx/cmplx_invtrig.odin @@ -1,6 +1,6 @@ package math_cmplx -import "core:builtin" +import "base:builtin" import "core:math" // The original C code, the long comment, and the constants diff --git a/core/math/ease/ease.odin b/core/math/ease/ease.odin index 0e6569bca..5ed0dd56a 100644 --- a/core/math/ease/ease.odin +++ b/core/math/ease/ease.odin @@ -2,7 +2,7 @@ package ease import "core:math" -import "core:intrinsics" +import "base:intrinsics" import "core:time" @(private) PI_2 :: math.PI / 2 diff --git a/core/math/fixed/fixed.odin b/core/math/fixed/fixed.odin index d347e9c11..b8000a5c6 100644 --- a/core/math/fixed/fixed.odin +++ b/core/math/fixed/fixed.odin @@ -2,7 +2,7 @@ package math_fixed import "core:math" import "core:strconv" -import "core:intrinsics" +import "base:intrinsics" _, _, _ :: intrinsics, strconv, math Fixed :: struct($Backing: typeid, $Fraction_Width: uint) diff --git a/core/math/linalg/extended.odin b/core/math/linalg/extended.odin index b6e05a2c2..eee339245 100644 --- a/core/math/linalg/extended.odin +++ b/core/math/linalg/extended.odin @@ -1,6 +1,6 @@ package linalg -import "core:builtin" +import "base:builtin" import "core:math" @(require_results) diff --git a/core/math/linalg/general.odin b/core/math/linalg/general.odin index 8743cb2f0..24bc4c7b3 100644 --- a/core/math/linalg/general.odin +++ b/core/math/linalg/general.odin @@ -1,8 +1,8 @@ package linalg import "core:math" -import "core:builtin" -import "core:intrinsics" +import "base:builtin" +import "base:intrinsics" // Generic diff --git a/core/math/linalg/glsl/linalg_glsl.odin b/core/math/linalg/glsl/linalg_glsl.odin index 68a05be53..bda1f1723 100644 --- a/core/math/linalg/glsl/linalg_glsl.odin +++ b/core/math/linalg/glsl/linalg_glsl.odin @@ -1,8 +1,8 @@ // core:math/linalg/glsl implements a GLSL-like mathematics library plus numerous other utility procedures package math_linalg_glsl -import "core:builtin" -import "core:intrinsics" +import "base:builtin" +import "base:intrinsics" TAU :: 6.28318530717958647692528676655900576 PI :: 3.14159265358979323846264338327950288 diff --git a/core/math/linalg/hlsl/linalg_hlsl.odin b/core/math/linalg/hlsl/linalg_hlsl.odin index 66278345e..f5e8bf147 100644 --- a/core/math/linalg/hlsl/linalg_hlsl.odin +++ b/core/math/linalg/hlsl/linalg_hlsl.odin @@ -1,8 +1,8 @@ // core:math/linalg/hlsl implements a HLSL-like mathematics library plus numerous other utility procedures package math_linalg_hlsl -import "core:builtin" -import "core:intrinsics" +import "base:builtin" +import "base:intrinsics" TAU :: 6.28318530717958647692528676655900576 PI :: 3.14159265358979323846264338327950288 diff --git a/core/math/linalg/specific.odin b/core/math/linalg/specific.odin index 656def1cc..36783e1e2 100644 --- a/core/math/linalg/specific.odin +++ b/core/math/linalg/specific.odin @@ -1,6 +1,6 @@ package linalg -import "core:builtin" +import "base:builtin" import "core:math" F16_EPSILON :: 1e-3 diff --git a/core/math/math.odin b/core/math/math.odin index 696293f70..7fdbcba04 100644 --- a/core/math/math.odin +++ b/core/math/math.odin @@ -1,7 +1,7 @@ package math -import "core:intrinsics" -import "core:builtin" +import "base:intrinsics" +import "base:builtin" _ :: intrinsics Float_Class :: enum { diff --git a/core/math/math_basic.odin b/core/math/math_basic.odin index 95e0a93ec..041efd272 100644 --- a/core/math/math_basic.odin +++ b/core/math/math_basic.odin @@ -1,7 +1,7 @@ //+build !js package math -import "core:intrinsics" +import "base:intrinsics" @(default_calling_convention="none", private="file") foreign _ { diff --git a/core/math/math_basic_js.odin b/core/math/math_basic_js.odin index acd3c2b39..5b9adabcd 100644 --- a/core/math/math_basic_js.odin +++ b/core/math/math_basic_js.odin @@ -1,7 +1,7 @@ //+build js package math -import "core:intrinsics" +import "base:intrinsics" foreign import "odin_env" diff --git a/core/math/rand/rand.odin b/core/math/rand/rand.odin index 7e6d58ee2..14894e82c 100644 --- a/core/math/rand/rand.odin +++ b/core/math/rand/rand.odin @@ -4,7 +4,7 @@ Package core:math/rand implements various random number generators */ package rand -import "core:intrinsics" +import "base:intrinsics" import "core:math" import "core:mem" |