Give names to the type in size-of
This commit is contained in:
parent
7ec625c955
commit
181db81dd6
1 changed files with 9 additions and 9 deletions
|
|
@ -108,39 +108,39 @@
|
||||||
(fn [type] type))
|
(fn [type] type))
|
||||||
|
|
||||||
(defmethod size-of ::byte
|
(defmethod size-of ::byte
|
||||||
[_]
|
[_type]
|
||||||
Byte/SIZE)
|
Byte/SIZE)
|
||||||
|
|
||||||
(defmethod size-of ::short
|
(defmethod size-of ::short
|
||||||
[_]
|
[_type]
|
||||||
Short/SIZE)
|
Short/SIZE)
|
||||||
|
|
||||||
(defmethod size-of ::int
|
(defmethod size-of ::int
|
||||||
[_]
|
[_type]
|
||||||
Integer/SIZE)
|
Integer/SIZE)
|
||||||
|
|
||||||
(defmethod size-of ::long
|
(defmethod size-of ::long
|
||||||
[_]
|
[_type]
|
||||||
Long/SIZE)
|
Long/SIZE)
|
||||||
|
|
||||||
(defmethod size-of ::long-long
|
(defmethod size-of ::long-long
|
||||||
[_]
|
[_type]
|
||||||
Long/SIZE)
|
Long/SIZE)
|
||||||
|
|
||||||
(defmethod size-of ::char
|
(defmethod size-of ::char
|
||||||
[_]
|
[_type]
|
||||||
Byte/SIZE)
|
Byte/SIZE)
|
||||||
|
|
||||||
(defmethod size-of ::float
|
(defmethod size-of ::float
|
||||||
[_]
|
[_type]
|
||||||
Float/SIZE)
|
Float/SIZE)
|
||||||
|
|
||||||
(defmethod size-of ::double
|
(defmethod size-of ::double
|
||||||
[_]
|
[_type]
|
||||||
Double/SIZE)
|
Double/SIZE)
|
||||||
|
|
||||||
(defmethod size-of ::pointer
|
(defmethod size-of ::pointer
|
||||||
[_]
|
[_type]
|
||||||
(.byteSize MemoryLayouts/ADDRESS))
|
(.byteSize MemoryLayouts/ADDRESS))
|
||||||
|
|
||||||
(def c-layout
|
(def c-layout
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue