1// Copyright 2023 The Pigweed Authors 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); you may not 4// use this file except in compliance with the License. You may obtain a copy of 5// the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12// License for the specific language governing permissions and limitations under 13// the License. 14 15const IntDB = [ 16 ['%d', '-128', '%u', '4294967168', '\xff\x01'], 17 ['%d', '-10', '%u', '4294967286', '\x13'], 18 ['%d', '-9', '%u', '4294967287', '\x11'], 19 ['%d', '-8', '%u', '4294967288', '\x0f'], 20 ['%d', '-7', '%u', '4294967289', '\x0d'], 21 ['%d', '-6', '%u', '4294967290', '\x0b'], 22 ['%d', '-5', '%u', '4294967291', '\x09'], 23 ['%d', '-4', '%u', '4294967292', '\x07'], 24 ['%d', '-3', '%u', '4294967293', '\x05'], 25 ['%d', '-2', '%u', '4294967294', '\x03'], 26 ['%d', '-1', '%u', '4294967295', '\x01'], 27 ['%d', '0', '%u', '0', '\x00'], 28 ['%d', '1', '%u', '1', '\x02'], 29 ['%d', '2', '%u', '2', '\x04'], 30 ['%d', '3', '%u', '3', '\x06'], 31 ['%d', '4', '%u', '4', '\x08'], 32 ['%d', '5', '%u', '5', '\x0a'], 33 ['%d', '6', '%u', '6', '\x0c'], 34 ['%d', '7', '%u', '7', '\x0e'], 35 ['%d', '8', '%u', '8', '\x10'], 36 ['%d', '9', '%u', '9', '\x12'], 37 ['%d', '10', '%u', '10', '\x14'], 38 ['%d', '127', '%u', '127', '\xfe\x01'], 39 ['%d', '-32768', '%u', '4294934528', '\xff\xff\x03'], 40 ['%d', '652344632', '%u', '652344632', '\xf0\xf4\x8f\xee\x04'], 41 ['%d', '18567', '%u', '18567', '\x8e\xa2\x02'], 42 ['%d', '-14', '%u', '4294967282', '\x1b'], 43 ['%d', '-2147483648', '%u', '2147483648', '\xff\xff\xff\xff\x0f'], 44 ['%ld', '-14', '%lu', '4294967282', '\x1b'], 45 ['%d', '2075650855', '%u', '2075650855', '\xce\xac\xbf\xbb\x0f'], 46 [ 47 '%lld', 48 '5922204476835468009', 49 '%llu', 50 '5922204476835468009', 51 '\xd2\xcb\x8c\x90\x86\xe6\xf2\xaf\xa4\x01', 52 ], 53 [ 54 '%lld', 55 '-9223372036854775808', 56 '%llu', 57 '9223372036854775808', 58 '\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01', 59 ], 60 [ 61 '%lld', 62 '3273441488341945355', 63 '%llu', 64 '3273441488341945355', 65 '\x96\xb0\xae\x9a\x96\xec\xcc\xed\x5a', 66 ], 67 [ 68 '%lld', 69 '-9223372036854775807', 70 '%llu', 71 '9223372036854775809', 72 '\xfd\xff\xff\xff\xff\xff\xff\xff\xff\x01', 73 ], 74]; 75 76export default IntDB; 77