this repo has no description
at master 32 lines 744 B view raw
1# generated from the original tests. 2# Henceforth it may be nicer to group tests into separate files. 3-- in.cue -- 4import "math/bits" 5 6t1: bits.Or(0x8, 0x1) 7t2: bits.Lsh(0x8, 4) 8t3: bits.Rsh(0x100, 4) 9t4: bits.At(0x100, 8) 10t5: bits.At(0x100, 9) 11t6: bits.Set(0x100, 7, 1) 12t7: bits.Set(0x100, 8, 0) 13t8: bits.And(0x10000000000000F0E, 0xF0F7) 14t9: bits.Or(0x100000000000000F0, 0x0F) 15t10: bits.Xor(0x10000000000000F0F, 0xFF0) 16t11: bits.Xor(0xFF0, 0x10000000000000F0F) 17t12: bits.Clear(0xF, 0x100000000000008) 18t13: bits.Clear(0x1000000000000000008, 0xF) 19-- out/bits -- 20t1: 9 21t2: 128 22t3: 16 23t4: 1 24t5: 0 25t6: 384 26t7: 0 27t8: 6 28t9: 18446744073709551871 29t10: 18446744073709551871 30t11: 18446744073709551871 31t12: 7 32t13: 4722366482869645213696