added some methods

This commit is contained in:
2025-08-16 21:11:17 +00:00
parent 8fb7478dc7
commit 893d2b81d7
2 changed files with 75 additions and 9 deletions

View File

@@ -8,15 +8,6 @@ import (
"testing"
)
const (
MinInt24 = -1 << 23 // -8388608
MaxInt24 = 1<<23 - 1 // 8388607
MinInt48 = -1 << 47 // -140737488355328
MaxInt48 = 1<<47 - 1 // 140737488355327
MaxUint24 = 1<<24 - 1 // 16777215
MaxUint48 = 1<<48 - 1 // 281474976710655
)
func TestContants(t *testing.T) {
fmt.Println(MinInt24 == -8388608)
fmt.Println(MaxInt24 == 8388607)