https://github.com/dirktoewe/u_int
Typelevel, unsigned binary integer representation for Scala.
https://github.com/dirktoewe/u_int
Last synced: 21 days ago
JSON representation
Typelevel, unsigned binary integer representation for Scala.
- Host: GitHub
- URL: https://github.com/dirktoewe/u_int
- Owner: DirkToewe
- License: gpl-3.0
- Created: 2019-03-09T09:50:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-09T09:54:30.000Z (about 7 years ago)
- Last Synced: 2025-02-24T05:35:08.361Z (over 1 year ago)
- Language: Scala
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The prototype of a binary typelevel unsigned integer implementation for Scala.
```scala
import uint._
import java.lang.Long.parseLong
val a = parseLong("101001100",2)
val b = parseLong( "1100001",2)
type A = I°O°I°O°O°I°I°O°O
type B = I°I°O°O°O°O°I
println(a*b)
println( toLong[A*B] )
```