Skip to content

Commit

Permalink
[Kernels][Stdlib] Reformat the imports, NFC (#35086)
Browse files Browse the repository at this point in the history
Reformat all the imports after moving everything around.

modular-orig-commit: ec83d89a7b90ad64e1c61cd42d1104e246be8637
  • Loading branch information
abduld authored Mar 19, 2024
1 parent 939a907 commit d60fff8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion stdlib/src/builtin/range.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ These are Mojo built-ins, so you don't need to import them.

from python.object import PythonObject


# ===----------------------------------------------------------------------=== #
# Utilities
# ===----------------------------------------------------------------------=== #
Expand Down
5 changes: 3 additions & 2 deletions stdlib/src/builtin/simd.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
These are Mojo built-ins, so you don't need to import them.
"""

from utils._numerics import FPUtils
from utils._numerics import isnan as _isnan, nan as _nan
from sys import llvm_intrinsic
from sys.info import has_neon, is_x86, simdwidthof

from builtin.hash import _hash_simd
from memory.unsafe import bitcast

from utils._numerics import FPUtils
from utils._numerics import isnan as _isnan
from utils._numerics import nan as _nan
from utils._visualizers import lldb_formatter_wrapping_type
from utils.static_tuple import StaticTuple

Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/builtin/string.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ These are Mojo built-ins, so you don't need to import them.

from collections import List
from collections.dict import KeyElement
from sys.info import bitwidthof
from sys import llvm_intrinsic
from sys.info import bitwidthof

from memory.anypointer import AnyPointer
from memory.memory import memcmp, memcpy
Expand Down
1 change: 0 additions & 1 deletion stdlib/src/os/atomic.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ from os.atomic import Atomic
"""

from builtin.dtype import _integral_type_of

from memory.unsafe import Pointer, bitcast


Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/time/time.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ from time import now
```
"""

from builtin.simd import _floor
from sys import external_call
from sys.info import os_is_linux, os_is_windows

from builtin.simd import _floor
from memory.unsafe import Pointer

# ===----------------------------------------------------------------------===#
Expand Down
1 change: 0 additions & 1 deletion stdlib/src/utils/variant.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ from memory.unsafe import _LITRef, emplace_ref_unsafe
from utils.loop import unroll
from utils.static_tuple import StaticTuple


# ===----------------------------------------------------------------------=== #
# Utilities
# ===----------------------------------------------------------------------=== #
Expand Down
3 changes: 2 additions & 1 deletion stdlib/test/test_utils/test_utils.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
#
# ===----------------------------------------------------------------------=== #

from builtin.simd import _simd_apply
from sys import external_call

from builtin.simd import _simd_apply


@always_inline
fn libm_call[
Expand Down
2 changes: 1 addition & 1 deletion stdlib/test/utils/test_list.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
# ===----------------------------------------------------------------------=== #
# RUN: %mojo -debug-level full %s | FileCheck %s

from buffer.list import Dim, DimList
from testing import *

from utils.index import StaticIntTuple
from buffer.list import Dim, DimList


# CHECK-LABEL: test_dim_list
Expand Down

0 comments on commit d60fff8

Please sign in to comment.