text stringlengths 1 1.05M |
|---|
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM uint_number_zero:QWORD
COMM uint_number_one:QWORD
_DATA ENDS
msvcjmc SEGMENT
__7B7A869E_ctype@h DB 01H
__457DD326_basetsd@h DB 01H
__4384A2D9_corecrt_memcpy_s@h DB 01H
__4E51A221_corecrt_wstring@h DB 01H
__2140C079_string@h DB 01H
__1887E595_winnt@h DB 01H
__9FC7C64B_processthreadsapi@h DB 01H
__FA470AEC_memoryapi@h DB 01H
__F37DAFF1_winerror@h DB 01H
__7A450CCC_winbase@h DB 01H
__B4B40122_winioctl@h DB 01H
__86261D59_stralign@h DB 01H
__059414E1_pmc_sint_debug@h DB 01H
__9E9C72DE_test_op_multiply@c DB 01H
msvcjmc ENDS
PUBLIC TEST_Multiply_I_X
PUBLIC TEST_Multiply_L_X
PUBLIC TEST_Multiply_UX_X
PUBLIC TEST_Multiply_X_I
PUBLIC TEST_Multiply_X_L
PUBLIC TEST_Multiply_X_UX
PUBLIC TEST_Multiply_X_X
PUBLIC __JustMyCode_Default
PUBLIC ??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@ ; `string'
PUBLIC ??_C@_1CK@GCKDGDDG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@ ; `string'
PUBLIC ??_C@_1EA@LPBHKBAG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@ ; `string'
PUBLIC ??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@ ; `string'
PUBLIC ??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@ ; `string'
PUBLIC ??_C@_1CK@IKIAJIEO@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@ ; `string'
PUBLIC ??_C@_1EA@OEIJFCJI@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@ ; `string'
PUBLIC ??_C@_1CM@OFECMCFC@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AA?5?$AA?$CI@ ; `string'
PUBLIC ??_C@_1EC@GKHLGAIL@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AAn?$PP?$KJ@ ; `string'
PUBLIC ??_C@_1CK@BJEMOJEP@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AA?5?$AA?$CI?$AA?$CF@ ; `string'
PUBLIC ??_C@_1EA@ODIMHHCB@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AAn?$PP?$KJ?$AA0@ ; `string'
PUBLIC ??_C@_1CK@DCMGDJFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AA?5?$AA?$CI?$AA?$CF@ ; `string'
PUBLIC ??_C@_1EA@KLMAOKLE@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AAn?$PP?$KJ?$AA0@ ; `string'
PUBLIC ??_C@_1CM@NLOJAHFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AA?5?$AA?$CI@ ; `string'
PUBLIC ??_C@_1EC@ONJOCOKL@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AAn?$PP?$KJ@ ; `string'
PUBLIC ??_C@_1EK@HDEICNAJ@?$AAP?$AAM?$AAC?$AA_?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr@ ; `string'
PUBLIC ??_C@_1CK@JMONHJCM@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@ ; `string'
PUBLIC ??_C@_1EA@FBIDJKKB@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@ ; `string'
EXTRN TEST_Assert:PROC
EXTRN FormatTestLabel:PROC
EXTRN FormatTestMesssage:PROC
EXTRN _RTC_CheckStackVars:PROC
EXTRN _RTC_InitBase:PROC
EXTRN _RTC_Shutdown:PROC
EXTRN __CheckForDebuggerJustMyCode:PROC
EXTRN __GSHandlerCheck:PROC
EXTRN __security_check_cookie:PROC
EXTRN __security_cookie:QWORD
; COMDAT pdata
pdata SEGMENT
$pdata$TEST_Multiply_I_X DD imagerel $LN13
DD imagerel $LN13+734
DD imagerel $unwind$TEST_Multiply_I_X
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$TEST_Multiply_L_X DD imagerel $LN13
DD imagerel $LN13+735
DD imagerel $unwind$TEST_Multiply_L_X
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$TEST_Multiply_UX_X DD imagerel $LN16
DD imagerel $LN16+901
DD imagerel $unwind$TEST_Multiply_UX_X
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$TEST_Multiply_X_I DD imagerel $LN13
DD imagerel $LN13+734
DD imagerel $unwind$TEST_Multiply_X_I
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$TEST_Multiply_X_L DD imagerel $LN13
DD imagerel $LN13+735
DD imagerel $unwind$TEST_Multiply_X_L
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$TEST_Multiply_X_UX DD imagerel $LN16
DD imagerel $LN16+901
DD imagerel $unwind$TEST_Multiply_X_UX
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$TEST_Multiply_X_X DD imagerel $LN16
DD imagerel $LN16+907
DD imagerel $unwind$TEST_Multiply_X_X
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_EQUALS_MEMORY DD imagerel _EQUALS_MEMORY
DD imagerel _EQUALS_MEMORY+198
DD imagerel $unwind$_EQUALS_MEMORY
pdata ENDS
; COMDAT rtc$TMZ
rtc$TMZ SEGMENT
_RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown
rtc$TMZ ENDS
; COMDAT rtc$IMZ
rtc$IMZ SEGMENT
_RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase
rtc$IMZ ENDS
; COMDAT ??_C@_1EA@FBIDJKKB@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@
CONST SEGMENT
??_C@_1EA@FBIDJKKB@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'X', 00H, '_', 00H, 'X', 00H, 'n0', 0a9H, '_'
DB '0^', 0b3H, '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H, '_', 01aH
DB 090H, 08aH, '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H
DB 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1CK@JMONHJCM@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
CONST SEGMENT
??_C@_1CK@JMONHJCM@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'X', 00H, '_', 00H, 'X', 00H, ' ', 00H, '('
DB 00H, '%', 00H, 'd', 00H, '.', 00H, '%', 00H, 'd', 00H, ')', 00H
DB 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1EK@HDEICNAJ@?$AAP?$AAM?$AAC?$AA_?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr@
CONST SEGMENT
??_C@_1EK@HDEICNAJ@?$AAP?$AAM?$AAC?$AA_?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr@ DB 'P'
DB 00H, 'M', 00H, 'C', 00H, '_', 00H, 'F', 00H, 'r', 00H, 'o', 00H
DB 'm', 00H, 'B', 00H, 'y', 00H, 't', 00H, 'e', 00H, 'A', 00H, 'r'
DB 00H, 'r', 00H, 'a', 00H, 'y', 00H, 'n0', 0a9H, '_0^', 0b3H, '0'
DB 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H, '_', 01aH, 090H, 08aH
DB '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1EC@ONJOCOKL@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AAn?$PP?$KJ@
CONST SEGMENT
??_C@_1EC@ONJOCOKL@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AAn?$PP?$KJ@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'X', 00H, '_', 00H, 'U', 00H, 'X', 00H, 'n'
DB '0', 0a9H, '_0^', 0b3H, '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H
DB '_', 01aH, 090H, 08aH, '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')'
DB 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1CM@NLOJAHFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AA?5?$AA?$CI@
CONST SEGMENT
??_C@_1CM@NLOJAHFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AA?5?$AA?$CI@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'X', 00H, '_', 00H, 'U', 00H, 'X', 00H, ' '
DB 00H, '(', 00H, '%', 00H, 'd', 00H, '.', 00H, '%', 00H, 'd', 00H
DB ')', 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1EA@KLMAOKLE@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AAn?$PP?$KJ?$AA0@
CONST SEGMENT
??_C@_1EA@KLMAOKLE@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AAn?$PP?$KJ?$AA0@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'X', 00H, '_', 00H, 'L', 00H, 'n0', 0a9H, '_'
DB '0^', 0b3H, '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H, '_', 01aH
DB 090H, 08aH, '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H
DB 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1CK@DCMGDJFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AA?5?$AA?$CI?$AA?$CF@
CONST SEGMENT
??_C@_1CK@DCMGDJFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AA?5?$AA?$CI?$AA?$CF@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'X', 00H, '_', 00H, 'L', 00H, ' ', 00H, '('
DB 00H, '%', 00H, 'd', 00H, '.', 00H, '%', 00H, 'd', 00H, ')', 00H
DB 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1EA@ODIMHHCB@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AAn?$PP?$KJ?$AA0@
CONST SEGMENT
??_C@_1EA@ODIMHHCB@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AAn?$PP?$KJ?$AA0@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'X', 00H, '_', 00H, 'I', 00H, 'n0', 0a9H, '_'
DB '0^', 0b3H, '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H, '_', 01aH
DB 090H, 08aH, '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H
DB 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1CK@BJEMOJEP@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AA?5?$AA?$CI?$AA?$CF@
CONST SEGMENT
??_C@_1CK@BJEMOJEP@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AA?5?$AA?$CI?$AA?$CF@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'X', 00H, '_', 00H, 'I', 00H, ' ', 00H, '('
DB 00H, '%', 00H, 'd', 00H, '.', 00H, '%', 00H, 'd', 00H, ')', 00H
DB 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1EC@GKHLGAIL@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AAn?$PP?$KJ@
CONST SEGMENT
??_C@_1EC@GKHLGAIL@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AAn?$PP?$KJ@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'U', 00H, 'X', 00H, '_', 00H, 'X', 00H, 'n'
DB '0', 0a9H, '_0^', 0b3H, '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H
DB '_', 01aH, 090H, 08aH, '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')'
DB 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1CM@OFECMCFC@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AA?5?$AA?$CI@
CONST SEGMENT
??_C@_1CM@OFECMCFC@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AA?5?$AA?$CI@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'U', 00H, 'X', 00H, '_', 00H, 'X', 00H, ' '
DB 00H, '(', 00H, '%', 00H, 'd', 00H, '.', 00H, '%', 00H, 'd', 00H
DB ')', 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1EA@OEIJFCJI@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@
CONST SEGMENT
??_C@_1EA@OEIJFCJI@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'L', 00H, '_', 00H, 'X', 00H, 'n0', 0a9H, '_'
DB '0^', 0b3H, '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H, '_', 01aH
DB 090H, 08aH, '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H
DB 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1CK@IKIAJIEO@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
CONST SEGMENT
??_C@_1CK@IKIAJIEO@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'L', 00H, '_', 00H, 'X', 00H, ' ', 00H, '('
DB 00H, '%', 00H, 'd', 00H, '.', 00H, '%', 00H, 'd', 00H, ')', 00H
DB 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@
CONST SEGMENT
??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@ DB 0c7H
DB '0', 0fcH, '0', 0bfH, '0n0', 085H, 'Q', 0b9H, '[L0', 00H, 'N', 0f4H
DB 081H, 'W0j0D0', 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@
CONST SEGMENT
??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@ DB 'T'
DB 00H, 'o', 00H, 'B', 00H, 'y', 00H, 't', 00H, 'e', 00H, 'A', 00H
DB 'r', 00H, 'r', 00H, 'a', 00H, 'y', 00H, 'n0', 0a9H, '_0^', 0b3H
DB '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H, '_', 01aH, 090H, 08aH
DB '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1EA@LPBHKBAG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@
CONST SEGMENT
??_C@_1EA@LPBHKBAG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'I', 00H, '_', 00H, 'X', 00H, 'n0', 0a9H, '_'
DB '0^', 0b3H, '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H, '_', 01aH
DB 090H, 08aH, '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')', 00H, 00H
DB 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1CK@GCKDGDDG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
CONST SEGMENT
??_C@_1CK@GCKDGDDG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@ DB 'M'
DB 00H, 'u', 00H, 'l', 00H, 't', 00H, 'i', 00H, 'p', 00H, 'l', 00H
DB 'y', 00H, '_', 00H, 'I', 00H, '_', 00H, 'X', 00H, ' ', 00H, '('
DB 00H, '%', 00H, 'd', 00H, '.', 00H, '%', 00H, 'd', 00H, ')', 00H
DB 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
CONST SEGMENT
??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@ DB 'F'
DB 00H, 'r', 00H, 'o', 00H, 'm', 00H, 'B', 00H, 'y', 00H, 't', 00H
DB 'e', 00H, 'A', 00H, 'r', 00H, 'r', 00H, 'a', 00H, 'y', 00H, 'n'
DB '0', 0a9H, '_0^', 0b3H, '0', 0fcH, '0', 0c9H, '0L0', 01fH, 'g', 085H
DB '_', 01aH, 090H, 08aH, '0g0o0j0D0(', 00H, '%', 00H, 'd', 00H, ')'
DB 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_EQUALS_MEMORY DD 025053901H
DD 011d2322H
DD 07016001dH
DD 05015H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$TEST_Multiply_X_X DD 025054a19H
DD 011d2322H
DD 07016007bH
DD 05015H
DD imagerel __GSHandlerCheck
DD 03c0H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
TEST_Multiply_X_X$rtcName$0 DB 075H
DB 00H
ORG $+2
TEST_Multiply_X_X$rtcName$1 DB 076H
DB 00H
ORG $+2
TEST_Multiply_X_X$rtcName$2 DB 077H
DB 00H
ORG $+6
TEST_Multiply_X_X$rtcName$3 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 07aH
DB 05fH
DB 062H
DB 075H
DB 066H
DB 00H
ORG $+3
TEST_Multiply_X_X$rtcName$4 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 07aH
DB 05fH
DB 062H
DB 075H
DB 066H
DB 05fH
DB 073H
DB 069H
DB 07aH
DB 065H
DB 00H
ORG $+14
TEST_Multiply_X_X$rtcVarDesc DD 01a8H
DD 08H
DQ FLAT:TEST_Multiply_X_X$rtcName$4
DD 090H
DD 0100H
DQ FLAT:TEST_Multiply_X_X$rtcName$3
DD 068H
DD 08H
DQ FLAT:TEST_Multiply_X_X$rtcName$2
DD 048H
DD 08H
DQ FLAT:TEST_Multiply_X_X$rtcName$1
DD 028H
DD 08H
DQ FLAT:TEST_Multiply_X_X$rtcName$0
ORG $+240
TEST_Multiply_X_X$rtcFrameData DD 05H
DD 00H
DQ FLAT:TEST_Multiply_X_X$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$TEST_Multiply_X_UX DD 025054a19H
DD 011d2322H
DD 07016007bH
DD 05015H
DD imagerel __GSHandlerCheck
DD 03c0H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
TEST_Multiply_X_UX$rtcName$0 DB 075H
DB 00H
ORG $+2
TEST_Multiply_X_UX$rtcName$1 DB 076H
DB 00H
ORG $+2
TEST_Multiply_X_UX$rtcName$2 DB 077H
DB 00H
ORG $+6
TEST_Multiply_X_UX$rtcName$3 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 07aH
DB 05fH
DB 062H
DB 075H
DB 066H
DB 00H
ORG $+3
TEST_Multiply_X_UX$rtcName$4 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 07aH
DB 05fH
DB 062H
DB 075H
DB 066H
DB 05fH
DB 073H
DB 069H
DB 07aH
DB 065H
DB 00H
ORG $+14
TEST_Multiply_X_UX$rtcVarDesc DD 01a8H
DD 08H
DQ FLAT:TEST_Multiply_X_UX$rtcName$4
DD 090H
DD 0100H
DQ FLAT:TEST_Multiply_X_UX$rtcName$3
DD 068H
DD 08H
DQ FLAT:TEST_Multiply_X_UX$rtcName$2
DD 048H
DD 08H
DQ FLAT:TEST_Multiply_X_UX$rtcName$1
DD 028H
DD 08H
DQ FLAT:TEST_Multiply_X_UX$rtcName$0
ORG $+240
TEST_Multiply_X_UX$rtcFrameData DD 05H
DD 00H
DQ FLAT:TEST_Multiply_X_UX$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$TEST_Multiply_X_L DD 025054a19H
DD 011d2322H
DD 07016005bH
DD 05015H
DD imagerel __GSHandlerCheck
DD 02c0H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
TEST_Multiply_X_L$rtcName$0 DB 075H
DB 00H
ORG $+2
TEST_Multiply_X_L$rtcName$1 DB 077H
DB 00H
ORG $+2
TEST_Multiply_X_L$rtcName$2 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 00H
ORG $+3
TEST_Multiply_X_L$rtcName$3 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 05fH
DB 073H
DB 069H
DB 07aH
DB 065H
DB 00H
ORG $+6
TEST_Multiply_X_L$rtcVarDesc DD 0188H
DD 08H
DQ FLAT:TEST_Multiply_X_L$rtcName$3
DD 070H
DD 0100H
DQ FLAT:TEST_Multiply_X_L$rtcName$2
DD 048H
DD 08H
DQ FLAT:TEST_Multiply_X_L$rtcName$1
DD 028H
DD 08H
DQ FLAT:TEST_Multiply_X_L$rtcName$0
ORG $+192
TEST_Multiply_X_L$rtcFrameData DD 04H
DD 00H
DQ FLAT:TEST_Multiply_X_L$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$TEST_Multiply_X_I DD 025054a19H
DD 011d2322H
DD 07016005bH
DD 05015H
DD imagerel __GSHandlerCheck
DD 02c0H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
TEST_Multiply_X_I$rtcName$0 DB 075H
DB 00H
ORG $+2
TEST_Multiply_X_I$rtcName$1 DB 077H
DB 00H
ORG $+2
TEST_Multiply_X_I$rtcName$2 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 00H
ORG $+3
TEST_Multiply_X_I$rtcName$3 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 05fH
DB 073H
DB 069H
DB 07aH
DB 065H
DB 00H
ORG $+6
TEST_Multiply_X_I$rtcVarDesc DD 0188H
DD 08H
DQ FLAT:TEST_Multiply_X_I$rtcName$3
DD 070H
DD 0100H
DQ FLAT:TEST_Multiply_X_I$rtcName$2
DD 048H
DD 08H
DQ FLAT:TEST_Multiply_X_I$rtcName$1
DD 028H
DD 08H
DQ FLAT:TEST_Multiply_X_I$rtcName$0
ORG $+192
TEST_Multiply_X_I$rtcFrameData DD 04H
DD 00H
DQ FLAT:TEST_Multiply_X_I$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$TEST_Multiply_UX_X DD 025054a19H
DD 011d2322H
DD 07016007bH
DD 05015H
DD imagerel __GSHandlerCheck
DD 03c0H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
TEST_Multiply_UX_X$rtcName$0 DB 075H
DB 00H
ORG $+2
TEST_Multiply_UX_X$rtcName$1 DB 076H
DB 00H
ORG $+2
TEST_Multiply_UX_X$rtcName$2 DB 077H
DB 00H
ORG $+6
TEST_Multiply_UX_X$rtcName$3 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 00H
ORG $+3
TEST_Multiply_UX_X$rtcName$4 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 05fH
DB 073H
DB 069H
DB 07aH
DB 065H
DB 00H
ORG $+14
TEST_Multiply_UX_X$rtcVarDesc DD 01a8H
DD 08H
DQ FLAT:TEST_Multiply_UX_X$rtcName$4
DD 090H
DD 0100H
DQ FLAT:TEST_Multiply_UX_X$rtcName$3
DD 068H
DD 08H
DQ FLAT:TEST_Multiply_UX_X$rtcName$2
DD 048H
DD 08H
DQ FLAT:TEST_Multiply_UX_X$rtcName$1
DD 028H
DD 08H
DQ FLAT:TEST_Multiply_UX_X$rtcName$0
ORG $+240
TEST_Multiply_UX_X$rtcFrameData DD 05H
DD 00H
DQ FLAT:TEST_Multiply_UX_X$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$TEST_Multiply_L_X DD 025054a19H
DD 011d2322H
DD 07016005bH
DD 05015H
DD imagerel __GSHandlerCheck
DD 02c0H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
TEST_Multiply_L_X$rtcName$0 DB 076H
DB 00H
ORG $+2
TEST_Multiply_L_X$rtcName$1 DB 077H
DB 00H
ORG $+2
TEST_Multiply_L_X$rtcName$2 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 00H
ORG $+3
TEST_Multiply_L_X$rtcName$3 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 05fH
DB 073H
DB 069H
DB 07aH
DB 065H
DB 00H
ORG $+6
TEST_Multiply_L_X$rtcVarDesc DD 0188H
DD 08H
DQ FLAT:TEST_Multiply_L_X$rtcName$3
DD 070H
DD 0100H
DQ FLAT:TEST_Multiply_L_X$rtcName$2
DD 048H
DD 08H
DQ FLAT:TEST_Multiply_L_X$rtcName$1
DD 028H
DD 08H
DQ FLAT:TEST_Multiply_L_X$rtcName$0
ORG $+192
TEST_Multiply_L_X$rtcFrameData DD 04H
DD 00H
DQ FLAT:TEST_Multiply_L_X$rtcVarDesc
CONST ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$TEST_Multiply_I_X DD 025054a19H
DD 011d2322H
DD 07016005bH
DD 05015H
DD imagerel __GSHandlerCheck
DD 02c0H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
TEST_Multiply_I_X$rtcName$0 DB 076H
DB 00H
ORG $+2
TEST_Multiply_I_X$rtcName$1 DB 077H
DB 00H
ORG $+2
TEST_Multiply_I_X$rtcName$2 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 00H
ORG $+3
TEST_Multiply_I_X$rtcName$3 DB 061H
DB 063H
DB 074H
DB 075H
DB 061H
DB 06cH
DB 05fH
DB 077H
DB 05fH
DB 062H
DB 075H
DB 066H
DB 05fH
DB 073H
DB 069H
DB 07aH
DB 065H
DB 00H
ORG $+6
TEST_Multiply_I_X$rtcVarDesc DD 0188H
DD 08H
DQ FLAT:TEST_Multiply_I_X$rtcName$3
DD 070H
DD 0100H
DQ FLAT:TEST_Multiply_I_X$rtcName$2
DD 048H
DD 08H
DQ FLAT:TEST_Multiply_I_X$rtcName$1
DD 028H
DD 08H
DQ FLAT:TEST_Multiply_I_X$rtcName$0
ORG $+192
TEST_Multiply_I_X$rtcFrameData DD 04H
DD 00H
DQ FLAT:TEST_Multiply_I_X$rtcVarDesc
CONST ENDS
; Function compile flags: /Odt
; COMDAT __JustMyCode_Default
_TEXT SEGMENT
__JustMyCode_Default PROC ; COMDAT
ret 0
__JustMyCode_Default ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\pmc_sint_debug.h
; COMDAT _EQUALS_MEMORY
_TEXT SEGMENT
buffer1$ = 224
count1$ = 232
buffer2$ = 240
count2$ = 248
_EQUALS_MEMORY PROC ; COMDAT
; 140 : {
mov QWORD PTR [rsp+32], r9
mov QWORD PTR [rsp+24], r8
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 232 ; 000000e8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 58 ; 0000003aH
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+264]
lea rcx, OFFSET FLAT:__059414E1_pmc_sint_debug@h
call __CheckForDebuggerJustMyCode
; 141 : if (count1 != count2)
mov rax, QWORD PTR count2$[rbp]
cmp QWORD PTR count1$[rbp], rax
je SHORT $LN4@EQUALS_MEM
; 142 : return (-1);
mov eax, -1
jmp SHORT $LN1@EQUALS_MEM
$LN4@EQUALS_MEM:
$LN2@EQUALS_MEM:
; 143 : while (count1 > 0)
cmp QWORD PTR count1$[rbp], 0
jbe SHORT $LN3@EQUALS_MEM
; 144 : {
; 145 : if (*buffer1 != *buffer2)
mov rax, QWORD PTR buffer1$[rbp]
movzx eax, BYTE PTR [rax]
mov rcx, QWORD PTR buffer2$[rbp]
movzx ecx, BYTE PTR [rcx]
cmp eax, ecx
je SHORT $LN5@EQUALS_MEM
; 146 : return (-1);
mov eax, -1
jmp SHORT $LN1@EQUALS_MEM
$LN5@EQUALS_MEM:
; 147 : ++buffer1;
mov rax, QWORD PTR buffer1$[rbp]
inc rax
mov QWORD PTR buffer1$[rbp], rax
; 148 : ++buffer2;
mov rax, QWORD PTR buffer2$[rbp]
inc rax
mov QWORD PTR buffer2$[rbp], rax
; 149 : --count1;
mov rax, QWORD PTR count1$[rbp]
dec rax
mov QWORD PTR count1$[rbp], rax
; 150 : }
jmp SHORT $LN2@EQUALS_MEM
$LN3@EQUALS_MEM:
; 151 : return (0);
xor eax, eax
$LN1@EQUALS_MEM:
; 152 : }
lea rsp, QWORD PTR [rbp+200]
pop rdi
pop rbp
ret 0
_EQUALS_MEMORY ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\test_op_multiply.c
; COMDAT TEST_Multiply_X_X
_TEXT SEGMENT
u$ = 8
v$ = 40
w$ = 72
actual_z_buf$ = 112
actual_z_buf_size$ = 392
result$ = 420
u_result$ = 452
v_result$ = 484
w_result$ = 516
tv176 = 916
tv161 = 916
tv142 = 916
tv92 = 916
tv74 = 916
tv150 = 920
tv132 = 920
tv82 = 920
tv64 = 920
__$ArrayPad$ = 928
env$ = 976
ep$ = 984
no$ = 992
u_buf$ = 1000
u_buf_size$ = 1008
v_buf$ = 1016
v_buf_size$ = 1024
desired_w_buf$ = 1032
desired_w_buf_size$ = 1040
TEST_Multiply_X_X PROC ; COMDAT
; 155 : {
$LN16:
mov QWORD PTR [rsp+32], r9
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 984 ; 000003d8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 246 ; 000000f6H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+1016]
mov rax, QWORD PTR __security_cookie
xor rax, rbp
mov QWORD PTR __$ArrayPad$[rbp], rax
lea rcx, OFFSET FLAT:__9E9C72DE_test_op_multiply@c
call __CheckForDebuggerJustMyCode
; 156 : PMC_HANDLE_SINT u;
; 157 : PMC_HANDLE_SINT v;
; 158 : PMC_HANDLE_SINT w;
; 159 : unsigned char actual_z_buf[256];
; 160 : size_t actual_z_buf_size;
; 161 : PMC_STATUS_CODE result;
; 162 : PMC_STATUS_CODE u_result;
; 163 : PMC_STATUS_CODE v_result;
; 164 : PMC_STATUS_CODE w_result;
; 165 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_X (%d.%d)", no, 1), (u_result = ep->FromByteArray(u_buf, u_buf_size, &u)) == PMC_STATUS_OK, FormatTestMesssage(L"PMC_FromByteArrayの復帰コードが期待通りではない(%d)", u_result));
lea r8, QWORD PTR u$[rbp]
mov rdx, QWORD PTR u_buf_size$[rbp]
mov rcx, QWORD PTR u_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+608]
mov DWORD PTR u_result$[rbp], eax
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN6@TEST_Multi
mov DWORD PTR tv74[rbp], 1
jmp SHORT $LN7@TEST_Multi
$LN6@TEST_Multi:
mov DWORD PTR tv74[rbp], 0
$LN7@TEST_Multi:
mov edx, DWORD PTR u_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EK@HDEICNAJ@?$AAP?$AAM?$AAC?$AA_?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr@
call FormatTestMesssage
mov QWORD PTR tv64[rbp], rax
mov r8d, 1
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@JMONHJCM@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv64[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv74[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 166 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_X (%d.%d)", no, 2), (v_result = ep->FromByteArray(v_buf, v_buf_size, &v)) == PMC_STATUS_OK, FormatTestMesssage(L"FromByteArrayの復帰コードが期待通りではない(%d)", v_result));
lea r8, QWORD PTR v$[rbp]
mov rdx, QWORD PTR v_buf_size$[rbp]
mov rcx, QWORD PTR v_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+608]
mov DWORD PTR v_result$[rbp], eax
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN8@TEST_Multi
mov DWORD PTR tv92[rbp], 1
jmp SHORT $LN9@TEST_Multi
$LN8@TEST_Multi:
mov DWORD PTR tv92[rbp], 0
$LN9@TEST_Multi:
mov edx, DWORD PTR v_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv82[rbp], rax
mov r8d, 2
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@JMONHJCM@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv82[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv92[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 167 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_X (%d.%d)", no, 3), (w_result = ep->Multiply_X_X(u, v, &w)) == PMC_STATUS_OK, FormatTestMesssage(L"Multiply_X_Xの復帰コードが期待通りではない(%d)", w_result));
lea r8, QWORD PTR w$[rbp]
mov rdx, QWORD PTR v$[rbp]
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+824]
mov DWORD PTR w_result$[rbp], eax
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN10@TEST_Multi
mov DWORD PTR tv142[rbp], 1
jmp SHORT $LN11@TEST_Multi
$LN10@TEST_Multi:
mov DWORD PTR tv142[rbp], 0
$LN11@TEST_Multi:
mov edx, DWORD PTR w_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EA@FBIDJKKB@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@
call FormatTestMesssage
mov QWORD PTR tv132[rbp], rax
mov r8d, 3
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@JMONHJCM@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv132[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv142[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 168 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_X (%d.%d)", no, 4), (result = ep->ToByteArray(w, actual_z_buf, sizeof(actual_z_buf), &actual_z_buf_size)) == PMC_STATUS_OK, FormatTestMesssage(L"ToByteArrayの復帰コードが期待通りではない(%d)", result));
lea r9, QWORD PTR actual_z_buf_size$[rbp]
mov r8d, 256 ; 00000100H
lea rdx, QWORD PTR actual_z_buf$[rbp]
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+616]
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
jne SHORT $LN12@TEST_Multi
mov DWORD PTR tv161[rbp], 1
jmp SHORT $LN13@TEST_Multi
$LN12@TEST_Multi:
mov DWORD PTR tv161[rbp], 0
$LN13@TEST_Multi:
mov edx, DWORD PTR result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@
call FormatTestMesssage
mov QWORD PTR tv150[rbp], rax
mov r8d, 4
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@JMONHJCM@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv150[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv161[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 169 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_X (%d.%d)", no, 5), _EQUALS_MEMORY(actual_z_buf, actual_z_buf_size, desired_w_buf, desired_w_buf_size) == 0, L"データの内容が一致しない");
mov r9, QWORD PTR desired_w_buf_size$[rbp]
mov r8, QWORD PTR desired_w_buf$[rbp]
mov rdx, QWORD PTR actual_z_buf_size$[rbp]
lea rcx, QWORD PTR actual_z_buf$[rbp]
call _EQUALS_MEMORY
test eax, eax
jne SHORT $LN14@TEST_Multi
mov DWORD PTR tv176[rbp], 1
jmp SHORT $LN15@TEST_Multi
$LN14@TEST_Multi:
mov DWORD PTR tv176[rbp], 0
$LN15@TEST_Multi:
mov r8d, 5
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@JMONHJCM@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
lea r9, OFFSET FLAT:??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@
mov r8d, DWORD PTR tv176[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 170 : if (w_result == PMC_STATUS_OK)
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN2@TEST_Multi
; 171 : ep->Dispose(w);
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN2@TEST_Multi:
; 172 : if (v_result == PMC_STATUS_OK)
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN3@TEST_Multi
; 173 : ep->Dispose(v);
mov rcx, QWORD PTR v$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN3@TEST_Multi:
; 174 : if (u_result == PMC_STATUS_OK)
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN4@TEST_Multi
; 175 : ep->Dispose(u);
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN4@TEST_Multi:
; 176 : }
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:TEST_Multiply_X_X$rtcFrameData
call _RTC_CheckStackVars
mov rcx, QWORD PTR __$ArrayPad$[rbp]
xor rcx, rbp
call __security_check_cookie
lea rsp, QWORD PTR [rbp+952]
pop rdi
pop rbp
ret 0
TEST_Multiply_X_X ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\test_op_multiply.c
; COMDAT TEST_Multiply_X_UX
_TEXT SEGMENT
u$ = 8
v$ = 40
w$ = 72
actual_z_buf$ = 112
actual_z_buf_size$ = 392
result$ = 420
u_result$ = 452
v_result$ = 484
w_result$ = 516
tv176 = 916
tv161 = 916
tv142 = 916
tv92 = 916
tv74 = 916
tv150 = 920
tv132 = 920
tv82 = 920
tv64 = 920
__$ArrayPad$ = 928
env$ = 976
ep$ = 984
no$ = 992
u_buf$ = 1000
u_buf_size$ = 1008
v_buf$ = 1016
v_buf_size$ = 1024
desired_w_buf$ = 1032
desired_w_buf_size$ = 1040
TEST_Multiply_X_UX PROC ; COMDAT
; 132 : {
$LN16:
mov QWORD PTR [rsp+32], r9
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 984 ; 000003d8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 246 ; 000000f6H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+1016]
mov rax, QWORD PTR __security_cookie
xor rax, rbp
mov QWORD PTR __$ArrayPad$[rbp], rax
lea rcx, OFFSET FLAT:__9E9C72DE_test_op_multiply@c
call __CheckForDebuggerJustMyCode
; 133 : PMC_HANDLE_SINT u;
; 134 : PMC_HANDLE_UINT v;
; 135 : PMC_HANDLE_SINT w;
; 136 : unsigned char actual_z_buf[256];
; 137 : size_t actual_z_buf_size;
; 138 : PMC_STATUS_CODE result;
; 139 : PMC_STATUS_CODE u_result;
; 140 : PMC_STATUS_CODE v_result;
; 141 : PMC_STATUS_CODE w_result;
; 142 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_UX (%d.%d)", no, 1), (u_result = ep->FromByteArray(u_buf, u_buf_size, &u)) == PMC_STATUS_OK, FormatTestMesssage(L"FromByteArrayの復帰コードが期待通りではない(%d)", u_result));
lea r8, QWORD PTR u$[rbp]
mov rdx, QWORD PTR u_buf_size$[rbp]
mov rcx, QWORD PTR u_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+608]
mov DWORD PTR u_result$[rbp], eax
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN6@TEST_Multi
mov DWORD PTR tv74[rbp], 1
jmp SHORT $LN7@TEST_Multi
$LN6@TEST_Multi:
mov DWORD PTR tv74[rbp], 0
$LN7@TEST_Multi:
mov edx, DWORD PTR u_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv64[rbp], rax
mov r8d, 1
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@NLOJAHFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
mov rcx, QWORD PTR tv64[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv74[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 143 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_UX (%d.%d)", no, 2), (v_result = ep->UINT_ENTRY_POINTS.FromByteArray(v_buf, v_buf_size, &v)) == PMC_STATUS_OK, FormatTestMesssage(L"FromByteArrayの復帰コードが期待通りではない(%d)", v_result));
lea r8, QWORD PTR v$[rbp]
mov rdx, QWORD PTR v_buf_size$[rbp]
mov rcx, QWORD PTR v_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+48]
mov DWORD PTR v_result$[rbp], eax
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN8@TEST_Multi
mov DWORD PTR tv92[rbp], 1
jmp SHORT $LN9@TEST_Multi
$LN8@TEST_Multi:
mov DWORD PTR tv92[rbp], 0
$LN9@TEST_Multi:
mov edx, DWORD PTR v_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv82[rbp], rax
mov r8d, 2
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@NLOJAHFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
mov rcx, QWORD PTR tv82[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv92[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 144 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_UX (%d.%d)", no, 3), (w_result = ep->Multiply_X_UX(u, v, &w)) == PMC_STATUS_OK, FormatTestMesssage(L"Multiply_X_UXの復帰コードが期待通りではない(%d)", w_result));
lea r8, QWORD PTR w$[rbp]
mov rdx, QWORD PTR v$[rbp]
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+816]
mov DWORD PTR w_result$[rbp], eax
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN10@TEST_Multi
mov DWORD PTR tv142[rbp], 1
jmp SHORT $LN11@TEST_Multi
$LN10@TEST_Multi:
mov DWORD PTR tv142[rbp], 0
$LN11@TEST_Multi:
mov edx, DWORD PTR w_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@ONJOCOKL@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv132[rbp], rax
mov r8d, 3
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@NLOJAHFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
mov rcx, QWORD PTR tv132[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv142[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 145 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_UX (%d.%d)", no, 4), (result = ep->ToByteArray(w, actual_z_buf, sizeof(actual_z_buf), &actual_z_buf_size)) == PMC_STATUS_OK, FormatTestMesssage(L"ToByteArrayの復帰コードが期待通りではない(%d)", result));
lea r9, QWORD PTR actual_z_buf_size$[rbp]
mov r8d, 256 ; 00000100H
lea rdx, QWORD PTR actual_z_buf$[rbp]
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+616]
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
jne SHORT $LN12@TEST_Multi
mov DWORD PTR tv161[rbp], 1
jmp SHORT $LN13@TEST_Multi
$LN12@TEST_Multi:
mov DWORD PTR tv161[rbp], 0
$LN13@TEST_Multi:
mov edx, DWORD PTR result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@
call FormatTestMesssage
mov QWORD PTR tv150[rbp], rax
mov r8d, 4
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@NLOJAHFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
mov rcx, QWORD PTR tv150[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv161[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 146 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_UX (%d.%d)", no, 5), _EQUALS_MEMORY(actual_z_buf, actual_z_buf_size, desired_w_buf, desired_w_buf_size) == 0, L"データの内容が一致しない");
mov r9, QWORD PTR desired_w_buf_size$[rbp]
mov r8, QWORD PTR desired_w_buf$[rbp]
mov rdx, QWORD PTR actual_z_buf_size$[rbp]
lea rcx, QWORD PTR actual_z_buf$[rbp]
call _EQUALS_MEMORY
test eax, eax
jne SHORT $LN14@TEST_Multi
mov DWORD PTR tv176[rbp], 1
jmp SHORT $LN15@TEST_Multi
$LN14@TEST_Multi:
mov DWORD PTR tv176[rbp], 0
$LN15@TEST_Multi:
mov r8d, 5
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@NLOJAHFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAU?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
lea r9, OFFSET FLAT:??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@
mov r8d, DWORD PTR tv176[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 147 : if (w_result == PMC_STATUS_OK)
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN2@TEST_Multi
; 148 : ep->Dispose(w);
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN2@TEST_Multi:
; 149 : if (v_result == PMC_STATUS_OK)
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN3@TEST_Multi
; 150 : ep->UINT_ENTRY_POINTS.Dispose(v);
mov rcx, QWORD PTR v$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+32]
$LN3@TEST_Multi:
; 151 : if (u_result == PMC_STATUS_OK)
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN4@TEST_Multi
; 152 : ep->Dispose(u);
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN4@TEST_Multi:
; 153 : }
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:TEST_Multiply_X_UX$rtcFrameData
call _RTC_CheckStackVars
mov rcx, QWORD PTR __$ArrayPad$[rbp]
xor rcx, rbp
call __security_check_cookie
lea rsp, QWORD PTR [rbp+952]
pop rdi
pop rbp
ret 0
TEST_Multiply_X_UX ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\test_op_multiply.c
; COMDAT TEST_Multiply_X_L
_TEXT SEGMENT
u$ = 8
w$ = 40
actual_w_buf$ = 80
actual_w_buf_size$ = 360
result$ = 388
u_result$ = 420
w_result$ = 452
tv158 = 660
tv143 = 660
tv92 = 660
tv74 = 660
tv132 = 664
tv82 = 664
tv64 = 664
__$ArrayPad$ = 672
env$ = 720
ep$ = 728
no$ = 736
u_buf$ = 744
u_buf_size$ = 752
v$ = 760
desired_w_buf$ = 768
desired_w_buf_size$ = 776
TEST_Multiply_X_L PROC ; COMDAT
; 113 : {
$LN13:
mov QWORD PTR [rsp+32], r9
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 728 ; 000002d8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 182 ; 000000b6H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+760]
mov rax, QWORD PTR __security_cookie
xor rax, rbp
mov QWORD PTR __$ArrayPad$[rbp], rax
lea rcx, OFFSET FLAT:__9E9C72DE_test_op_multiply@c
call __CheckForDebuggerJustMyCode
; 114 : PMC_HANDLE_SINT u;
; 115 : PMC_HANDLE_SINT w;
; 116 : unsigned char actual_w_buf[256];
; 117 : size_t actual_w_buf_size;
; 118 : PMC_STATUS_CODE result;
; 119 : PMC_STATUS_CODE u_result;
; 120 : PMC_STATUS_CODE w_result;
; 121 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_L (%d.%d)", no, 1), (u_result = ep->FromByteArray(u_buf, u_buf_size, &u)) == PMC_STATUS_OK, FormatTestMesssage(L"FromByteArrayの復帰コードが期待通りではない(%d)", u_result));
lea r8, QWORD PTR u$[rbp]
mov rdx, QWORD PTR u_buf_size$[rbp]
mov rcx, QWORD PTR u_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+608]
mov DWORD PTR u_result$[rbp], eax
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN5@TEST_Multi
mov DWORD PTR tv74[rbp], 1
jmp SHORT $LN6@TEST_Multi
$LN5@TEST_Multi:
mov DWORD PTR tv74[rbp], 0
$LN6@TEST_Multi:
mov edx, DWORD PTR u_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv64[rbp], rax
mov r8d, 1
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@DCMGDJFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv64[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv74[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 122 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_L (%d.%d)", no, 2), (w_result = ep->Multiply_X_L(u, v, &w)) == PMC_STATUS_OK, FormatTestMesssage(L"Multiply_X_Lの復帰コードが期待通りではない(%d)", w_result));
lea r8, QWORD PTR w$[rbp]
mov rdx, QWORD PTR v$[rbp]
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+808]
mov DWORD PTR w_result$[rbp], eax
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN7@TEST_Multi
mov DWORD PTR tv92[rbp], 1
jmp SHORT $LN8@TEST_Multi
$LN7@TEST_Multi:
mov DWORD PTR tv92[rbp], 0
$LN8@TEST_Multi:
mov edx, DWORD PTR w_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EA@KLMAOKLE@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AAn?$PP?$KJ?$AA0@
call FormatTestMesssage
mov QWORD PTR tv82[rbp], rax
mov r8d, 2
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@DCMGDJFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv82[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv92[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 123 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_L (%d.%d)", no, 3), (result = ep->ToByteArray(w, actual_w_buf, sizeof(actual_w_buf), &actual_w_buf_size)) == PMC_STATUS_OK, FormatTestMesssage(L"ToByteArrayの復帰コードが期待通りではない(%d)", result));
lea r9, QWORD PTR actual_w_buf_size$[rbp]
mov r8d, 256 ; 00000100H
lea rdx, QWORD PTR actual_w_buf$[rbp]
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+616]
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
jne SHORT $LN9@TEST_Multi
mov DWORD PTR tv143[rbp], 1
jmp SHORT $LN10@TEST_Multi
$LN9@TEST_Multi:
mov DWORD PTR tv143[rbp], 0
$LN10@TEST_Multi:
mov edx, DWORD PTR result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@
call FormatTestMesssage
mov QWORD PTR tv132[rbp], rax
mov r8d, 3
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@DCMGDJFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv132[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv143[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 124 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_L (%d.%d)", no, 4), _EQUALS_MEMORY(actual_w_buf, actual_w_buf_size, desired_w_buf, desired_w_buf_size) == 0, L"データの内容が一致しない");
mov r9, QWORD PTR desired_w_buf_size$[rbp]
mov r8, QWORD PTR desired_w_buf$[rbp]
mov rdx, QWORD PTR actual_w_buf_size$[rbp]
lea rcx, QWORD PTR actual_w_buf$[rbp]
call _EQUALS_MEMORY
test eax, eax
jne SHORT $LN11@TEST_Multi
mov DWORD PTR tv158[rbp], 1
jmp SHORT $LN12@TEST_Multi
$LN11@TEST_Multi:
mov DWORD PTR tv158[rbp], 0
$LN12@TEST_Multi:
mov r8d, 4
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@DCMGDJFA@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAL?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
lea r9, OFFSET FLAT:??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@
mov r8d, DWORD PTR tv158[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 125 : if (w_result == PMC_STATUS_OK)
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN2@TEST_Multi
; 126 : ep->Dispose(w);
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN2@TEST_Multi:
; 127 : if (u_result == PMC_STATUS_OK)
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN3@TEST_Multi
; 128 : ep->Dispose(u);
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN3@TEST_Multi:
; 129 : }
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:TEST_Multiply_X_L$rtcFrameData
call _RTC_CheckStackVars
mov rcx, QWORD PTR __$ArrayPad$[rbp]
xor rcx, rbp
call __security_check_cookie
lea rsp, QWORD PTR [rbp+696]
pop rdi
pop rbp
ret 0
TEST_Multiply_X_L ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\test_op_multiply.c
; COMDAT TEST_Multiply_X_I
_TEXT SEGMENT
u$ = 8
w$ = 40
actual_w_buf$ = 80
actual_w_buf_size$ = 360
result$ = 388
u_result$ = 420
w_result$ = 452
tv158 = 660
tv143 = 660
tv92 = 660
tv74 = 660
tv132 = 664
tv82 = 664
tv64 = 664
__$ArrayPad$ = 672
env$ = 720
ep$ = 728
no$ = 736
u_buf$ = 744
u_buf_size$ = 752
v$ = 760
desired_w_buf$ = 768
desired_w_buf_size$ = 776
TEST_Multiply_X_I PROC ; COMDAT
; 94 : {
$LN13:
mov QWORD PTR [rsp+32], r9
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 728 ; 000002d8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 182 ; 000000b6H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+760]
mov rax, QWORD PTR __security_cookie
xor rax, rbp
mov QWORD PTR __$ArrayPad$[rbp], rax
lea rcx, OFFSET FLAT:__9E9C72DE_test_op_multiply@c
call __CheckForDebuggerJustMyCode
; 95 : PMC_HANDLE_SINT u;
; 96 : PMC_HANDLE_SINT w;
; 97 : unsigned char actual_w_buf[256];
; 98 : size_t actual_w_buf_size;
; 99 : PMC_STATUS_CODE result;
; 100 : PMC_STATUS_CODE u_result;
; 101 : PMC_STATUS_CODE w_result;
; 102 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_I (%d.%d)", no, 1), (u_result = ep->FromByteArray(u_buf, u_buf_size, &u)) == PMC_STATUS_OK, FormatTestMesssage(L"FromByteArrayの復帰コードが期待通りではない(%d)", u_result));
lea r8, QWORD PTR u$[rbp]
mov rdx, QWORD PTR u_buf_size$[rbp]
mov rcx, QWORD PTR u_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+608]
mov DWORD PTR u_result$[rbp], eax
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN5@TEST_Multi
mov DWORD PTR tv74[rbp], 1
jmp SHORT $LN6@TEST_Multi
$LN5@TEST_Multi:
mov DWORD PTR tv74[rbp], 0
$LN6@TEST_Multi:
mov edx, DWORD PTR u_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv64[rbp], rax
mov r8d, 1
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@BJEMOJEP@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv64[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv74[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 103 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_I (%d.%d)", no, 2), (w_result = ep->Multiply_X_I(u, v, &w)) == PMC_STATUS_OK, FormatTestMesssage(L"Multiply_X_Iの復帰コードが期待通りではない(%d)", w_result));
lea r8, QWORD PTR w$[rbp]
mov edx, DWORD PTR v$[rbp]
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+800]
mov DWORD PTR w_result$[rbp], eax
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN7@TEST_Multi
mov DWORD PTR tv92[rbp], 1
jmp SHORT $LN8@TEST_Multi
$LN7@TEST_Multi:
mov DWORD PTR tv92[rbp], 0
$LN8@TEST_Multi:
mov edx, DWORD PTR w_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EA@ODIMHHCB@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AAn?$PP?$KJ?$AA0@
call FormatTestMesssage
mov QWORD PTR tv82[rbp], rax
mov r8d, 2
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@BJEMOJEP@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv82[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv92[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 104 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_I (%d.%d)", no, 3), (result = ep->ToByteArray(w, actual_w_buf, sizeof(actual_w_buf), &actual_w_buf_size)) == PMC_STATUS_OK, FormatTestMesssage(L"ToByteArrayの復帰コードが期待通りではない(%d)", result));
lea r9, QWORD PTR actual_w_buf_size$[rbp]
mov r8d, 256 ; 00000100H
lea rdx, QWORD PTR actual_w_buf$[rbp]
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+616]
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
jne SHORT $LN9@TEST_Multi
mov DWORD PTR tv143[rbp], 1
jmp SHORT $LN10@TEST_Multi
$LN9@TEST_Multi:
mov DWORD PTR tv143[rbp], 0
$LN10@TEST_Multi:
mov edx, DWORD PTR result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@
call FormatTestMesssage
mov QWORD PTR tv132[rbp], rax
mov r8d, 3
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@BJEMOJEP@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv132[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv143[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 105 : TEST_Assert(env, FormatTestLabel(L"Multiply_X_I (%d.%d)", no, 4), _EQUALS_MEMORY(actual_w_buf, actual_w_buf_size, desired_w_buf, desired_w_buf_size) == 0, L"データの内容が一致しない");
mov r9, QWORD PTR desired_w_buf_size$[rbp]
mov r8, QWORD PTR desired_w_buf$[rbp]
mov rdx, QWORD PTR actual_w_buf_size$[rbp]
lea rcx, QWORD PTR actual_w_buf$[rbp]
call _EQUALS_MEMORY
test eax, eax
jne SHORT $LN11@TEST_Multi
mov DWORD PTR tv158[rbp], 1
jmp SHORT $LN12@TEST_Multi
$LN11@TEST_Multi:
mov DWORD PTR tv158[rbp], 0
$LN12@TEST_Multi:
mov r8d, 4
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@BJEMOJEP@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAX?$AA_?$AAI?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
lea r9, OFFSET FLAT:??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@
mov r8d, DWORD PTR tv158[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 106 : if (w_result == PMC_STATUS_OK)
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN2@TEST_Multi
; 107 : ep->Dispose(w);
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN2@TEST_Multi:
; 108 : if (u_result == PMC_STATUS_OK)
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN3@TEST_Multi
; 109 : ep->Dispose(u);
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN3@TEST_Multi:
; 110 : }
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:TEST_Multiply_X_I$rtcFrameData
call _RTC_CheckStackVars
mov rcx, QWORD PTR __$ArrayPad$[rbp]
xor rcx, rbp
call __security_check_cookie
lea rsp, QWORD PTR [rbp+696]
pop rdi
pop rbp
ret 0
TEST_Multiply_X_I ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\test_op_multiply.c
; COMDAT TEST_Multiply_UX_X
_TEXT SEGMENT
u$ = 8
v$ = 40
w$ = 72
actual_w_buf$ = 112
actual_w_buf_size$ = 392
result$ = 420
u_result$ = 452
v_result$ = 484
w_result$ = 516
tv176 = 916
tv161 = 916
tv142 = 916
tv92 = 916
tv74 = 916
tv150 = 920
tv132 = 920
tv82 = 920
tv64 = 920
__$ArrayPad$ = 928
env$ = 976
ep$ = 984
no$ = 992
u_buf$ = 1000
u_buf_size$ = 1008
v_buf$ = 1016
v_buf_size$ = 1024
desired_w_buf$ = 1032
desired_w_buf_size$ = 1040
TEST_Multiply_UX_X PROC ; COMDAT
; 70 : {
$LN16:
mov QWORD PTR [rsp+32], r9
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 984 ; 000003d8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 246 ; 000000f6H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+1016]
mov rax, QWORD PTR __security_cookie
xor rax, rbp
mov QWORD PTR __$ArrayPad$[rbp], rax
lea rcx, OFFSET FLAT:__9E9C72DE_test_op_multiply@c
call __CheckForDebuggerJustMyCode
; 71 : PMC_HANDLE_UINT u;
; 72 : PMC_HANDLE_SINT v;
; 73 : PMC_HANDLE_SINT w;
; 74 : unsigned char actual_w_buf[256];
; 75 : size_t actual_w_buf_size;
; 76 : PMC_STATUS_CODE result;
; 77 : PMC_STATUS_CODE u_result;
; 78 : PMC_STATUS_CODE v_result;
; 79 : PMC_STATUS_CODE w_result;
; 80 : TEST_Assert(env, FormatTestLabel(L"Multiply_UX_X (%d.%d)", no, 1), (u_result = ep->UINT_ENTRY_POINTS.FromByteArray(u_buf, u_buf_size, &u)) == PMC_STATUS_OK, FormatTestMesssage(L"FromByteArrayの復帰コードが期待通りではない(%d)", u_result));
lea r8, QWORD PTR u$[rbp]
mov rdx, QWORD PTR u_buf_size$[rbp]
mov rcx, QWORD PTR u_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+48]
mov DWORD PTR u_result$[rbp], eax
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN6@TEST_Multi
mov DWORD PTR tv74[rbp], 1
jmp SHORT $LN7@TEST_Multi
$LN6@TEST_Multi:
mov DWORD PTR tv74[rbp], 0
$LN7@TEST_Multi:
mov edx, DWORD PTR u_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv64[rbp], rax
mov r8d, 1
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@OFECMCFC@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
mov rcx, QWORD PTR tv64[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv74[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 81 : TEST_Assert(env, FormatTestLabel(L"Multiply_UX_X (%d.%d)", no, 2), (v_result = ep->FromByteArray(v_buf, v_buf_size, &v)) == PMC_STATUS_OK, FormatTestMesssage(L"FromByteArrayの復帰コードが期待通りではない(%d)", v_result));
lea r8, QWORD PTR v$[rbp]
mov rdx, QWORD PTR v_buf_size$[rbp]
mov rcx, QWORD PTR v_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+608]
mov DWORD PTR v_result$[rbp], eax
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN8@TEST_Multi
mov DWORD PTR tv92[rbp], 1
jmp SHORT $LN9@TEST_Multi
$LN8@TEST_Multi:
mov DWORD PTR tv92[rbp], 0
$LN9@TEST_Multi:
mov edx, DWORD PTR v_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv82[rbp], rax
mov r8d, 2
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@OFECMCFC@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
mov rcx, QWORD PTR tv82[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv92[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 82 : TEST_Assert(env, FormatTestLabel(L"Multiply_UX_X (%d.%d)", no, 3), (w_result = ep->Multiply_UX_X(u, v, &w)) == PMC_STATUS_OK, FormatTestMesssage(L"Multiply_UX_Xの復帰コードが期待通りではない(%d)", w_result));
lea r8, QWORD PTR w$[rbp]
mov rdx, QWORD PTR v$[rbp]
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+792]
mov DWORD PTR w_result$[rbp], eax
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN10@TEST_Multi
mov DWORD PTR tv142[rbp], 1
jmp SHORT $LN11@TEST_Multi
$LN10@TEST_Multi:
mov DWORD PTR tv142[rbp], 0
$LN11@TEST_Multi:
mov edx, DWORD PTR w_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@GKHLGAIL@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv132[rbp], rax
mov r8d, 3
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@OFECMCFC@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
mov rcx, QWORD PTR tv132[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv142[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 83 : TEST_Assert(env, FormatTestLabel(L"Multiply_UX_X (%d.%d)", no, 4), (result = ep->ToByteArray(w, actual_w_buf, sizeof(actual_w_buf), &actual_w_buf_size)) == PMC_STATUS_OK, FormatTestMesssage(L"ToByteArrayの復帰コードが期待通りではない(%d)", result));
lea r9, QWORD PTR actual_w_buf_size$[rbp]
mov r8d, 256 ; 00000100H
lea rdx, QWORD PTR actual_w_buf$[rbp]
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+616]
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
jne SHORT $LN12@TEST_Multi
mov DWORD PTR tv161[rbp], 1
jmp SHORT $LN13@TEST_Multi
$LN12@TEST_Multi:
mov DWORD PTR tv161[rbp], 0
$LN13@TEST_Multi:
mov edx, DWORD PTR result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@
call FormatTestMesssage
mov QWORD PTR tv150[rbp], rax
mov r8d, 4
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@OFECMCFC@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
mov rcx, QWORD PTR tv150[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv161[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 84 : TEST_Assert(env, FormatTestLabel(L"Multiply_UX_X (%d.%d)", no, 5), _EQUALS_MEMORY(actual_w_buf, actual_w_buf_size, desired_w_buf, desired_w_buf_size) == 0, L"データの内容が一致しない");
mov r9, QWORD PTR desired_w_buf_size$[rbp]
mov r8, QWORD PTR desired_w_buf$[rbp]
mov rdx, QWORD PTR actual_w_buf_size$[rbp]
lea rcx, QWORD PTR actual_w_buf$[rbp]
call _EQUALS_MEMORY
test eax, eax
jne SHORT $LN14@TEST_Multi
mov DWORD PTR tv176[rbp], 1
jmp SHORT $LN15@TEST_Multi
$LN14@TEST_Multi:
mov DWORD PTR tv176[rbp], 0
$LN15@TEST_Multi:
mov r8d, 5
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CM@OFECMCFC@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAU?$AAX?$AA_?$AAX?$AA?5?$AA?$CI@
call FormatTestLabel
lea r9, OFFSET FLAT:??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@
mov r8d, DWORD PTR tv176[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 85 : if (w_result == PMC_STATUS_OK)
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN2@TEST_Multi
; 86 : ep->Dispose(w);
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN2@TEST_Multi:
; 87 : if (v_result == PMC_STATUS_OK)
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN3@TEST_Multi
; 88 : ep->Dispose(v);
mov rcx, QWORD PTR v$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN3@TEST_Multi:
; 89 : if (u_result == PMC_STATUS_OK)
cmp DWORD PTR u_result$[rbp], 0
jne SHORT $LN4@TEST_Multi
; 90 : ep->UINT_ENTRY_POINTS.Dispose(u);
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+32]
$LN4@TEST_Multi:
; 91 : }
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:TEST_Multiply_UX_X$rtcFrameData
call _RTC_CheckStackVars
mov rcx, QWORD PTR __$ArrayPad$[rbp]
xor rcx, rbp
call __security_check_cookie
lea rsp, QWORD PTR [rbp+952]
pop rdi
pop rbp
ret 0
TEST_Multiply_UX_X ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\test_op_multiply.c
; COMDAT TEST_Multiply_L_X
_TEXT SEGMENT
v$ = 8
w$ = 40
actual_w_buf$ = 80
actual_w_buf_size$ = 360
result$ = 388
v_result$ = 420
w_result$ = 452
tv158 = 660
tv143 = 660
tv92 = 660
tv74 = 660
tv132 = 664
tv82 = 664
tv64 = 664
__$ArrayPad$ = 672
env$ = 720
ep$ = 728
no$ = 736
u$ = 744
v_buf$ = 752
v_buf_size$ = 760
desired_w_buf$ = 768
desired_w_buf_size$ = 776
TEST_Multiply_L_X PROC ; COMDAT
; 51 : {
$LN13:
mov QWORD PTR [rsp+32], r9
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 728 ; 000002d8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 182 ; 000000b6H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+760]
mov rax, QWORD PTR __security_cookie
xor rax, rbp
mov QWORD PTR __$ArrayPad$[rbp], rax
lea rcx, OFFSET FLAT:__9E9C72DE_test_op_multiply@c
call __CheckForDebuggerJustMyCode
; 52 : PMC_HANDLE_SINT v;
; 53 : PMC_HANDLE_SINT w;
; 54 : unsigned char actual_w_buf[256];
; 55 : size_t actual_w_buf_size;
; 56 : PMC_STATUS_CODE result;
; 57 : PMC_STATUS_CODE v_result;
; 58 : PMC_STATUS_CODE w_result;
; 59 : TEST_Assert(env, FormatTestLabel(L"Multiply_L_X (%d.%d)", no, 1), (v_result = ep->FromByteArray(v_buf, v_buf_size, &v)) == PMC_STATUS_OK, FormatTestMesssage(L"FromByteArrayの復帰コードが期待通りではない(%d)", v_result));
lea r8, QWORD PTR v$[rbp]
mov rdx, QWORD PTR v_buf_size$[rbp]
mov rcx, QWORD PTR v_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+608]
mov DWORD PTR v_result$[rbp], eax
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN5@TEST_Multi
mov DWORD PTR tv74[rbp], 1
jmp SHORT $LN6@TEST_Multi
$LN5@TEST_Multi:
mov DWORD PTR tv74[rbp], 0
$LN6@TEST_Multi:
mov edx, DWORD PTR v_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv64[rbp], rax
mov r8d, 1
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@IKIAJIEO@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv64[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv74[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 60 : TEST_Assert(env, FormatTestLabel(L"Multiply_L_X (%d.%d)", no, 2), (w_result = ep->Multiply_L_X(u, v, &w)) == PMC_STATUS_OK, FormatTestMesssage(L"Multiply_L_Xの復帰コードが期待通りではない(%d)", w_result));
lea r8, QWORD PTR w$[rbp]
mov rdx, QWORD PTR v$[rbp]
mov rcx, QWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+784]
mov DWORD PTR w_result$[rbp], eax
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN7@TEST_Multi
mov DWORD PTR tv92[rbp], 1
jmp SHORT $LN8@TEST_Multi
$LN7@TEST_Multi:
mov DWORD PTR tv92[rbp], 0
$LN8@TEST_Multi:
mov edx, DWORD PTR w_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EA@OEIJFCJI@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@
call FormatTestMesssage
mov QWORD PTR tv82[rbp], rax
mov r8d, 2
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@IKIAJIEO@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv82[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv92[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 61 : TEST_Assert(env, FormatTestLabel(L"Multiply_L_X (%d.%d)", no, 3), (result = ep->ToByteArray(w, actual_w_buf, sizeof(actual_w_buf), &actual_w_buf_size)) == PMC_STATUS_OK, FormatTestMesssage(L"ToByteArrayの復帰コードが期待通りではない(%d)", result));
lea r9, QWORD PTR actual_w_buf_size$[rbp]
mov r8d, 256 ; 00000100H
lea rdx, QWORD PTR actual_w_buf$[rbp]
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+616]
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
jne SHORT $LN9@TEST_Multi
mov DWORD PTR tv143[rbp], 1
jmp SHORT $LN10@TEST_Multi
$LN9@TEST_Multi:
mov DWORD PTR tv143[rbp], 0
$LN10@TEST_Multi:
mov edx, DWORD PTR result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@
call FormatTestMesssage
mov QWORD PTR tv132[rbp], rax
mov r8d, 3
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@IKIAJIEO@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv132[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv143[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 62 : TEST_Assert(env, FormatTestLabel(L"Multiply_L_X (%d.%d)", no, 4), _EQUALS_MEMORY(actual_w_buf, actual_w_buf_size, desired_w_buf, desired_w_buf_size) == 0, L"データの内容が一致しない");
mov r9, QWORD PTR desired_w_buf_size$[rbp]
mov r8, QWORD PTR desired_w_buf$[rbp]
mov rdx, QWORD PTR actual_w_buf_size$[rbp]
lea rcx, QWORD PTR actual_w_buf$[rbp]
call _EQUALS_MEMORY
test eax, eax
jne SHORT $LN11@TEST_Multi
mov DWORD PTR tv158[rbp], 1
jmp SHORT $LN12@TEST_Multi
$LN11@TEST_Multi:
mov DWORD PTR tv158[rbp], 0
$LN12@TEST_Multi:
mov r8d, 4
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@IKIAJIEO@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAL?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
lea r9, OFFSET FLAT:??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@
mov r8d, DWORD PTR tv158[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 63 : if (w_result == PMC_STATUS_OK)
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN2@TEST_Multi
; 64 : ep->Dispose(w);
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN2@TEST_Multi:
; 65 : if (v_result == PMC_STATUS_OK)
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN3@TEST_Multi
; 66 : ep->Dispose(v);
mov rcx, QWORD PTR v$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN3@TEST_Multi:
; 67 : }
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:TEST_Multiply_L_X$rtcFrameData
call _RTC_CheckStackVars
mov rcx, QWORD PTR __$ArrayPad$[rbp]
xor rcx, rbp
call __security_check_cookie
lea rsp, QWORD PTR [rbp+696]
pop rdi
pop rbp
ret 0
TEST_Multiply_L_X ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.sint\palmtree.math.core.sint\test_op_multiply.c
; COMDAT TEST_Multiply_I_X
_TEXT SEGMENT
v$ = 8
w$ = 40
actual_w_buf$ = 80
actual_w_buf_size$ = 360
result$ = 388
v_result$ = 420
w_result$ = 452
tv158 = 660
tv143 = 660
tv92 = 660
tv74 = 660
tv132 = 664
tv82 = 664
tv64 = 664
__$ArrayPad$ = 672
env$ = 720
ep$ = 728
no$ = 736
u$ = 744
v_buf$ = 752
v_buf_size$ = 760
desired_w_buf$ = 768
desired_w_buf_size$ = 776
TEST_Multiply_I_X PROC ; COMDAT
; 32 : {
$LN13:
mov DWORD PTR [rsp+32], r9d
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
push rbp
push rdi
sub rsp, 728 ; 000002d8H
lea rbp, QWORD PTR [rsp+32]
mov rdi, rsp
mov ecx, 182 ; 000000b6H
mov eax, -858993460 ; ccccccccH
rep stosd
mov rcx, QWORD PTR [rsp+760]
mov rax, QWORD PTR __security_cookie
xor rax, rbp
mov QWORD PTR __$ArrayPad$[rbp], rax
lea rcx, OFFSET FLAT:__9E9C72DE_test_op_multiply@c
call __CheckForDebuggerJustMyCode
; 33 : PMC_HANDLE_SINT v;
; 34 : PMC_HANDLE_SINT w;
; 35 : unsigned char actual_w_buf[256];
; 36 : size_t actual_w_buf_size;
; 37 : PMC_STATUS_CODE result;
; 38 : PMC_STATUS_CODE v_result;
; 39 : PMC_STATUS_CODE w_result;
; 40 : TEST_Assert(env, FormatTestLabel(L"Multiply_I_X (%d.%d)", no, 1), (v_result = ep->FromByteArray(v_buf, v_buf_size, &v)) == PMC_STATUS_OK, FormatTestMesssage(L"FromByteArrayの復帰コードが期待通りではない(%d)", v_result));
lea r8, QWORD PTR v$[rbp]
mov rdx, QWORD PTR v_buf_size$[rbp]
mov rcx, QWORD PTR v_buf$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+608]
mov DWORD PTR v_result$[rbp], eax
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN5@TEST_Multi
mov DWORD PTR tv74[rbp], 1
jmp SHORT $LN6@TEST_Multi
$LN5@TEST_Multi:
mov DWORD PTR tv74[rbp], 0
$LN6@TEST_Multi:
mov edx, DWORD PTR v_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EC@NPMCAPKO@?$AAF?$AAr?$AAo?$AAm?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ@
call FormatTestMesssage
mov QWORD PTR tv64[rbp], rax
mov r8d, 1
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@GCKDGDDG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv64[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv74[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 41 : TEST_Assert(env, FormatTestLabel(L"Multiply_I_X (%d.%d)", no, 2), (w_result = ep->Multiply_I_X(u, v, &w)) == PMC_STATUS_OK, FormatTestMesssage(L"Multiply_I_Xの復帰コードが期待通りではない(%d)", w_result));
lea r8, QWORD PTR w$[rbp]
mov rdx, QWORD PTR v$[rbp]
mov ecx, DWORD PTR u$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+776]
mov DWORD PTR w_result$[rbp], eax
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN7@TEST_Multi
mov DWORD PTR tv92[rbp], 1
jmp SHORT $LN8@TEST_Multi
$LN7@TEST_Multi:
mov DWORD PTR tv92[rbp], 0
$LN8@TEST_Multi:
mov edx, DWORD PTR w_result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1EA@LPBHKBAG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AAn?$PP?$KJ?$AA0@
call FormatTestMesssage
mov QWORD PTR tv82[rbp], rax
mov r8d, 2
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@GCKDGDDG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv82[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv92[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 42 : TEST_Assert(env, FormatTestLabel(L"Multiply_I_X (%d.%d)", no, 3), (result = ep->ToByteArray(w, actual_w_buf, sizeof(actual_w_buf), &actual_w_buf_size)) == PMC_STATUS_OK, FormatTestMesssage(L"ToByteArrayの復帰コードが期待通りではない(%d)", result));
lea r9, QWORD PTR actual_w_buf_size$[rbp]
mov r8d, 256 ; 00000100H
lea rdx, QWORD PTR actual_w_buf$[rbp]
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+616]
mov DWORD PTR result$[rbp], eax
cmp DWORD PTR result$[rbp], 0
jne SHORT $LN9@TEST_Multi
mov DWORD PTR tv143[rbp], 1
jmp SHORT $LN10@TEST_Multi
$LN9@TEST_Multi:
mov DWORD PTR tv143[rbp], 0
$LN10@TEST_Multi:
mov edx, DWORD PTR result$[rbp]
lea rcx, OFFSET FLAT:??_C@_1DO@DOHJEMND@?$AAT?$AAo?$AAB?$AAy?$AAt?$AAe?$AAA?$AAr?$AAr?$AAa?$AAy?$AAn?$PP?$KJ?$AA0?$PP?$LD@
call FormatTestMesssage
mov QWORD PTR tv132[rbp], rax
mov r8d, 3
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@GCKDGDDG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
mov rcx, QWORD PTR tv132[rbp]
mov r9, rcx
mov r8d, DWORD PTR tv143[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 43 : TEST_Assert(env, FormatTestLabel(L"Multiply_I_X (%d.%d)", no, 4), _EQUALS_MEMORY(actual_w_buf, actual_w_buf_size, desired_w_buf, desired_w_buf_size) == 0, L"データの内容が一致しない");
mov r9, QWORD PTR desired_w_buf_size$[rbp]
mov r8, QWORD PTR desired_w_buf$[rbp]
mov rdx, QWORD PTR actual_w_buf_size$[rbp]
lea rcx, QWORD PTR actual_w_buf$[rbp]
call _EQUALS_MEMORY
test eax, eax
jne SHORT $LN11@TEST_Multi
mov DWORD PTR tv158[rbp], 1
jmp SHORT $LN12@TEST_Multi
$LN11@TEST_Multi:
mov DWORD PTR tv158[rbp], 0
$LN12@TEST_Multi:
mov r8d, 4
mov edx, DWORD PTR no$[rbp]
lea rcx, OFFSET FLAT:??_C@_1CK@GCKDGDDG@?$AAM?$AAu?$AAl?$AAt?$AAi?$AAp?$AAl?$AAy?$AA_?$AAI?$AA_?$AAX?$AA?5?$AA?$CI?$AA?$CF@
call FormatTestLabel
lea r9, OFFSET FLAT:??_C@_1BK@CBDJCOBM@?$PP?G?$PP?$PM?$PP?$LP?$AAn?$PP?$IF?$PP?$LJ?$AAL?$AA?$AA?$PP?t?$AAW?$AAj?$AAD@
mov r8d, DWORD PTR tv158[rbp]
mov rdx, rax
mov rcx, QWORD PTR env$[rbp]
call TEST_Assert
; 44 : if (w_result == PMC_STATUS_OK)
cmp DWORD PTR w_result$[rbp], 0
jne SHORT $LN2@TEST_Multi
; 45 : ep->Dispose(w);
mov rcx, QWORD PTR w$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN2@TEST_Multi:
; 46 : if (v_result == PMC_STATUS_OK)
cmp DWORD PTR v_result$[rbp], 0
jne SHORT $LN3@TEST_Multi
; 47 : ep->Dispose(v);
mov rcx, QWORD PTR v$[rbp]
mov rax, QWORD PTR ep$[rbp]
call QWORD PTR [rax+592]
$LN3@TEST_Multi:
; 48 : }
lea rcx, QWORD PTR [rbp-32]
lea rdx, OFFSET FLAT:TEST_Multiply_I_X$rtcFrameData
call _RTC_CheckStackVars
mov rcx, QWORD PTR __$ArrayPad$[rbp]
xor rcx, rbp
call __security_check_cookie
lea rsp, QWORD PTR [rbp+696]
pop rdi
pop rbp
ret 0
TEST_Multiply_I_X ENDP
_TEXT ENDS
END
|
;****************************************************************************************
; File Name : aic_test_main.asm
; Author : Sunil Kamath
;
; Version : 2
; Date : 30 April 2008
; Update : with Ping Pong Buffering
;
; Description : Code for playback using I2S2 and DMA1 to AIC3254
;
;****************************************************************************************
.mmregs
;.global BOOT_START, _SETUP, no_isr, i2c_PutData8, Config_DMA, _AIC3254_init
;.global ISR_DMA, ISR_XMT2, ISR_RCV2
.global _AIC3254_init
.include "lpva200.inc"
.text
;.copy "setup_da200.inc" ; setup code
; .C54CM_off
.CPL_off
.ARMS_off
.C54CM_off
;****************************************************************************************
; Define constants
;****************************************************************************************
I2C_CLKDIV_VAL .set 35
AIC3254_I2C_ADDR .set 0x18
DO_I2S_MASTER .set 0 ; DO_I2S_MASTER = 1 to use I2S in master mode
; DO_I2S_MASTER = 0 to use I2S in slave mode
DO_48K .set 1 ; DO_48K = 1 to use 48 KHz sampling frequency
; DO_48K = 0 to use 12 KHz sampling frequency
;****************************************************************************************
.text
;****************************************************************************************
;****************************************************************************************
; Configure AIC3254
;****************************************************************************************
_AIC3254_init:
;****************************************************************************************
; Configure I2C
;****************************************************************************************
.if 1
; Reset all Modules
;*port(#0x1C04) = #0x0020;
;*port(#0x1C05) = #0x00FF;
; Set GPIO26 as output
T0 = *port(#0x1C00)
T0 |= #0x003F
*port(#0x1C00) = T0
repeat(#9)
NOP_16
T0 = *port(#0x1C07)
T0 |= #0x0400
*port(#0x1C07) = T0
repeat(#9)
NOP_16
; Set GPIO26 = 0
T0 = *port(#0x1C0B)
T0 &= #0xFBFF
*port(#0x1C0B) = T0
repeat(#99)
NOP_16
; Set GPIO26 = 1
T0 = *port(#0x1C0B)
T0 |= #0x0400
*port(#0x1C0B) = T0
repeat(#9)
NOP_16
; Initialize IIC
*port(#I2C_PSC) = #0x0004 ; Set prescaler to divide by 4+1=5
; I2C CLK = 49.156 MHZ / 5 = 9.8312 MHz
*port(#I2C_CLKL) = #(I2C_CLKDIV_VAL) ; CPU clock divided by 35+5 for low period
*port(#I2C_CLKH) = #(I2C_CLKDIV_VAL) ; CPU clock divided by 35+5 for high period
; SCL_High_Period = (1/9.8312M) *(35+5) = 4.07us
; SCL_Low_Period = (1/9.8312) *(35+5) = 4.07us
; 1/(4.07u+4.07u) = 122.9 KHz
*port(#I2C_OAR) = #0x002F ; I2C Address - 5515 is set to 01011xx
*port(#I2C_MDR) = #0x0400 ; Place I2C module in reset
repeat(#(8999))
NOP_16
*port(#I2C_MDR) = #0x0420 ; master, transmitter,out of reset, 7-bit address
*port(#I2C_EMDR) = #0x000 ; Backward compatibility mode free data mode disabled
*port(#I2C_SAR) = #AIC3254_I2C_ADDR ; I2C Address for AIC3254
;****************************************************************************************
; Configure AIC3254
;****************************************************************************************
; Point to page 0
AC1 = #0
AR1 = #0x0
call i2c_WriteData8
;reset codec
AC1 = #1
AR1 = #0x1
call i2c_WriteData8
; Point to page 1
AC1 = #0
AR1 = #0x1
call i2c_WriteData8
AC1 = #0
; call i2c_ReadData8
;Disable crude AVDD generation from DVDD
AC1 = #1
AR1 = #0x08
call i2c_WriteData8
AC1 = #1
; call i2c_ReadData8
;Enable Analog Blocks and LDO
AC1 = #2
AR1 = #0x01
call i2c_WriteData8
;***********************************************************************
;* PLL and Clocks config and Power Up
;***********************************************************************
; Point to page 0
AC1 = #0
AR1 = #0x0
call i2c_WriteData8
.if (!DO_I2S_MASTER) ;AIC is master running off of 12 MHz crystal
;BCLK and WCLK is set as op to AIC3254(Master)
AC1 = #27
AR1 = #0x0D
call i2c_WriteData8
;PLL setting: PLLCLK <- MCLK and CODEC_CLKIN <-PLL CLK
AC1 = #4
AR1 = #0x03
call i2c_WriteData8
;PLL setting: J=8
AC1 = #6
AR1 = #0x08
call i2c_WriteData8
;PLL setting: HI_BYTE(D) for D=0x0780 (or 1920 decimal)
AC1 = #7
AR1 = #0x07
call i2c_WriteData8
;PLL setting: LO_BYTE(D) for D=0x0780
AC1 = #8
AR1 = #0x80
call i2c_WriteData8
.if (DO_48K) ;for 48 KHz sampling
;For 32 bit clocks per frame in Master mode ONLY
;BCLK=DAC_CLK/N =(12288000/8) = 1.536MHz = 32*fs
AC1 = 30
AR1 = 0x88
call i2c_WriteData8
.else ;for 12 KHz sampling
;For 32 bit clocks per frame in Master mode ONLY
;BCLK=DAC_CLK/N =(12288000/32) = 384 KHz = 32*fs
AC1 = 30
AR1 = 0xA0
call i2c_WriteData8
.endif
;PLL setting: Power up PLL, P=1 and R=1
AC1 = #5
AR1 = #0x91
call i2c_WriteData8
.else ;For AIC Slave running off of 768 kHz or 1.536 MHz BCLK supplied by I2S
;BCLK and WCLK is set as ip to AIC3254(slave)
AC1 = #27
AR1 = #0x00
call i2c_WriteData8
;PLL setting: PLLCLK <- BCLK and CODEC_CLKIN <-PLL CLK
AC1 = #4
AR1 = #0x07
call i2c_WriteData8
;PLL setting: J=32
AC1 = #6
AR1 = #0x20
call i2c_WriteData8
;PLL setting: HI_BYTE(D) for D=0x0 (or 0 decimal)
AC1 = #7
AR1 = #0x00
call i2c_WriteData8
;PLL setting: LO_BYTE(D) for D=0x0
AC1 = #8
AR1 = #0x00
call i2c_WriteData8
.if (DO_48K) ;for 48 KHz sampling
;PLL setting: Power up PLL, P=1 and R=2
AC1 = #5
AR1 = #0x92
call i2c_WriteData8
.else ;for 12 KHz sampling
;PLL setting: Power up PLL, P=1 and R=4
AC1 = #5
AR1 = #0x94
call i2c_WriteData8
.endif
.endif
.if (DO_48K) ;for 48 KHz sampling
;Hi_Byte(DOSR) for DOSR = 128 decimal or 0x0080 DAC oversamppling
AC1 = #13
AR1 = #0x00
call i2c_WriteData8
;Lo_Byte(DOSR) for DOSR = 128 decimal or 0x0080
AC1 = #14
AR1 = #0x80
call i2c_WriteData8
.else ;for 12 KHz sampling
;Hi_Byte(DOSR) for DOSR = 512 decimal or 0x0200 DAC oversamppling
AC1 = #13
AR1 = #0x02
call i2c_WriteData8
;Lo_Byte(DOSR) for DOSR = 512 decimal or 0x0200
AC1 = #14
AR1 = #0x00
call i2c_WriteData8
.endif
;AOSR for AOSR = 128 decimal or 0x0080 for decimation filters 1 to 6
AC1 = #20
AR1 = #0x80
call i2c_WriteData8
;Power up NDAC and set NDAC value to 8
AC1 = #11
AR1 = #0x88
call i2c_WriteData8
;Power up MDAC and set MDAC value to 2
AC1 = #12
AR1 = #0x82
call i2c_WriteData8
;Power up NADC and set NADC value to 8
AC1 = #18
AR1 = #0x88
call i2c_WriteData8
.if (DO_48K) ;for 48 KHz sampling
;Power up MADC and set MADC value to 2
AC1 = #19
AR1 = #0x82
call i2c_WriteData8
.else ;for 12 KHz sampling
;Power up MADC and set MADC value to 8
AC1 = #19
AR1 = #0x88
call i2c_WriteData8
.endif
;***********************************************************************
;* DAC ROUTING and Power Up
;***********************************************************************
;Select page 1
AC1 = 0
AR1 = 0x01
call i2c_WriteData8
;LDAC AFIR routed to HPL
AC1 = 0xC
AR1 = 0x08
call i2c_WriteData8
;RDAC AFIR routed to HPR
AC1 = 0xD
AR1 = 0x08
call i2c_WriteData8
;Select page 0
AC1 = 0
AR1 = 0x00
call i2c_WriteData8
;Left vol=right vol
AC1 = 64
AR1 = 0x02
call i2c_WriteData8
;Left DAC gain to 0dB VOL; Right tracks Left
AC1 = 65
AR1 = 0x00
call i2c_WriteData8
;Power up left,right data paths and set channel
AC1 = 63
AR1 = 0xD4
call i2c_WriteData8
;Select page 1
AC1 = 0
AR1 = 0x01
call i2c_WriteData8
;Unmute HPL , 0dB gain
AC1 = 0x10
AR1 = 0x00
call i2c_WriteData8
;Unmute HPR , 0dB gain
AC1 = 0x11
AR1 = 0x00
call i2c_WriteData8
;Power up HPL,HPR
AC1 = 9
AR1 = 0x30
call i2c_WriteData8
;Select page 0
AC1 = 0
AR1 = 0x00
call i2c_WriteData8
@BRC0_L = #0x02FF || mmap()
localrepeat {
repeat(#0xFFFF)
NOP_16
NOP_16
}
;***********************************************************************
;* ADC ROUTING and Power Up
;***********************************************************************
;Select page 1
AC1 = #0
AR1 = #0x01
call i2c_WriteData8
.if 0 ;STEREO 2 Jacks are not connected properly on board A15
;IN3_L to LADC_P through 40 kohm
AC1 = #0x34
AR1 = #0x0C
call i2c_WriteData8
;IN3_R to RADC_P through 40 kohmm
AC1 = #0x37
AR1 = #0x0C
call i2c_WriteData8
.else ;STEREO 1 Jack
;IN2_L to LADC_P through 40 kohm
AC1 = #0x34
AR1 = #0x30
call i2c_WriteData8
;IN2_R to RADC_P through 40 kohmm
AC1 = #0x37
AR1 = #0x30
call i2c_WriteData8
.endif
;CM_1 (common mode) to LADC_M through 40 kohm
AC1 = #0x36
AR1 = #0x03
call i2c_WriteData8
;CM_1 (common mode) to RADC_M through 40 kohm
AC1 = #0x39
AR1 = #0xC0
call i2c_WriteData8
;MIC_PGA_L unmute
AC1 = #0x3B
AR1 = #0x00
call i2c_WriteData8
;MIC_PGA_R unmute
AC1 = #0x3C
AR1 = #0x00
call i2c_WriteData8
;Select page 0
AC1 = 0
AR1 = 0x00
call i2c_WriteData8
;Powerup Left and Right ADC
AC1 = 0x51
AR1 = 0xC0
call i2c_WriteData8
;Unmute Left and Right ADC
AC1 = 0x52
AR1 = 0x00
call i2c_WriteData8
;Dummy read
AC1 = 9
AR1 = 0xABAB
; call i2c_ReadData8
.endif
i2c_WriteData8:
; Data count register = 2 for 1)address + 2)data
*port(#I2C_CNT) = #0x0002
; Disable interrupts
*port(#I2C_IMR) = #0000
repeat(#99)
NOP_16
; Place I2C as transmitter
*port(#I2C_MDR) = #0010011000100000b ; Master transit with Start
;0~~~~~~~~~~~~~~~ NACK MOD - Master Receiver Mode:
; 1 -> the I2C sends NACK to transmitter during acknowledge cycle.
; 0 -> the I2C sends ACK to transmitter during acknowledge cycle.
;~0~~~~~~~~~~~~~~ FREE: 0-> Disable free-run 1 -> I2C runs free during debugger breakpoint.
;~~1~~~~~~~~~~~~~ STT - Start Condition Bit: 1 -> (master mode) generates start condition (STP = 0).
;~~~0~~~~~~~~~~~~ Reserved (?)
;~~~~1~~~~~~~~~~~ STP: Set to 1 to generate STOP condition.
;~~~~~1~~~~~~~~~~ MST: 1 -> I2C is in master mode.
;~~~~~~1~~~~~~~~~ TRX - Transmitter: 0 -> I2C is in receiver mode
; MST|TRX = 10 -> master receiver mode.
; MST|TRX = 11 -> master transmitter mode.
;~~~~~~~0~~~~~~~~ XA - Expanded Address: 0 -> 7-bit address mode, 1 -> 10-bit address mode.
;~~~~~~~~0~~~~~~~ RM - Repeat Mode
; RM|STT|STP = 110 -> (Re) Start: S-A-D-D-D-D... continuous
;~~~~~~~~~0~~~~~~ DLB - Digital Loopback Mode: 1 -> I2C in digital loopback mode.
;~~~~~~~~~~1~~~~~ nIRS: 1 -> I2C not in reset, 0 -> I2C in reset.
;~~~~~~~~~~~0~~~~ START byte mode: 0 -> I2C in not in START byte mode.
;~~~~~~~~~~~~0~~~ 1 -> I2C is in free data format (Figure 6d).
;~~~~~~~~~~~~~000 BC - Bit Count, number of bits which are yet to be received/tranmsitted.
repeat(#99)
NOP_16
call i2c_wait_for_slave_ack
call i2c_wait_for_tx
; Place Register Address in TX data register
AC1 = AC1 & #0x00FF
*port(#I2C_DXR) = AC1 ; place address
repeat(#99)
NOP_16
call i2c_wait_for_slave_ack
call i2c_wait_for_tx
AC2 = AR1 & 0x00FF
*port(#I2C_DXR) = AC2 ; write data
repeat(#99)
NOP_16
call i2c_wait_for_slave_ack
repeat(#99)
NOP_16
return
;****************************************************************************************
; i2c_ReadData8 - Reads 8-bits
;****************************************************************************************
i2c_ReadData8:
; Data count register = 2 for 1)address + 2)data
*port(#I2C_CNT) = #0x0000
; Place I2C as transmitter
*port(#I2C_MDR) = #0010001010100000b ; Master transit with Start
;0~~~~~~~~~~~~~~~ NACK MOD - Master Receiver Mode:
; 1 -> the I2C sends NACK to transmitter during acknowledge cycle.
; 0 -> the I2C sends ACK to transmitter during acknowledge cycle.
;~0~~~~~~~~~~~~~~ FREE: 0-> Disable free-run 1 -> I2C runs free during debugger breakpoint.
;~~1~~~~~~~~~~~~~ STT - Start Condition Bit: 1 -> (master mode) generates start condition (STP = 0).
;~~~0~~~~~~~~~~~~ Reserved (?)
;~~~~0~~~~~~~~~~~ STP: Set to 1 to generate STOP condition.
;~~~~~1~~~~~~~~~~ MST: 1 -> I2C is in master mode.
;~~~~~~1~~~~~~~~~ TRX - Transmitter: 0 -> I2C is in receiver mode
; MST|TRX = 10 -> master receiver mode.
; MST|TRX = 11 -> master transmitter mode.
;~~~~~~~0~~~~~~~~ XA - Expanded Address: 0 -> 7-bit address mode, 1 -> 10-bit address mode.
;~~~~~~~~1~~~~~~~ RM - Repeat Mode
; RM|STT|STP = 110 -> (Re) Start: S-A-D-D-D-D... continuous
;~~~~~~~~~0~~~~~~ DLB - Digital Loopback Mode: 1 -> I2C in digital loopback mode.
;~~~~~~~~~~1~~~~~ nIRS: 1 -> I2C not in reset, 0 -> I2C in reset.
;~~~~~~~~~~~0~~~~ START byte mode: 0 -> I2C in not in START byte mode.
;~~~~~~~~~~~~0~~~ 1 -> I2C is in free data format (Figure 6d).
;~~~~~~~~~~~~~000 BC - Bit Count, number of bits which are yet to be received/tranmsitted.
repeat(#99)
NOP_16
call i2c_wait_for_slave_ack
call i2c_wait_for_tx
; Place Register Address in TX data register
AC1 = AC1 & #0x00FF
*port(#I2C_DXR) = AC1 ; place address
repeat(#99)
NOP_16
call i2c_wait_for_slave_ack
call i2c_wait_for_tx
; Place I2C in receive mode
*port(#I2C_MDR) = #0000010010100000b ; Master transit with Start
;0~~~~~~~~~~~~~~~ NACK MOD - Master Receiver Mode:
; 1 -> the I2C sends NACK to transmitter during acknowledge cycle.
; 0 -> the I2C sends ACK to transmitter during acknowledge cycle.
;~0~~~~~~~~~~~~~~ FREE: 0-> Disable free-run 1 -> I2C runs free during debugger breakpoint.
;~~0~~~~~~~~~~~~~ STT - Start Condition Bit: 1 -> (master mode) generates start condition (STP = 0).
;~~~0~~~~~~~~~~~~ Reserved (?)
;~~~~0~~~~~~~~~~~ STP: Set to 1 to generate STOP condition.
;~~~~~1~~~~~~~~~~ MST: 1 -> I2C is in master mode.
;~~~~~~0~~~~~~~~~ TRX - Transmitter: 0 -> I2C is in receiver mode
; MST|TRX = 10 -> master receiver mode.
; MST|TRX = 11 -> master transmitter mode.
;~~~~~~~0~~~~~~~~ XA - Expanded Address: 0 -> 7-bit address mode, 1 -> 10-bit address mode.
;~~~~~~~~1~~~~~~~ RM - Repeat Mode
; RM|STT|STP = 110 -> (Re) Start: S-A-D-D-D-D... continuous
;~~~~~~~~~0~~~~~~ DLB - Digital Loopback Mode: 1 -> I2C in digital loopback mode.
;~~~~~~~~~~1~~~~~ nIRS: 1 -> I2C not in reset, 0 -> I2C in reset.
;~~~~~~~~~~~0~~~~ START byte mode: 0 -> I2C in not in START byte mode.
;~~~~~~~~~~~~0~~~ 1 -> I2C is in free data format (Figure 6d).
;~~~~~~~~~~~~~000 BC - Bit Count, number of bits which are yet to be received/tranmsitted.
; Set NACK to finish read cycle
; *port(#I2C_MDR) = #1000010010100000b ; Master transit with Start
;1~~~~~~~~~~~~~~~ NACK MOD - Master Receiver Mode:
; 1 -> the I2C sends NACK to transmitter during acknowledge cycle.
; 0 -> the I2C sends ACK to transmitter during acknowledge cycle.
;~0~~~~~~~~~~~~~~ FREE: 0-> Disable free-run 1 -> I2C runs free during debugger breakpoint.
;~~0~~~~~~~~~~~~~ STT - Start Condition Bit: 1 -> (master mode) generates start condition (STP = 0).
;~~~0~~~~~~~~~~~~ Reserved (?)
;~~~~0~~~~~~~~~~~ STP: Set to 1 to generate STOP condition.
;~~~~~1~~~~~~~~~~ MST: 1 -> I2C is in master mode.
;~~~~~~0~~~~~~~~~ TRX - Transmitter: 0 -> I2C is in receiver mode
; MST|TRX = 10 -> master receiver mode.
; MST|TRX = 11 -> master transmitter mode.
;~~~~~~~0~~~~~~~~ XA - Expanded Address: 0 -> 7-bit address mode, 1 -> 10-bit address mode.
;~~~~~~~~1~~~~~~~ RM - Repeat Mode
; RM|STT|STP = 110 -> (Re) Start: S-A-D-D-D-D... continuous
;~~~~~~~~~0~~~~~~ DLB - Digital Loopback Mode: 1 -> I2C in digital loopback mode.
;~~~~~~~~~~1~~~~~ nIRS: 1 -> I2C not in reset, 0 -> I2C in reset.
;~~~~~~~~~~~0~~~~ START byte mode: 0 -> I2C in not in START byte mode.
;~~~~~~~~~~~~0~~~ 1 -> I2C is in free data format (Figure 6d).
;~~~~~~~~~~~~~000 BC - Bit Count, number of bits which are yet to be received/tranmsitted.
repeat(#99)
NOP_16
; Generate start condition
*port(#I2C_MDR) = #1010010010100000b ; Master transit with Start
;0~~~~~~~~~~~~~~~ NACK MOD - Master Receiver Mode:
; 1 -> the I2C sends NACK to transmitter during acknowledge cycle.
; 0 -> the I2C sends ACK to transmitter during acknowledge cycle.
;~0~~~~~~~~~~~~~~ FREE: 0-> Disable free-run 1 -> I2C runs free during debugger breakpoint.
;~~1~~~~~~~~~~~~~ STT - Start Condition Bit: 1 -> (master mode) generates start condition (STP = 0).
;~~~0~~~~~~~~~~~~ Reserved (?)
;~~~~0~~~~~~~~~~~ STP: Set to 1 to generate STOP condition.
;~~~~~1~~~~~~~~~~ MST: 1 -> I2C is in master mode.
;~~~~~~0~~~~~~~~~ TRX - Transmitter: 0 -> I2C is in receiver mode
; MST|TRX = 10 -> master receiver mode.
; MST|TRX = 11 -> master transmitter mode.
;~~~~~~~0~~~~~~~~ XA - Expanded Address: 0 -> 7-bit address mode, 1 -> 10-bit address mode.
;~~~~~~~~1~~~~~~~ RM - Repeat Mode
; RM|STT|STP = 110 -> (Re) Start: S-A-D-D-D-D... continuous
;~~~~~~~~~0~~~~~~ DLB - Digital Loopback Mode: 1 -> I2C in digital loopback mode.
;~~~~~~~~~~1~~~~~ nIRS: 1 -> I2C not in reset, 0 -> I2C in reset.
;~~~~~~~~~~~0~~~~ START byte mode: 0 -> I2C in not in START byte mode.
;~~~~~~~~~~~~0~~~ 1 -> I2C is in free data format (Figure 6d).
;~~~~~~~~~~~~~000 BC - Bit Count, number of bits which are yet to be received/tranmsitted.
repeat(#99)
NOP_16
call i2c_wait_for_slave_ack
call i2c_wait_for_data
AC2 = *port(#I2C_DRR) ; read data
AR1 = AC2 & 0x00FF
; Place I2C as transmitter
*port(#I2C_MDR) = #1010011010100000b ; Master transit with Start
;0~~~~~~~~~~~~~~~ NACK MOD - Master Receiver Mode:
; 1 -> the I2C sends NACK to transmitter during acknowledge cycle.
; 0 -> the I2C sends ACK to transmitter during acknowledge cycle.
;~0~~~~~~~~~~~~~~ FREE: 0-> Disable free-run 1 -> I2C runs free during debugger breakpoint.
;~~1~~~~~~~~~~~~~ STT - Start Condition Bit: 1 -> (master mode) generates start condition (STP = 0).
;~~~0~~~~~~~~~~~~ Reserved (?)
;~~~~0~~~~~~~~~~~ STP: Set to 1 to generate STOP condition.
;~~~~~1~~~~~~~~~~ MST: 1 -> I2C is in master mode.
;~~~~~~1~~~~~~~~~ TRX - Transmitter: 0 -> I2C is in receiver mode
; MST|TRX = 10 -> master receiver mode.
; MST|TRX = 11 -> master transmitter mode.
;~~~~~~~0~~~~~~~~ XA - Expanded Address: 0 -> 7-bit address mode, 1 -> 10-bit address mode.
;~~~~~~~~1~~~~~~~ RM - Repeat Mode
; RM|STT|STP = 110 -> (Re) Start: S-A-D-D-D-D... continuous
;~~~~~~~~~0~~~~~~ DLB - Digital Loopback Mode: 1 -> I2C in digital loopback mode.
;~~~~~~~~~~1~~~~~ nIRS: 1 -> I2C not in reset, 0 -> I2C in reset.
;~~~~~~~~~~~0~~~~ START byte mode: 0 -> I2C in not in START byte mode.
;~~~~~~~~~~~~0~~~ 1 -> I2C is in free data format (Figure 6d).
;~~~~~~~~~~~~~000 BC - Bit Count, number of bits which are yet to be received/tranmsitted.
; I2C Set back ACK_enable
*port(#I2C_MDR) = #1010011010100000b ; Master transit with Start
;1~~~~~~~~~~~~~~~ NACK MOD - Master Receiver Mode:
; 1 -> the I2C sends NACK to transmitter during acknowledge cycle.
; 0 -> the I2C sends ACK to transmitter during acknowledge cycle.
;~0~~~~~~~~~~~~~~ FREE: 0-> Disable free-run 1 -> I2C runs free during debugger breakpoint.
;~~1~~~~~~~~~~~~~ STT - Start Condition Bit: 1 -> (master mode) generates start condition (STP = 0).
;~~~0~~~~~~~~~~~~ Reserved (?)
;~~~~0~~~~~~~~~~~ STP: Set to 1 to generate STOP condition.
;~~~~~1~~~~~~~~~~ MST: 1 -> I2C is in master mode.
;~~~~~~1~~~~~~~~~ TRX - Transmitter: 0 -> I2C is in receiver mode
; MST|TRX = 10 -> master receiver mode.
; MST|TRX = 11 -> master transmitter mode.
;~~~~~~~0~~~~~~~~ XA - Expanded Address: 0 -> 7-bit address mode, 1 -> 10-bit address mode.
;~~~~~~~~1~~~~~~~ RM - Repeat Mode
; RM|STT|STP = 110 -> (Re) Start: S-A-D-D-D-D... continuous
;~~~~~~~~~0~~~~~~ DLB - Digital Loopback Mode: 1 -> I2C in digital loopback mode.
;~~~~~~~~~~1~~~~~ nIRS: 1 -> I2C not in reset, 0 -> I2C in reset.
;~~~~~~~~~~~0~~~~ START byte mode: 0 -> I2C in not in START byte mode.
;~~~~~~~~~~~~0~~~ 1 -> I2C is in free data format (Figure 6d).
;~~~~~~~~~~~~~000 BC - Bit Count, number of bits which are yet to be received/tranmsitted.
*port(#I2C_MDR) = #0010111010100000b ; Stop I2S transmission
repeat(#1999)
NOP_16
return
;****************************************************************************************
; i2c_wait_for_bus_busy - Waits for bus to be unused
;****************************************************************************************
i2c_wait_for_bus_busy:
T1 = *port(#I2C_STR) ; wait for bus busy flag set (BB)
T0 = T1 & #ICBB_FLAG
if ( T0 != #0 ) goto i2c_wait_for_bus_busy ; bus is being used
return
;****************************************************************************************
; i2c_wait_for_slave_ack - Waits for Slave ACK
;****************************************************************************************
i2c_wait_for_slave_ack:
T1 = *port(#I2C_STR) ; wait for ack flag cleared (NACK)
T0 = T1 & #ICNACK_FLAG
if ( T0 != #0 ) goto i2c_wait_for_slave_ack ; still no ack
*port(#I2C_STR) = #ICNACK_FLAG ; clear NACK
return
;****************************************************************************************
; i2c_wait_for_tx - Waits for Data Transmit
;****************************************************************************************
i2c_wait_for_tx:
T1 = *port(#I2C_STR) ; wait for transmit flag set (ICXRDY)
T0 = T1 & #ICXRDY_FLAG
if ( T0 == #0 ) goto i2c_wait_for_tx ; still in transmission
*port(#I2C_STR) = #ICXRDY_FLAG ; clear ICXRDY
return
;****************************************************************************************
; i2c_wait_for_data - Waits for Data receive
;****************************************************************************************
i2c_wait_for_data:
T1 = *port(#I2C_STR) ; wait for transmit flag set (ICRRDY)
T0 = T1 & #ICRRDY_FLAG
if ( T0 == #0 ) goto i2c_wait_for_data ; still in transmission
*port(#I2C_STR) = #ICRRDY_FLAG ; clear ICRRDY
return
;****************************************************************************************
; i2c_wait_for_register_access - Waits for register access ready
;****************************************************************************************
i2c_wait_for_register_access:
T1 = *port(#I2C_STR) ; wait for register access ready (ARDY)
T0 = T1 & #ICBB_FLAG
if ( T0 == #0 ) goto i2c_wait_for_register_access ; registers are being used
return
;****************************************************************************************
; i2c_wait_for_stop - Waits for stop condition
;****************************************************************************************
i2c_wait_for_stop:
T1 = *port(#I2C_STR) ; wait for stop condition (SCD)
T0 = T1 & #ICSCD_FLAG
if ( T0 == #0 ) goto i2c_wait_for_stop ; no stop yet
*port(#I2C_STR) = #ICSCD_FLAG ; clear SCD
return
;****************************************************************************************
|
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24))
ftyp_start:
dd BE(ftyp_end - ftyp_start)
dd "ftyp"
db 0x61, 0x76, 0x69, 0x66 ; brand(32) ('avif')
db 0x00, 0x00, 0x00, 0x00 ; version(32)
db 0x61, 0x76, 0x69, 0x66 ; compatible_brand(32) ('avif')
db 0x6D, 0x69, 0x66, 0x31 ; compatible_brand(32) ('mif1')
db 0x6D, 0x69, 0x61, 0x66 ; compatible_brand(32) ('miaf')
db 0x4D, 0x41, 0x31, 0x41 ; compatible_brand(32) ('MA1A')
ftyp_end:
meta_start:
dd BE(meta_end - meta_start)
dd "meta"
db 0x00 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
hdlr_start:
dd BE(hdlr_end - hdlr_start)
dd "hdlr"
db 0x00 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
db 0x00, 0x00, 0x00, 0x00 ; pre_defined(32)
db 0x70, 0x69, 0x63, 0x74 ; handler_type(32) ('pict')
db 0x00, 0x00, 0x00, 0x00 ; reserved1(32)
db 0x00, 0x00, 0x00, 0x00 ; reserved2(32)
db 0x00, 0x00, 0x00, 0x00 ; reserved3(32)
db 0x00 ; name(8)
hdlr_end:
iloc_start:
dd BE(iloc_end - iloc_start)
dd "iloc"
db 0x01 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
db 0x04 ; offset_size(4) length_size(4)
db 0x40 ; base_offset_size(4) ('@') reserved1(4) ('@')
db 0x00, 0x01 ; item_count(16)
db 0x00, 0x01 ; item_ID(16)
db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)"
db 0x00, 0x00 ; data_reference_index(16)
db 0x00, 0x00, 0x01, 0x0F ; base_offset(32)
db 0x00, 0x01 ; extent_count(16)
; extent_offset(0)
db 0x00, 0x00, 0x00, 0x0B ; base_offset(32)
iloc_end:
iinf_start:
dd BE(iinf_end - iinf_start)
dd "iinf"
db 0x01 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
db 0x00, 0x00, 0x00, 0x01 ; entry_count(32)
infe_start:
dd BE(infe_end - infe_start)
dd "infe"
db 0x02 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
db 0x00, 0x01 ; item_ID(16)
db 0x00, 0x00 ; item_protection_index(16)
db 0x61, 0x76, 0x30, 0x31 ; item_type(32) ('av01')
db 0x00 ; item_name(8)
infe_end:
iinf_end:
pitm_start:
dd BE(pitm_end - pitm_start)
dd "pitm"
db 0x00 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
db 0x00, 0x01 ; item_ID(16)
pitm_end:
iprp_start:
dd BE(iprp_end - iprp_start)
dd "iprp"
ipco_start:
dd BE(ipco_end - ipco_start)
dd "ipco"
pasp_start:
dd BE(pasp_end - pasp_start)
dd "pasp"
db 0x00, 0x00, 0x00, 0x01 ; hSpacing(32)
db 0x00, 0x00, 0x00, 0x01 ; vSpacing(32)
pasp_end:
ispe_start:
dd BE(ispe_end - ispe_start)
dd "ispe"
db 0x00 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
db 0x00, 0x00, 0x04, 0xB4 ; image_width(32)
db 0x00, 0x00, 0x03, 0x20 ; image_height(32)
ispe_end:
pixi_start:
dd BE(pixi_end - pixi_start)
dd "pixi"
db 0x00 ; (8)
db 0x00 ; (8)
db 0x00 ; (8)
db 0x00 ; (8)
db 0x03 ; (8)
db 0x08 ; (8)
db 0x08 ; (8)
db 0x08 ; (8)
pixi_end:
av1C_start:
dd BE(av1C_end - av1C_start)
dd "av1C"
db 0x81 ; marker(1) version(7)
db 0x51 ; seq_profile(2) seq_level_idx_0(17)
db 0x08 ; seq_tier_0(1) high_bitdepth(1) twelve_bit(1) monochrome(1) chroma_subsampling_x(1) chroma_subsampling_y(1) chroma_sample_position(2)
db 0x00 ; reserved(3) initial_presentation_delay_present(1) reserved(4)
av1C_end:
ipco_end:
ipma_start:
dd BE(ipma_end - ipma_start)
dd "ipma"
db 0x00 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
db 0x00, 0x00, 0x00, 0x01 ; entry_count(32)
db 0x00, 0x01 ; item_ID(16)
db 0x04 ; association_count(8)
db 0x01 ; essential(1) property_index(7)
db 0x02 ; essential(1) property_index(7)
db 0x83 ; essential(1) property_index(7)
db 0x84 ; essential(1) property_index(7)
ipma_end:
iprp_end:
meta_end:
mdat_start:
dd BE(mdat_end - mdat_start)
dd "mdat"
db 0x0A ; (8)
db 0x07 ; (8)
db 0x5C ; (8)
db 0x6A ; (8)
db 0x65 ; (8)
db 0x9E ; (8)
db 0x3F ; (8)
db 0xC8 ; (8)
db 0x04 ; (8)
db 0x32 ; (8)
db 0x00 ; (8)
mdat_end:
; vim: syntax=nasm
|
<%
from pwnlib.shellcraft.aarch64.linux import syscall
%>
<%page args="addr=0, length=4096, prot=7, flags=34, fd=-1, offset=0"/>
<%docstring>
Invokes the syscall mmap. See 'man 2 mmap' for more information.
Arguments:
addr(void): addr
length(size_t): length
prot(int): prot
flags(int): flags
fd(int): fd
offset(off_t): offset
</%docstring>
${syscall('SYS_mmap', addr, length, prot, flags, fd, offset)}
|
.size 8000
.data@0
01
.text@48
jp lstatint
.data@9c
02 03 04 05
.text@100
jp lbegin
.data@143
c0 00 00 00 1a 00 03
.text@150
lbegin:
ld c, 44
ld b, 90
lbegin_waitly90:
ldff a, (c)
cmp a, b
jrnz lbegin_waitly90
ld a, 0a
ld(0000), a
ld hl, fe00
ld c, a0
ld a, a0
lbegin_fill_oam:
ld(hl++), a
dec c
jrnz lbegin_fill_oam
ld c, 44
ld b, 90
lbegin_waitly90_2:
ldff a, (c)
cmp a, b
jrnz lbegin_waitly90_2
ld hl, c1ff
ld a, 00
lbegin_set_c1xx:
ld(hl--), a
inc a
jrnz lbegin_set_c1xx
lbegin_set_c0xx:
dec a
ld(hl--), a
jrnz lbegin_set_c0xx
ld a, 90
ldff(45), a
ld a, 40
ldff(41), a
xor a, a
ldff(0f), a
ld a, 02
ldff(ff), a
ei
halt
.text@1000
lstatint:
ld a, c0
ldff(51), a
xor a, a
ldff(52), a
ldff(54), a
ld a, 80
ldff(53), a
ld c, 55
ld a, c0
ldff(46), a
ld a, 13
ldff(55), a
nop
nop
nop
nop
ld c, 44
ld b, 96
lstatint_waitly96:
ldff a, (c)
cmp a, b
jrnz lstatint_waitly96
xor a, a
ldff(40), a
ld hl, 81ff
ld de, a100
lstatint_dump81xx:
ld a, (hl--)
dec e
ld(de), a
jrnz lstatint_dump81xx
dec d
lstatint_dump80xx:
ld a, (hl--)
dec e
ld(de), a
jrnz lstatint_dump80xx
xor a, a
ld(0000), a
|
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2018 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*********************************************************************************/
#include <inviwo/qt/applicationbase/inviwoapplicationqt.h>
#include <inviwo/core/common/defaulttohighperformancegpu.h>
#include <inviwo/core/util/commandlineparser.h>
#include <inviwo/core/util/filesystem.h>
#include <inviwo/core/util/logcentral.h>
#include <inviwo/core/util/logerrorcounter.h>
#include <inviwo/core/util/raiiutils.h>
#include <inviwo/core/network/processornetwork.h>
#include <inviwo/core/util/ostreamjoiner.h>
#include <inviwo/qt/editor/inviwomainwindow.h>
#include <inviwo/core/util/filelogger.h>
#include "inviwosplashscreen.h"
#include <moduleregistration.h>
#include <sstream>
#include <algorithm>
#include <warn/push>
#include <warn/ignore/all>
#include <QFile>
#include <QMessageBox>
#include <warn/pop>
int main(int argc, char** argv) {
inviwo::LogCentral logger;
inviwo::LogCentral::init(&logger);
auto logCounter = std::make_shared<inviwo::LogErrorCounter>();
logger.registerLogger(logCounter);
inviwo::InviwoApplicationQt inviwoApp(argc, argv, "Inviwo");
inviwoApp.setWindowIcon(QIcon(":/inviwo/inviwo_light.png"));
inviwoApp.setAttribute(Qt::AA_NativeWindows);
QFile styleSheetFile(":/stylesheets/inviwo.qss");
styleSheetFile.open(QFile::ReadOnly);
QString styleSheet = QString::fromUtf8(styleSheetFile.readAll());
inviwoApp.setStyleSheet(styleSheet);
styleSheetFile.close();
auto& clp = inviwoApp.getCommandLineParser();
inviwo::InviwoMainWindow mainWin(&inviwoApp);
inviwoApp.printApplicationInfo();
// initialize and show splash screen
inviwo::InviwoSplashScreen splashScreen(clp.getShowSplashScreen());
inviwoApp.setProgressCallback([&splashScreen](std::string s) { splashScreen.showMessage(s); });
splashScreen.show();
splashScreen.showMessage("Loading application...");
// Initialize application and register modules
splashScreen.showMessage("Initializing modules...");
inviwoApp.registerModules(inviwo::getModuleList());
inviwoApp.processEvents();
// Do this after registerModules if some arguments were added
clp.parse(inviwo::CommandLineParser::Mode::Normal);
inviwoApp.processEvents(); // Update GUI
splashScreen.showMessage("Loading workspace...");
inviwoApp.processEvents();
mainWin.showWindow();
inviwoApp.processEvents(); // Make sure the gui is done loading before loading workspace
mainWin.openLastWorkspace(clp.getWorkspacePath()); // open last workspace
inviwoApp.setProgressCallback(std::function<void(std::string)>{});
splashScreen.finish(&mainWin);
inviwoApp.processEvents();
clp.processCallbacks(); // run any command line callbacks from modules.
inviwoApp.processEvents();
inviwo::util::OnScopeExit clearNetwork([&]() { inviwoApp.getProcessorNetwork()->clear(); });
if (auto numErrors = logCounter->getWarnCount()) {
LogWarnCustom("inviwo.cpp", numErrors << " warnings generated during startup");
}
if (auto numErrors = logCounter->getErrorCount()) {
LogErrorCustom("inviwo.cpp", numErrors << " errors generated during startup");
}
logCounter.reset();
// process last arguments
if (clp.getQuitApplicationAfterStartup()) {
mainWin.exitInviwo(false);
return 0;
}
while (true) {
try {
return inviwoApp.exec();
} catch (const inviwo::Exception& e) {
{
inviwo::util::log(e.getContext(), e.getMessage());
std::stringstream ss;
auto j = inviwo::util::make_ostream_joiner(ss, "\n");
std::copy(e.getStack().begin(), e.getStack().end(), j);
LogErrorCustom("Inviwo", ss.str());
}
{
std::stringstream ss;
ss << e.getMessage();
if (!e.getStack().empty()) {
ss << "\nStack Trace:\n";
auto j = inviwo::util::make_ostream_joiner(ss, "\n");
if (std::distance(e.getStack().begin(), e.getStack().end()) > 10) {
std::copy(e.getStack().begin(), e.getStack().begin() + 10, j);
ss << "\n...";
} else {
std::copy(e.getStack().begin(), e.getStack().end(), j);
}
}
ss << "\nApplication state might be corrupted, be warned.";
auto res = QMessageBox::critical(
&mainWin, "Fatal Error", QString::fromStdString(ss.str()),
QMessageBox::Ignore | QMessageBox::Close, QMessageBox::Close);
if (res == QMessageBox::Close) {
mainWin.askToSaveWorkspaceChanges();
return 1;
}
}
} catch (const std::exception& e) {
LogErrorCustom("Inviwo", e.what());
std::stringstream ss;
ss << e.what();
ss << "\nApplication state might be corrupted, be warned.";
auto res =
QMessageBox::critical(&mainWin, "Fatal Error", QString::fromStdString(ss.str()),
QMessageBox::Ignore | QMessageBox::Close, QMessageBox::Close);
if (res == QMessageBox::Close) {
mainWin.askToSaveWorkspaceChanges();
return 1;
}
} catch (...) {
LogErrorCustom("Inviwo", "Uncaught exception, terminating");
QMessageBox::critical(nullptr, "Fatal Error", "Uncaught exception, terminating");
return 1;
}
}
}
|
DATA SEGMENT
N1 DB 00010000B
RES DB ?
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
START:
MOV AX, DATA
MOV DS, AX
MOV AH, 0000H
MOV AL, N1
NOT AL
ADD AL, 00000001B
MOV RES, AL
CODE ENDS
END START
|
#include "Button3.h"
myButton::myButton()
{
delayTime = 0.3f;
elapsedTime = 0.0f;
isClicked = false;
upTexture = LoadTexture("assets/blue_button00.png");
downTexture = LoadTexture("assets/blue_button13.png");
bounds = { 0.0f, 0.0f, (float)upTexture.width, (float)upTexture.height };
}
myButton::myButton(const std::string up, const std::string down) : myButton()
{
UnloadTexture(upTexture);
UnloadTexture(downTexture);
upTexture = LoadTexture(up.c_str());
downTexture = LoadTexture(down.c_str());
bounds = { 0.0f, 0.0f, (float)upTexture.width, (float)upTexture.height };
}
myButton::~myButton()
{
UnloadTexture(upTexture);
UnloadTexture(downTexture);
}
void myButton::update(Vector2 click)
{
if (CheckCollisionPointRec(click, bounds) && IsMouseButtonPressed(0)) {
isClicked = true;
}
// update
elapsedTime += GetFrameTime();
if (elapsedTime > delayTime) {
isClicked = false;
elapsedTime = 0.0f;
}
}
void myButton::draw()
{
if (isClicked) {
DrawTexture(downTexture, bounds.x, bounds.y, WHITE);
}
else{
DrawTexture(upTexture, bounds.x, bounds.y, WHITE);
}
}
|
title "User Mode Dispatcher Code"
;++
;
; Copyright (c) 1989 Microsoft Corporation
;
; Module Name:
;
; userdisp.asm
;
; Abstract:
;
; The module contains procedures to do user mode dispatching
; ("trampolining") of user apcs and user exceptions.
;
; Author:
;
; Bryan M Willman (bryanwi) 31-Aug-90
;
; Environment:
;
; User mode.
;
; Revision History:
;
;--
.386p
.xlist
include ks386.inc
include callconv.inc ; calling convention macros
.list
ifndef WX86_i386
EXTRNP _ZwCallbackReturn,3
endif
EXTRNP _ZwContinue,2
EXTRNP _RtlDispatchException,2
EXTRNP _RtlRaiseStatus,1
EXTRNP _ZwRaiseException,3
EXTRNP _RtlRaiseException,1
;
; Exception record size definition.
;
ExceptionRecordSize = (ErNumberParameters + 4 + 3) AND 0fffffffcH ;
page ,132
_TEXT SEGMENT DWORD PUBLIC 'CODE'
ASSUME DS:FLAT, ES:FLAT, SS:NOTHING, FS:NOTHING, GS:NOTHING
ifndef WX86_i386
page
subttl "User APC Dispatcher"
;++
;
; VOID
; KiUserApcDispatcher (
; IN PKNORMAL_ROUTINE NormalRoutine,
; IN PVOID NormalContext,
; IN PVOID SystemArgument1,
; IN PVOID SystemArgument2,
; IN CONTEXT ContinueContext
; )
;
; Routine Description:
;
; This routine is entered on return from kernel mode to deliver an APC
; in user mode. The context frame for this routine was built when the
; APC interrupt was processed and contains the entire machine state of
; the current thread. The specified APC routine is called and then the
; machine state is restored and execution is continued.
;
; Arguments:
;
; NormalRoutine - Supplies that address of the function that is to be called.
;
; NormalContext] - Supplies the normal context parameter that was specified
; when the APC was initialized.
;
; SystemArgument1 - Supplies the first argument that was provied by the
; executive when the APC was queued.
;
; SystemArgument2 - Supplies the second argument that was provided by
; the executive when the APC was queued.
;
; ContinueContext - Context record to pass to Continue call.
;
;
; Return Value:
;
; None.
;
;--
cPublicProc _KiUserApcDispatcher ,5
lea edi, [esp+16] ; (edi)->context frame
pop eax ; (eax)->specified function
call eax ; call the specified function
; 1 - set alert argument true
; ebp - addr of context frame
; execute system service to continue
stdCall _ZwContinue, <edi, 1>
stdENDP _KiUserApcDispatcher
page
subttl "User Callback Dispatcher"
;++
;
; VOID
; KiUserCallbackDispatcher (
; IN ULONG ApiNumber,
; IN PVOID InputBuffer,
; IN ULONG INputLength
; )
;
; Routine Description:
;
; This routine is entered on a callout from kernel mode to execute a
; user mode callback function. All arguments for this function have
; been placed on the stack.
;
; Arguments:
;
; ApiNumber - Supplies the API number of the callback function that is
; executed.
;
; InputBuffer - Supplies a pointer to the input buffer.
;
; InputLength - Supplies the input buffer length.
;
; Return Value:
;
; This function returns to kernel mode.
;
;--
cPublicProc _KiUserCallbackDispatcher, 3
.FPO (0, 0, 0, 0, 0, 0)
add esp,4 ; skip over return address
pop edx ; get address of callback function
; get peb pointer from teb
mov eax,fs:[PcTeb]
mov eax,[eax].TebPeb
mov eax,[eax].PebKernelCallbackTable ; get address of callback table
call [eax+edx*4] ; call specified function
;
; If a return from the callback function occurs, then the output buffer
; address and length are returned as NULL.
;
xor ecx,ecx ; clear output buffer address
ifdef BUILD_WOW6432
stdCall _ZwCallbackReturn, <ecx, ecx, eax>
else
xor edx,edx ; clear output buffer length
int 02bH ; return from callback
endif
int 3 ; break if return occurs
stdENDP _KiUserCallbackDispatcher
endif ;; ndef WX86_i386
page
subttl "User Exception Dispatcher"
;++
;
; VOID
; KiUserExceptionDispatcher (
; IN PEXCEPTION_RECORD ExceptionRecord,
; IN PCONTEXT ContextRecord
; )
;
; Routine Description:
;
; This routine is entered on return from kernel mode to dispatch a user
; mode exception. If a frame based handler handles the exception, then
; the execution is continued. Else last chance processing is performed.
;
; NOTE: This procedure is not called, but rather dispatched to.
; It depends on there not being a return address on the stack
; (assumption w.r.t. argument offsets.)
;
; Arguments:
;
; ExceptionRecord (esp+0) - Supplies a pointer to an exception record.
;
; ContextRecord (esp+4) - Supplies a pointer to a context frame.
;
; Return Value:
;
; None.
;
;--
cPublicProc _KiUserExceptionDispatcher ,2
.FPO (0, 2, 0, 0, 0, 0)
mov ecx, [esp+4] ; (ecx)->context record
mov ebx, [esp] ; (ebx)->exception record
; attempt to dispatch the exception
stdCall _RtlDispatchException, <ebx, ecx>
;
; If the return status is TRUE, then the exception was handled and execution
; should be continued with the NtContinue service in case the context was
; changed. If the return statusn is FALSE, then the exception was not handled
; and ZwRaiseException is called to perform last chance exception processing.
;
or al,al
je short kued10
;
; Continue execution.
;
pop ebx ; (ebx)->exception record
pop ecx ; (ecx)->context record
; continue execution
stdCall _ZwContinue, <ecx, 0>
jmp short kued20 ; join common code
;
; Last chance processing.
;
; (esp+0) = ExceptionRecord
; (esp+4) = ContextRecord
;
kued10: pop ebx ; (ebx)->exception record
pop ecx ; (ecx)->context record
; ecx - context record
; ebx - exception record
; perform last chance processiong
stdCall _ZwRaiseException, <ebx, ecx, 0>
;
; Common code for nonsuccessful completion of the continue or raiseexception
; services. Use the return status as the exception code, set noncontinuable
; exception and attempt to raise another exception. Note the stack grows
; and eventually this loop will end.
;
.FPO(0, 0, 0, 0, 0, 0)
kued20: add esp, -ExceptionRecordSize ; allocate stack space
mov [esp]+ErExceptionCode, eax ; set exception code
mov dword ptr [esp]+ErExceptionFlags, EXCEPTION_NONCONTINUABLE
mov [esp]+ErExceptionRecord,ebx ; set associated exception record
mov dword ptr [esp]+ErNumberParameters, 0
; set number of parameters
; esp - addr of exception record
stdCall _RtlRaiseException, <esp>
; never return
stdRET _KiUserExceptionDispatcher
stdENDP _KiUserExceptionDispatcher
page
subttl "Raise User Exception Dispatcher"
ifndef WX86_i386
;++
;
; NTSTATUS
; KiUserExceptionDispatcher (
; IN PVOID ReturnAddress
; IN NTSTATUS ExceptionCode
; )
;
; Routine Description:
;
; This routine is entered on return from kernel mode to raise a user
; mode exception.
;
; NOTE: This procedure is not called, but rather dispatched to.
;
; The address this routine must return to is passed in EAX.
; The exception code to be raised is passed in the TEB.
;
; Arguments:
;
; ReturnAddress (eax) - Supplies the address to return to
;
; ExceptionCode (TEB->ExceptionCode) - Supplies the exception code to be raised
;
; Return Value:
;
; The exception code that was raised.
;
;--
cPublicProc _KiRaiseUserExceptionDispatcher
push eax ; push address to return to
push ebp ; make the debugger happy
mov ebp, esp
sub esp, ExceptionRecordLength ; allocate exception record
mov [esp].ErExceptionAddress, eax ; set exception address
mov eax,fs:[PcTeb] ; get exception code to be raised
mov eax,[eax].TbExceptionCode ;
mov [esp].ErExceptionCode, eax ; store exception code
mov [esp].ErExceptionFlags, 0 ; set exception flags
mov [esp].ErExceptionRecord, 0 ; set exception record
mov [esp].ErNumberParameters, 0 ; set number of parameters
; raise the exception
stdCall _RtlRaiseException, <esp>
mov eax, [esp].ErExceptionCode
mov esp,ebp
pop ebp ; restore return code
ret
stdENDP _KiRaiseUserExceptionDispatcher
endif ;; ndef WX86_i386
_TEXT ENDS
END
|
; A176414: Expansion of (7+8*x)/(1+2*x).
; Submitted by Jamie Morken(s2)
; 7,-6,12,-24,48,-96,192,-384,768,-1536,3072,-6144,12288,-24576,49152,-98304,196608,-393216,786432,-1572864,3145728,-6291456,12582912,-25165824,50331648,-100663296,201326592,-402653184,805306368,-1610612736,3221225472,-6442450944,12884901888,-25769803776,51539607552,-103079215104,206158430208,-412316860416,824633720832,-1649267441664,3298534883328,-6597069766656,13194139533312,-26388279066624,52776558133248,-105553116266496,211106232532992,-422212465065984,844424930131968,-1688849860263936
mov $1,7
mov $2,5
lpb $0
sub $0,1
sub $2,$1
mov $1,$2
mul $1,2
add $1,$2
lpe
mov $0,$1
|
_setSeedX: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
b: 89 e5 mov %esp,%ebp
d: 51 push %ecx
e: 83 ec 04 sub $0x4,%esp
11: 89 c8 mov %ecx,%eax
setSeedX(atoi(argv[1]));
13: 8b 40 04 mov 0x4(%eax),%eax
16: 83 c0 04 add $0x4,%eax
19: 8b 00 mov (%eax),%eax
1b: 83 ec 0c sub $0xc,%esp
1e: 50 push %eax
1f: e8 d9 01 00 00 call 1fd <atoi>
24: 83 c4 10 add $0x10,%esp
27: 83 ec 0c sub $0xc,%esp
2a: 50 push %eax
2b: e8 58 03 00 00 call 388 <setSeedX>
30: 83 c4 10 add $0x10,%esp
exit();
33: e8 a8 02 00 00 call 2e0 <exit>
00000038 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
38: 55 push %ebp
39: 89 e5 mov %esp,%ebp
3b: 57 push %edi
3c: 53 push %ebx
asm volatile("cld; rep stosb" :
3d: 8b 4d 08 mov 0x8(%ebp),%ecx
40: 8b 55 10 mov 0x10(%ebp),%edx
43: 8b 45 0c mov 0xc(%ebp),%eax
46: 89 cb mov %ecx,%ebx
48: 89 df mov %ebx,%edi
4a: 89 d1 mov %edx,%ecx
4c: fc cld
4d: f3 aa rep stos %al,%es:(%edi)
4f: 89 ca mov %ecx,%edx
51: 89 fb mov %edi,%ebx
53: 89 5d 08 mov %ebx,0x8(%ebp)
56: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
59: 90 nop
5a: 5b pop %ebx
5b: 5f pop %edi
5c: 5d pop %ebp
5d: c3 ret
0000005e <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
5e: 55 push %ebp
5f: 89 e5 mov %esp,%ebp
61: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
64: 8b 45 08 mov 0x8(%ebp),%eax
67: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
6a: 90 nop
6b: 8b 45 08 mov 0x8(%ebp),%eax
6e: 8d 50 01 lea 0x1(%eax),%edx
71: 89 55 08 mov %edx,0x8(%ebp)
74: 8b 55 0c mov 0xc(%ebp),%edx
77: 8d 4a 01 lea 0x1(%edx),%ecx
7a: 89 4d 0c mov %ecx,0xc(%ebp)
7d: 0f b6 12 movzbl (%edx),%edx
80: 88 10 mov %dl,(%eax)
82: 0f b6 00 movzbl (%eax),%eax
85: 84 c0 test %al,%al
87: 75 e2 jne 6b <strcpy+0xd>
;
return os;
89: 8b 45 fc mov -0x4(%ebp),%eax
}
8c: c9 leave
8d: c3 ret
0000008e <strcmp>:
int
strcmp(const char *p, const char *q)
{
8e: 55 push %ebp
8f: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
91: eb 08 jmp 9b <strcmp+0xd>
p++, q++;
93: 83 45 08 01 addl $0x1,0x8(%ebp)
97: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
9b: 8b 45 08 mov 0x8(%ebp),%eax
9e: 0f b6 00 movzbl (%eax),%eax
a1: 84 c0 test %al,%al
a3: 74 10 je b5 <strcmp+0x27>
a5: 8b 45 08 mov 0x8(%ebp),%eax
a8: 0f b6 10 movzbl (%eax),%edx
ab: 8b 45 0c mov 0xc(%ebp),%eax
ae: 0f b6 00 movzbl (%eax),%eax
b1: 38 c2 cmp %al,%dl
b3: 74 de je 93 <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
b5: 8b 45 08 mov 0x8(%ebp),%eax
b8: 0f b6 00 movzbl (%eax),%eax
bb: 0f b6 d0 movzbl %al,%edx
be: 8b 45 0c mov 0xc(%ebp),%eax
c1: 0f b6 00 movzbl (%eax),%eax
c4: 0f b6 c0 movzbl %al,%eax
c7: 29 c2 sub %eax,%edx
c9: 89 d0 mov %edx,%eax
}
cb: 5d pop %ebp
cc: c3 ret
000000cd <strlen>:
uint
strlen(char *s)
{
cd: 55 push %ebp
ce: 89 e5 mov %esp,%ebp
d0: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
d3: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
da: eb 04 jmp e0 <strlen+0x13>
dc: 83 45 fc 01 addl $0x1,-0x4(%ebp)
e0: 8b 55 fc mov -0x4(%ebp),%edx
e3: 8b 45 08 mov 0x8(%ebp),%eax
e6: 01 d0 add %edx,%eax
e8: 0f b6 00 movzbl (%eax),%eax
eb: 84 c0 test %al,%al
ed: 75 ed jne dc <strlen+0xf>
;
return n;
ef: 8b 45 fc mov -0x4(%ebp),%eax
}
f2: c9 leave
f3: c3 ret
000000f4 <memset>:
void*
memset(void *dst, int c, uint n)
{
f4: 55 push %ebp
f5: 89 e5 mov %esp,%ebp
stosb(dst, c, n);
f7: 8b 45 10 mov 0x10(%ebp),%eax
fa: 50 push %eax
fb: ff 75 0c pushl 0xc(%ebp)
fe: ff 75 08 pushl 0x8(%ebp)
101: e8 32 ff ff ff call 38 <stosb>
106: 83 c4 0c add $0xc,%esp
return dst;
109: 8b 45 08 mov 0x8(%ebp),%eax
}
10c: c9 leave
10d: c3 ret
0000010e <strchr>:
char*
strchr(const char *s, char c)
{
10e: 55 push %ebp
10f: 89 e5 mov %esp,%ebp
111: 83 ec 04 sub $0x4,%esp
114: 8b 45 0c mov 0xc(%ebp),%eax
117: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
11a: eb 14 jmp 130 <strchr+0x22>
if(*s == c)
11c: 8b 45 08 mov 0x8(%ebp),%eax
11f: 0f b6 00 movzbl (%eax),%eax
122: 3a 45 fc cmp -0x4(%ebp),%al
125: 75 05 jne 12c <strchr+0x1e>
return (char*)s;
127: 8b 45 08 mov 0x8(%ebp),%eax
12a: eb 13 jmp 13f <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
12c: 83 45 08 01 addl $0x1,0x8(%ebp)
130: 8b 45 08 mov 0x8(%ebp),%eax
133: 0f b6 00 movzbl (%eax),%eax
136: 84 c0 test %al,%al
138: 75 e2 jne 11c <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
13a: b8 00 00 00 00 mov $0x0,%eax
}
13f: c9 leave
140: c3 ret
00000141 <gets>:
char*
gets(char *buf, int max)
{
141: 55 push %ebp
142: 89 e5 mov %esp,%ebp
144: 83 ec 18 sub $0x18,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
147: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
14e: eb 42 jmp 192 <gets+0x51>
cc = read(0, &c, 1);
150: 83 ec 04 sub $0x4,%esp
153: 6a 01 push $0x1
155: 8d 45 ef lea -0x11(%ebp),%eax
158: 50 push %eax
159: 6a 00 push $0x0
15b: e8 98 01 00 00 call 2f8 <read>
160: 83 c4 10 add $0x10,%esp
163: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
166: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
16a: 7e 33 jle 19f <gets+0x5e>
break;
buf[i++] = c;
16c: 8b 45 f4 mov -0xc(%ebp),%eax
16f: 8d 50 01 lea 0x1(%eax),%edx
172: 89 55 f4 mov %edx,-0xc(%ebp)
175: 89 c2 mov %eax,%edx
177: 8b 45 08 mov 0x8(%ebp),%eax
17a: 01 c2 add %eax,%edx
17c: 0f b6 45 ef movzbl -0x11(%ebp),%eax
180: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
182: 0f b6 45 ef movzbl -0x11(%ebp),%eax
186: 3c 0a cmp $0xa,%al
188: 74 16 je 1a0 <gets+0x5f>
18a: 0f b6 45 ef movzbl -0x11(%ebp),%eax
18e: 3c 0d cmp $0xd,%al
190: 74 0e je 1a0 <gets+0x5f>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
192: 8b 45 f4 mov -0xc(%ebp),%eax
195: 83 c0 01 add $0x1,%eax
198: 3b 45 0c cmp 0xc(%ebp),%eax
19b: 7c b3 jl 150 <gets+0xf>
19d: eb 01 jmp 1a0 <gets+0x5f>
cc = read(0, &c, 1);
if(cc < 1)
break;
19f: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
1a0: 8b 55 f4 mov -0xc(%ebp),%edx
1a3: 8b 45 08 mov 0x8(%ebp),%eax
1a6: 01 d0 add %edx,%eax
1a8: c6 00 00 movb $0x0,(%eax)
return buf;
1ab: 8b 45 08 mov 0x8(%ebp),%eax
}
1ae: c9 leave
1af: c3 ret
000001b0 <stat>:
int
stat(char *n, struct stat *st)
{
1b0: 55 push %ebp
1b1: 89 e5 mov %esp,%ebp
1b3: 83 ec 18 sub $0x18,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
1b6: 83 ec 08 sub $0x8,%esp
1b9: 6a 00 push $0x0
1bb: ff 75 08 pushl 0x8(%ebp)
1be: e8 5d 01 00 00 call 320 <open>
1c3: 83 c4 10 add $0x10,%esp
1c6: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
1c9: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
1cd: 79 07 jns 1d6 <stat+0x26>
return -1;
1cf: b8 ff ff ff ff mov $0xffffffff,%eax
1d4: eb 25 jmp 1fb <stat+0x4b>
r = fstat(fd, st);
1d6: 83 ec 08 sub $0x8,%esp
1d9: ff 75 0c pushl 0xc(%ebp)
1dc: ff 75 f4 pushl -0xc(%ebp)
1df: e8 54 01 00 00 call 338 <fstat>
1e4: 83 c4 10 add $0x10,%esp
1e7: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
1ea: 83 ec 0c sub $0xc,%esp
1ed: ff 75 f4 pushl -0xc(%ebp)
1f0: e8 13 01 00 00 call 308 <close>
1f5: 83 c4 10 add $0x10,%esp
return r;
1f8: 8b 45 f0 mov -0x10(%ebp),%eax
}
1fb: c9 leave
1fc: c3 ret
000001fd <atoi>:
int
atoi(const char *s)
{
1fd: 55 push %ebp
1fe: 89 e5 mov %esp,%ebp
200: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
203: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
20a: eb 25 jmp 231 <atoi+0x34>
n = n*10 + *s++ - '0';
20c: 8b 55 fc mov -0x4(%ebp),%edx
20f: 89 d0 mov %edx,%eax
211: c1 e0 02 shl $0x2,%eax
214: 01 d0 add %edx,%eax
216: 01 c0 add %eax,%eax
218: 89 c1 mov %eax,%ecx
21a: 8b 45 08 mov 0x8(%ebp),%eax
21d: 8d 50 01 lea 0x1(%eax),%edx
220: 89 55 08 mov %edx,0x8(%ebp)
223: 0f b6 00 movzbl (%eax),%eax
226: 0f be c0 movsbl %al,%eax
229: 01 c8 add %ecx,%eax
22b: 83 e8 30 sub $0x30,%eax
22e: 89 45 fc mov %eax,-0x4(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
231: 8b 45 08 mov 0x8(%ebp),%eax
234: 0f b6 00 movzbl (%eax),%eax
237: 3c 2f cmp $0x2f,%al
239: 7e 0a jle 245 <atoi+0x48>
23b: 8b 45 08 mov 0x8(%ebp),%eax
23e: 0f b6 00 movzbl (%eax),%eax
241: 3c 39 cmp $0x39,%al
243: 7e c7 jle 20c <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
245: 8b 45 fc mov -0x4(%ebp),%eax
}
248: c9 leave
249: c3 ret
0000024a <itoa>:
char*
itoa(int val, int base){
24a: 55 push %ebp
24b: 89 e5 mov %esp,%ebp
24d: 83 ec 10 sub $0x10,%esp
static char buf[32] = {0};
int i = 30;
250: c7 45 fc 1e 00 00 00 movl $0x1e,-0x4(%ebp)
for(; val && i ; --i, val /= base)
257: eb 29 jmp 282 <itoa+0x38>
buf[i] = "0123456789abcdef"[val % base];
259: 8b 45 08 mov 0x8(%ebp),%eax
25c: 99 cltd
25d: f7 7d 0c idivl 0xc(%ebp)
260: 89 d0 mov %edx,%eax
262: 0f b6 80 2d 08 00 00 movzbl 0x82d(%eax),%eax
269: 8b 55 fc mov -0x4(%ebp),%edx
26c: 81 c2 e0 0a 00 00 add $0xae0,%edx
272: 88 02 mov %al,(%edx)
static char buf[32] = {0};
int i = 30;
for(; val && i ; --i, val /= base)
274: 83 6d fc 01 subl $0x1,-0x4(%ebp)
278: 8b 45 08 mov 0x8(%ebp),%eax
27b: 99 cltd
27c: f7 7d 0c idivl 0xc(%ebp)
27f: 89 45 08 mov %eax,0x8(%ebp)
282: 83 7d 08 00 cmpl $0x0,0x8(%ebp)
286: 74 06 je 28e <itoa+0x44>
288: 83 7d fc 00 cmpl $0x0,-0x4(%ebp)
28c: 75 cb jne 259 <itoa+0xf>
buf[i] = "0123456789abcdef"[val % base];
return &buf[i+1];
28e: 8b 45 fc mov -0x4(%ebp),%eax
291: 83 c0 01 add $0x1,%eax
294: 05 e0 0a 00 00 add $0xae0,%eax
}
299: c9 leave
29a: c3 ret
0000029b <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
29b: 55 push %ebp
29c: 89 e5 mov %esp,%ebp
29e: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
2a1: 8b 45 08 mov 0x8(%ebp),%eax
2a4: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
2a7: 8b 45 0c mov 0xc(%ebp),%eax
2aa: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
2ad: eb 17 jmp 2c6 <memmove+0x2b>
*dst++ = *src++;
2af: 8b 45 fc mov -0x4(%ebp),%eax
2b2: 8d 50 01 lea 0x1(%eax),%edx
2b5: 89 55 fc mov %edx,-0x4(%ebp)
2b8: 8b 55 f8 mov -0x8(%ebp),%edx
2bb: 8d 4a 01 lea 0x1(%edx),%ecx
2be: 89 4d f8 mov %ecx,-0x8(%ebp)
2c1: 0f b6 12 movzbl (%edx),%edx
2c4: 88 10 mov %dl,(%eax)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
2c6: 8b 45 10 mov 0x10(%ebp),%eax
2c9: 8d 50 ff lea -0x1(%eax),%edx
2cc: 89 55 10 mov %edx,0x10(%ebp)
2cf: 85 c0 test %eax,%eax
2d1: 7f dc jg 2af <memmove+0x14>
*dst++ = *src++;
return vdst;
2d3: 8b 45 08 mov 0x8(%ebp),%eax
}
2d6: c9 leave
2d7: c3 ret
000002d8 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
2d8: b8 01 00 00 00 mov $0x1,%eax
2dd: cd 40 int $0x40
2df: c3 ret
000002e0 <exit>:
SYSCALL(exit)
2e0: b8 02 00 00 00 mov $0x2,%eax
2e5: cd 40 int $0x40
2e7: c3 ret
000002e8 <wait>:
SYSCALL(wait)
2e8: b8 03 00 00 00 mov $0x3,%eax
2ed: cd 40 int $0x40
2ef: c3 ret
000002f0 <pipe>:
SYSCALL(pipe)
2f0: b8 04 00 00 00 mov $0x4,%eax
2f5: cd 40 int $0x40
2f7: c3 ret
000002f8 <read>:
SYSCALL(read)
2f8: b8 05 00 00 00 mov $0x5,%eax
2fd: cd 40 int $0x40
2ff: c3 ret
00000300 <write>:
SYSCALL(write)
300: b8 10 00 00 00 mov $0x10,%eax
305: cd 40 int $0x40
307: c3 ret
00000308 <close>:
SYSCALL(close)
308: b8 15 00 00 00 mov $0x15,%eax
30d: cd 40 int $0x40
30f: c3 ret
00000310 <kill>:
SYSCALL(kill)
310: b8 06 00 00 00 mov $0x6,%eax
315: cd 40 int $0x40
317: c3 ret
00000318 <exec>:
SYSCALL(exec)
318: b8 07 00 00 00 mov $0x7,%eax
31d: cd 40 int $0x40
31f: c3 ret
00000320 <open>:
SYSCALL(open)
320: b8 0f 00 00 00 mov $0xf,%eax
325: cd 40 int $0x40
327: c3 ret
00000328 <mknod>:
SYSCALL(mknod)
328: b8 11 00 00 00 mov $0x11,%eax
32d: cd 40 int $0x40
32f: c3 ret
00000330 <unlink>:
SYSCALL(unlink)
330: b8 12 00 00 00 mov $0x12,%eax
335: cd 40 int $0x40
337: c3 ret
00000338 <fstat>:
SYSCALL(fstat)
338: b8 08 00 00 00 mov $0x8,%eax
33d: cd 40 int $0x40
33f: c3 ret
00000340 <link>:
SYSCALL(link)
340: b8 13 00 00 00 mov $0x13,%eax
345: cd 40 int $0x40
347: c3 ret
00000348 <mkdir>:
SYSCALL(mkdir)
348: b8 14 00 00 00 mov $0x14,%eax
34d: cd 40 int $0x40
34f: c3 ret
00000350 <chdir>:
SYSCALL(chdir)
350: b8 09 00 00 00 mov $0x9,%eax
355: cd 40 int $0x40
357: c3 ret
00000358 <dup>:
SYSCALL(dup)
358: b8 0a 00 00 00 mov $0xa,%eax
35d: cd 40 int $0x40
35f: c3 ret
00000360 <getpid>:
SYSCALL(getpid)
360: b8 0b 00 00 00 mov $0xb,%eax
365: cd 40 int $0x40
367: c3 ret
00000368 <sbrk>:
SYSCALL(sbrk)
368: b8 0c 00 00 00 mov $0xc,%eax
36d: cd 40 int $0x40
36f: c3 ret
00000370 <sleep>:
SYSCALL(sleep)
370: b8 0d 00 00 00 mov $0xd,%eax
375: cd 40 int $0x40
377: c3 ret
00000378 <uptime>:
SYSCALL(uptime)
378: b8 0e 00 00 00 mov $0xe,%eax
37d: cd 40 int $0x40
37f: c3 ret
00000380 <randomX>:
SYSCALL(randomX)
380: b8 16 00 00 00 mov $0x16,%eax
385: cd 40 int $0x40
387: c3 ret
00000388 <setSeedX>:
SYSCALL(setSeedX)
388: b8 17 00 00 00 mov $0x17,%eax
38d: cd 40 int $0x40
38f: c3 ret
00000390 <uniformR>:
SYSCALL(uniformR)
390: b8 18 00 00 00 mov $0x18,%eax
395: cd 40 int $0x40
397: c3 ret
00000398 <setdeadline>:
398: b8 19 00 00 00 mov $0x19,%eax
39d: cd 40 int $0x40
39f: c3 ret
000003a0 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
3a0: 55 push %ebp
3a1: 89 e5 mov %esp,%ebp
3a3: 83 ec 18 sub $0x18,%esp
3a6: 8b 45 0c mov 0xc(%ebp),%eax
3a9: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
3ac: 83 ec 04 sub $0x4,%esp
3af: 6a 01 push $0x1
3b1: 8d 45 f4 lea -0xc(%ebp),%eax
3b4: 50 push %eax
3b5: ff 75 08 pushl 0x8(%ebp)
3b8: e8 43 ff ff ff call 300 <write>
3bd: 83 c4 10 add $0x10,%esp
}
3c0: 90 nop
3c1: c9 leave
3c2: c3 ret
000003c3 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
3c3: 55 push %ebp
3c4: 89 e5 mov %esp,%ebp
3c6: 53 push %ebx
3c7: 83 ec 24 sub $0x24,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
3ca: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
3d1: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
3d5: 74 17 je 3ee <printint+0x2b>
3d7: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
3db: 79 11 jns 3ee <printint+0x2b>
neg = 1;
3dd: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
3e4: 8b 45 0c mov 0xc(%ebp),%eax
3e7: f7 d8 neg %eax
3e9: 89 45 ec mov %eax,-0x14(%ebp)
3ec: eb 06 jmp 3f4 <printint+0x31>
} else {
x = xx;
3ee: 8b 45 0c mov 0xc(%ebp),%eax
3f1: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
3f4: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
3fb: 8b 4d f4 mov -0xc(%ebp),%ecx
3fe: 8d 41 01 lea 0x1(%ecx),%eax
401: 89 45 f4 mov %eax,-0xc(%ebp)
404: 8b 5d 10 mov 0x10(%ebp),%ebx
407: 8b 45 ec mov -0x14(%ebp),%eax
40a: ba 00 00 00 00 mov $0x0,%edx
40f: f7 f3 div %ebx
411: 89 d0 mov %edx,%eax
413: 0f b6 80 b0 0a 00 00 movzbl 0xab0(%eax),%eax
41a: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
}while((x /= base) != 0);
41e: 8b 5d 10 mov 0x10(%ebp),%ebx
421: 8b 45 ec mov -0x14(%ebp),%eax
424: ba 00 00 00 00 mov $0x0,%edx
429: f7 f3 div %ebx
42b: 89 45 ec mov %eax,-0x14(%ebp)
42e: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
432: 75 c7 jne 3fb <printint+0x38>
if(neg)
434: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
438: 74 2d je 467 <printint+0xa4>
buf[i++] = '-';
43a: 8b 45 f4 mov -0xc(%ebp),%eax
43d: 8d 50 01 lea 0x1(%eax),%edx
440: 89 55 f4 mov %edx,-0xc(%ebp)
443: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
while(--i >= 0)
448: eb 1d jmp 467 <printint+0xa4>
putc(fd, buf[i]);
44a: 8d 55 dc lea -0x24(%ebp),%edx
44d: 8b 45 f4 mov -0xc(%ebp),%eax
450: 01 d0 add %edx,%eax
452: 0f b6 00 movzbl (%eax),%eax
455: 0f be c0 movsbl %al,%eax
458: 83 ec 08 sub $0x8,%esp
45b: 50 push %eax
45c: ff 75 08 pushl 0x8(%ebp)
45f: e8 3c ff ff ff call 3a0 <putc>
464: 83 c4 10 add $0x10,%esp
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
467: 83 6d f4 01 subl $0x1,-0xc(%ebp)
46b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
46f: 79 d9 jns 44a <printint+0x87>
putc(fd, buf[i]);
}
471: 90 nop
472: 8b 5d fc mov -0x4(%ebp),%ebx
475: c9 leave
476: c3 ret
00000477 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
477: 55 push %ebp
478: 89 e5 mov %esp,%ebp
47a: 83 ec 28 sub $0x28,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
47d: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
484: 8d 45 0c lea 0xc(%ebp),%eax
487: 83 c0 04 add $0x4,%eax
48a: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
48d: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
494: e9 59 01 00 00 jmp 5f2 <printf+0x17b>
c = fmt[i] & 0xff;
499: 8b 55 0c mov 0xc(%ebp),%edx
49c: 8b 45 f0 mov -0x10(%ebp),%eax
49f: 01 d0 add %edx,%eax
4a1: 0f b6 00 movzbl (%eax),%eax
4a4: 0f be c0 movsbl %al,%eax
4a7: 25 ff 00 00 00 and $0xff,%eax
4ac: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
4af: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
4b3: 75 2c jne 4e1 <printf+0x6a>
if(c == '%'){
4b5: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
4b9: 75 0c jne 4c7 <printf+0x50>
state = '%';
4bb: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
4c2: e9 27 01 00 00 jmp 5ee <printf+0x177>
} else {
putc(fd, c);
4c7: 8b 45 e4 mov -0x1c(%ebp),%eax
4ca: 0f be c0 movsbl %al,%eax
4cd: 83 ec 08 sub $0x8,%esp
4d0: 50 push %eax
4d1: ff 75 08 pushl 0x8(%ebp)
4d4: e8 c7 fe ff ff call 3a0 <putc>
4d9: 83 c4 10 add $0x10,%esp
4dc: e9 0d 01 00 00 jmp 5ee <printf+0x177>
}
} else if(state == '%'){
4e1: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
4e5: 0f 85 03 01 00 00 jne 5ee <printf+0x177>
if(c == 'd'){
4eb: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
4ef: 75 1e jne 50f <printf+0x98>
printint(fd, *ap, 10, 1);
4f1: 8b 45 e8 mov -0x18(%ebp),%eax
4f4: 8b 00 mov (%eax),%eax
4f6: 6a 01 push $0x1
4f8: 6a 0a push $0xa
4fa: 50 push %eax
4fb: ff 75 08 pushl 0x8(%ebp)
4fe: e8 c0 fe ff ff call 3c3 <printint>
503: 83 c4 10 add $0x10,%esp
ap++;
506: 83 45 e8 04 addl $0x4,-0x18(%ebp)
50a: e9 d8 00 00 00 jmp 5e7 <printf+0x170>
} else if(c == 'x' || c == 'p'){
50f: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
513: 74 06 je 51b <printf+0xa4>
515: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
519: 75 1e jne 539 <printf+0xc2>
printint(fd, *ap, 16, 0);
51b: 8b 45 e8 mov -0x18(%ebp),%eax
51e: 8b 00 mov (%eax),%eax
520: 6a 00 push $0x0
522: 6a 10 push $0x10
524: 50 push %eax
525: ff 75 08 pushl 0x8(%ebp)
528: e8 96 fe ff ff call 3c3 <printint>
52d: 83 c4 10 add $0x10,%esp
ap++;
530: 83 45 e8 04 addl $0x4,-0x18(%ebp)
534: e9 ae 00 00 00 jmp 5e7 <printf+0x170>
} else if(c == 's'){
539: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
53d: 75 43 jne 582 <printf+0x10b>
s = (char*)*ap;
53f: 8b 45 e8 mov -0x18(%ebp),%eax
542: 8b 00 mov (%eax),%eax
544: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
547: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
54b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
54f: 75 25 jne 576 <printf+0xff>
s = "(null)";
551: c7 45 f4 3e 08 00 00 movl $0x83e,-0xc(%ebp)
while(*s != 0){
558: eb 1c jmp 576 <printf+0xff>
putc(fd, *s);
55a: 8b 45 f4 mov -0xc(%ebp),%eax
55d: 0f b6 00 movzbl (%eax),%eax
560: 0f be c0 movsbl %al,%eax
563: 83 ec 08 sub $0x8,%esp
566: 50 push %eax
567: ff 75 08 pushl 0x8(%ebp)
56a: e8 31 fe ff ff call 3a0 <putc>
56f: 83 c4 10 add $0x10,%esp
s++;
572: 83 45 f4 01 addl $0x1,-0xc(%ebp)
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
576: 8b 45 f4 mov -0xc(%ebp),%eax
579: 0f b6 00 movzbl (%eax),%eax
57c: 84 c0 test %al,%al
57e: 75 da jne 55a <printf+0xe3>
580: eb 65 jmp 5e7 <printf+0x170>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
582: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
586: 75 1d jne 5a5 <printf+0x12e>
putc(fd, *ap);
588: 8b 45 e8 mov -0x18(%ebp),%eax
58b: 8b 00 mov (%eax),%eax
58d: 0f be c0 movsbl %al,%eax
590: 83 ec 08 sub $0x8,%esp
593: 50 push %eax
594: ff 75 08 pushl 0x8(%ebp)
597: e8 04 fe ff ff call 3a0 <putc>
59c: 83 c4 10 add $0x10,%esp
ap++;
59f: 83 45 e8 04 addl $0x4,-0x18(%ebp)
5a3: eb 42 jmp 5e7 <printf+0x170>
} else if(c == '%'){
5a5: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
5a9: 75 17 jne 5c2 <printf+0x14b>
putc(fd, c);
5ab: 8b 45 e4 mov -0x1c(%ebp),%eax
5ae: 0f be c0 movsbl %al,%eax
5b1: 83 ec 08 sub $0x8,%esp
5b4: 50 push %eax
5b5: ff 75 08 pushl 0x8(%ebp)
5b8: e8 e3 fd ff ff call 3a0 <putc>
5bd: 83 c4 10 add $0x10,%esp
5c0: eb 25 jmp 5e7 <printf+0x170>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
5c2: 83 ec 08 sub $0x8,%esp
5c5: 6a 25 push $0x25
5c7: ff 75 08 pushl 0x8(%ebp)
5ca: e8 d1 fd ff ff call 3a0 <putc>
5cf: 83 c4 10 add $0x10,%esp
putc(fd, c);
5d2: 8b 45 e4 mov -0x1c(%ebp),%eax
5d5: 0f be c0 movsbl %al,%eax
5d8: 83 ec 08 sub $0x8,%esp
5db: 50 push %eax
5dc: ff 75 08 pushl 0x8(%ebp)
5df: e8 bc fd ff ff call 3a0 <putc>
5e4: 83 c4 10 add $0x10,%esp
}
state = 0;
5e7: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
5ee: 83 45 f0 01 addl $0x1,-0x10(%ebp)
5f2: 8b 55 0c mov 0xc(%ebp),%edx
5f5: 8b 45 f0 mov -0x10(%ebp),%eax
5f8: 01 d0 add %edx,%eax
5fa: 0f b6 00 movzbl (%eax),%eax
5fd: 84 c0 test %al,%al
5ff: 0f 85 94 fe ff ff jne 499 <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
605: 90 nop
606: c9 leave
607: c3 ret
00000608 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
608: 55 push %ebp
609: 89 e5 mov %esp,%ebp
60b: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
60e: 8b 45 08 mov 0x8(%ebp),%eax
611: 83 e8 08 sub $0x8,%eax
614: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
617: a1 08 0b 00 00 mov 0xb08,%eax
61c: 89 45 fc mov %eax,-0x4(%ebp)
61f: eb 24 jmp 645 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
621: 8b 45 fc mov -0x4(%ebp),%eax
624: 8b 00 mov (%eax),%eax
626: 3b 45 fc cmp -0x4(%ebp),%eax
629: 77 12 ja 63d <free+0x35>
62b: 8b 45 f8 mov -0x8(%ebp),%eax
62e: 3b 45 fc cmp -0x4(%ebp),%eax
631: 77 24 ja 657 <free+0x4f>
633: 8b 45 fc mov -0x4(%ebp),%eax
636: 8b 00 mov (%eax),%eax
638: 3b 45 f8 cmp -0x8(%ebp),%eax
63b: 77 1a ja 657 <free+0x4f>
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
63d: 8b 45 fc mov -0x4(%ebp),%eax
640: 8b 00 mov (%eax),%eax
642: 89 45 fc mov %eax,-0x4(%ebp)
645: 8b 45 f8 mov -0x8(%ebp),%eax
648: 3b 45 fc cmp -0x4(%ebp),%eax
64b: 76 d4 jbe 621 <free+0x19>
64d: 8b 45 fc mov -0x4(%ebp),%eax
650: 8b 00 mov (%eax),%eax
652: 3b 45 f8 cmp -0x8(%ebp),%eax
655: 76 ca jbe 621 <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
657: 8b 45 f8 mov -0x8(%ebp),%eax
65a: 8b 40 04 mov 0x4(%eax),%eax
65d: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
664: 8b 45 f8 mov -0x8(%ebp),%eax
667: 01 c2 add %eax,%edx
669: 8b 45 fc mov -0x4(%ebp),%eax
66c: 8b 00 mov (%eax),%eax
66e: 39 c2 cmp %eax,%edx
670: 75 24 jne 696 <free+0x8e>
bp->s.size += p->s.ptr->s.size;
672: 8b 45 f8 mov -0x8(%ebp),%eax
675: 8b 50 04 mov 0x4(%eax),%edx
678: 8b 45 fc mov -0x4(%ebp),%eax
67b: 8b 00 mov (%eax),%eax
67d: 8b 40 04 mov 0x4(%eax),%eax
680: 01 c2 add %eax,%edx
682: 8b 45 f8 mov -0x8(%ebp),%eax
685: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
688: 8b 45 fc mov -0x4(%ebp),%eax
68b: 8b 00 mov (%eax),%eax
68d: 8b 10 mov (%eax),%edx
68f: 8b 45 f8 mov -0x8(%ebp),%eax
692: 89 10 mov %edx,(%eax)
694: eb 0a jmp 6a0 <free+0x98>
} else
bp->s.ptr = p->s.ptr;
696: 8b 45 fc mov -0x4(%ebp),%eax
699: 8b 10 mov (%eax),%edx
69b: 8b 45 f8 mov -0x8(%ebp),%eax
69e: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
6a0: 8b 45 fc mov -0x4(%ebp),%eax
6a3: 8b 40 04 mov 0x4(%eax),%eax
6a6: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
6ad: 8b 45 fc mov -0x4(%ebp),%eax
6b0: 01 d0 add %edx,%eax
6b2: 3b 45 f8 cmp -0x8(%ebp),%eax
6b5: 75 20 jne 6d7 <free+0xcf>
p->s.size += bp->s.size;
6b7: 8b 45 fc mov -0x4(%ebp),%eax
6ba: 8b 50 04 mov 0x4(%eax),%edx
6bd: 8b 45 f8 mov -0x8(%ebp),%eax
6c0: 8b 40 04 mov 0x4(%eax),%eax
6c3: 01 c2 add %eax,%edx
6c5: 8b 45 fc mov -0x4(%ebp),%eax
6c8: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
6cb: 8b 45 f8 mov -0x8(%ebp),%eax
6ce: 8b 10 mov (%eax),%edx
6d0: 8b 45 fc mov -0x4(%ebp),%eax
6d3: 89 10 mov %edx,(%eax)
6d5: eb 08 jmp 6df <free+0xd7>
} else
p->s.ptr = bp;
6d7: 8b 45 fc mov -0x4(%ebp),%eax
6da: 8b 55 f8 mov -0x8(%ebp),%edx
6dd: 89 10 mov %edx,(%eax)
freep = p;
6df: 8b 45 fc mov -0x4(%ebp),%eax
6e2: a3 08 0b 00 00 mov %eax,0xb08
}
6e7: 90 nop
6e8: c9 leave
6e9: c3 ret
000006ea <morecore>:
static Header*
morecore(uint nu)
{
6ea: 55 push %ebp
6eb: 89 e5 mov %esp,%ebp
6ed: 83 ec 18 sub $0x18,%esp
char *p;
Header *hp;
if(nu < 4096)
6f0: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
6f7: 77 07 ja 700 <morecore+0x16>
nu = 4096;
6f9: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
700: 8b 45 08 mov 0x8(%ebp),%eax
703: c1 e0 03 shl $0x3,%eax
706: 83 ec 0c sub $0xc,%esp
709: 50 push %eax
70a: e8 59 fc ff ff call 368 <sbrk>
70f: 83 c4 10 add $0x10,%esp
712: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
715: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
719: 75 07 jne 722 <morecore+0x38>
return 0;
71b: b8 00 00 00 00 mov $0x0,%eax
720: eb 26 jmp 748 <morecore+0x5e>
hp = (Header*)p;
722: 8b 45 f4 mov -0xc(%ebp),%eax
725: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
728: 8b 45 f0 mov -0x10(%ebp),%eax
72b: 8b 55 08 mov 0x8(%ebp),%edx
72e: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
731: 8b 45 f0 mov -0x10(%ebp),%eax
734: 83 c0 08 add $0x8,%eax
737: 83 ec 0c sub $0xc,%esp
73a: 50 push %eax
73b: e8 c8 fe ff ff call 608 <free>
740: 83 c4 10 add $0x10,%esp
return freep;
743: a1 08 0b 00 00 mov 0xb08,%eax
}
748: c9 leave
749: c3 ret
0000074a <malloc>:
void*
malloc(uint nbytes)
{
74a: 55 push %ebp
74b: 89 e5 mov %esp,%ebp
74d: 83 ec 18 sub $0x18,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
750: 8b 45 08 mov 0x8(%ebp),%eax
753: 83 c0 07 add $0x7,%eax
756: c1 e8 03 shr $0x3,%eax
759: 83 c0 01 add $0x1,%eax
75c: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
75f: a1 08 0b 00 00 mov 0xb08,%eax
764: 89 45 f0 mov %eax,-0x10(%ebp)
767: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
76b: 75 23 jne 790 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
76d: c7 45 f0 00 0b 00 00 movl $0xb00,-0x10(%ebp)
774: 8b 45 f0 mov -0x10(%ebp),%eax
777: a3 08 0b 00 00 mov %eax,0xb08
77c: a1 08 0b 00 00 mov 0xb08,%eax
781: a3 00 0b 00 00 mov %eax,0xb00
base.s.size = 0;
786: c7 05 04 0b 00 00 00 movl $0x0,0xb04
78d: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
790: 8b 45 f0 mov -0x10(%ebp),%eax
793: 8b 00 mov (%eax),%eax
795: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
798: 8b 45 f4 mov -0xc(%ebp),%eax
79b: 8b 40 04 mov 0x4(%eax),%eax
79e: 3b 45 ec cmp -0x14(%ebp),%eax
7a1: 72 4d jb 7f0 <malloc+0xa6>
if(p->s.size == nunits)
7a3: 8b 45 f4 mov -0xc(%ebp),%eax
7a6: 8b 40 04 mov 0x4(%eax),%eax
7a9: 3b 45 ec cmp -0x14(%ebp),%eax
7ac: 75 0c jne 7ba <malloc+0x70>
prevp->s.ptr = p->s.ptr;
7ae: 8b 45 f4 mov -0xc(%ebp),%eax
7b1: 8b 10 mov (%eax),%edx
7b3: 8b 45 f0 mov -0x10(%ebp),%eax
7b6: 89 10 mov %edx,(%eax)
7b8: eb 26 jmp 7e0 <malloc+0x96>
else {
p->s.size -= nunits;
7ba: 8b 45 f4 mov -0xc(%ebp),%eax
7bd: 8b 40 04 mov 0x4(%eax),%eax
7c0: 2b 45 ec sub -0x14(%ebp),%eax
7c3: 89 c2 mov %eax,%edx
7c5: 8b 45 f4 mov -0xc(%ebp),%eax
7c8: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
7cb: 8b 45 f4 mov -0xc(%ebp),%eax
7ce: 8b 40 04 mov 0x4(%eax),%eax
7d1: c1 e0 03 shl $0x3,%eax
7d4: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
7d7: 8b 45 f4 mov -0xc(%ebp),%eax
7da: 8b 55 ec mov -0x14(%ebp),%edx
7dd: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
7e0: 8b 45 f0 mov -0x10(%ebp),%eax
7e3: a3 08 0b 00 00 mov %eax,0xb08
return (void*)(p + 1);
7e8: 8b 45 f4 mov -0xc(%ebp),%eax
7eb: 83 c0 08 add $0x8,%eax
7ee: eb 3b jmp 82b <malloc+0xe1>
}
if(p == freep)
7f0: a1 08 0b 00 00 mov 0xb08,%eax
7f5: 39 45 f4 cmp %eax,-0xc(%ebp)
7f8: 75 1e jne 818 <malloc+0xce>
if((p = morecore(nunits)) == 0)
7fa: 83 ec 0c sub $0xc,%esp
7fd: ff 75 ec pushl -0x14(%ebp)
800: e8 e5 fe ff ff call 6ea <morecore>
805: 83 c4 10 add $0x10,%esp
808: 89 45 f4 mov %eax,-0xc(%ebp)
80b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
80f: 75 07 jne 818 <malloc+0xce>
return 0;
811: b8 00 00 00 00 mov $0x0,%eax
816: eb 13 jmp 82b <malloc+0xe1>
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
818: 8b 45 f4 mov -0xc(%ebp),%eax
81b: 89 45 f0 mov %eax,-0x10(%ebp)
81e: 8b 45 f4 mov -0xc(%ebp),%eax
821: 8b 00 mov (%eax),%eax
823: 89 45 f4 mov %eax,-0xc(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
826: e9 6d ff ff ff jmp 798 <malloc+0x4e>
}
82b: c9 leave
82c: c3 ret
|
; Created with Stephane Hockenhull's Game Boy Tracker
; Music Patterns
SECTION "Title Theme Pattern 0", ROMX
PATTERN_Title0:
DB $0A
DB $07, $02, $09, $01, $0E, $06, $02, $23, $06, $00, $0B, $02, $09, $02, $02, $0B, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $14, $06, $02, $2B, $06, $01
DB $0C, $02, $27, $0B, $02, $09, $01, $13, $06, $0B, $02, $01, $02, $23, $06, $01, $0C, $02, $09, $01, $11, $06, $02, $27, $0B, $02, $01, $0B, $02, $2B, $06, $01
DB $0B, $02, $09, $0B, $02, $01, $01, $09, $06, $02, $27, $0B, $01, $0C, $06, $0B, $02, $0D, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $0D, $02, $02, $0B, $02
DB $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $14, $06, $02, $2B, $06, $01, $0C, $02, $27, $0B, $02, $0D, $01, $13, $06, $0B, $02, $01, $02, $23, $06, $01, $0C
DB $02, $0D, $01, $11, $06, $02, $27, $0B, $02, $01, $0B, $02, $2B, $06, $01, $0B, $02, $0D, $0B, $02, $01, $01, $13, $06, $02, $27, $0B, $01, $15, $06, $02, $27
DB $0B, $02, $09, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $09, $02, $02, $0B, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $14, $06, $02, $2B, $06, $01
DB $0C, $02, $27, $0B, $02, $09, $01, $13, $06, $0B, $02, $01, $02, $23, $06, $01, $0C, $02, $09, $01, $11, $06, $02, $27, $0B, $02, $01, $0B, $02, $2B, $06, $01
DB $0B, $02, $09, $0B, $02, $01, $01, $09, $06, $02, $27, $0B, $01, $0C, $06, $0B, $02, $0D, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $0D, $02, $02, $0B, $02
DB $27, $0C, $01, $07, $06, $02, $2B, $06, $01, $0C, $02, $27, $0B, $02, $0D, $0B, $02, $01, $01, $08, $06, $02, $2B, $06, $01, $0C, $02, $0D, $02, $27, $0B, $02
DB $01, $01, $09, $06, $02, $2B, $0B, $06, $01, $0B, $02, $0D, $02, $27, $0B, $02, $01, $01, $0C, $06, $02, $2B, $00, $0D, $07
SECTION "Title Theme Pattern 1", ROMX
PATTERN_Title1:
DB $0A
DB $07, $02, $09, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $09, $02, $02, $0B, $01, $1F, $10, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $21, $10, $01
DB $14, $06, $02, $2B, $06, $01, $0C, $01, $24, $10, $02, $27, $0B, $02, $00, $02, $09, $01, $13, $06, $0B, $01, $21, $10, $02, $01, $02, $23, $06, $01, $0C, $01
DB $24, $10, $02, $09, $01, $11, $06, $02, $27, $0B, $02, $00, $02, $01, $0B, $01, $26, $10, $02, $2B, $06, $01, $0B, $02, $09, $0B, $01, $28, $10, $02, $01, $01
DB $09, $06, $02, $27, $0B, $01, $0C, $06, $0B, $04, $40, $02, $0D, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $0D, $02, $02, $0B, $02, $2F, $0B, $01, $0E, $06
DB $02, $27, $0B, $04, $70, $01, $14, $06, $02, $2B, $06, $01, $0C, $02, $27, $0B, $02, $0D, $01, $13, $06, $0B, $02, $01, $02, $23, $06, $01, $0C, $0F, $14, $01
DB $26, $10, $02, $0D, $01, $11, $06, $02, $27, $0B, $02, $01, $0B, $01, $28, $10, $05, $00, $02, $2B, $06, $01, $0B, $02, $00, $02, $0D, $0B, $01, $29, $10, $02
DB $01, $01, $13, $06, $02, $27, $0B, $02, $00, $01, $15, $06, $02, $27, $0B, $04, $60, $01, $2B, $10, $02, $09, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $09
DB $02, $02, $0B, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $14, $06, $02, $2B, $06, $01, $0C, $01, $29, $10, $05, $00, $02, $27, $0B, $02, $09, $01, $13
DB $06, $0B, $02, $01, $02, $23, $06, $01, $0C, $04, $50, $02, $09, $01, $11, $06, $02, $27, $0B, $02, $01, $0B, $02, $2B, $06, $01, $0B, $02, $09, $0B, $02, $01
DB $01, $09, $06, $02, $27, $0B, $01, $0C, $06, $0B, $02, $0D, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $0D, $02, $02, $0B, $02, $27, $0C, $01, $07, $06, $02
DB $2B, $06, $01, $0C, $02, $27, $0B, $02, $0D, $0B, $02, $01, $01, $08, $06, $02, $2B, $06, $01, $0C, $01, $28, $10, $05, $00, $02, $0D, $02, $27, $0B, $02, $01
DB $01, $09, $06, $02, $2B, $0B, $06, $01, $0B, $01, $24, $10, $02, $0D, $02, $27, $0B, $02, $01, $01, $0C, $06, $02, $2B, $0C, $01, $21, $10, $02, $09, $01, $0E
DB $06, $02, $23, $06, $01, $0B, $02, $09, $02, $02, $0B, $01, $1F, $10, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $21, $10, $01, $14, $06, $02, $2B, $06
DB $01, $0C, $01, $24, $10, $02, $27, $0B, $02, $00, $02, $09, $01, $13, $06, $0B, $01, $21, $10, $02, $01, $02, $23, $06, $01, $0C, $01, $24, $10, $02, $09, $01
DB $11, $06, $02, $27, $0B, $02, $00, $02, $01, $0B, $01, $26, $10, $02, $2B, $06, $01, $0B, $02, $09, $0B, $01, $28, $10, $02, $01, $01, $09, $06, $02, $27, $0B
DB $01, $0C, $06, $0B, $04, $40, $02, $0D, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $0D, $02, $02, $0B, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $04, $70
DB $01, $14, $06, $02, $2B, $06, $01, $0C, $02, $27, $0B, $02, $0D, $01, $13, $06, $0B, $02, $01, $02, $23, $06, $01, $0C, $01, $26, $10, $05, $00, $02, $0D, $01
DB $11, $06, $02, $27, $0B, $02, $01, $0B, $01, $28, $10, $02, $2B, $06, $01, $0B, $02, $00, $02, $0D, $0B, $01, $29, $10, $02, $01, $01, $13, $06, $02, $27, $0B
DB $02, $00, $01, $15, $06, $02, $27, $0B, $04, $60, $01, $2D, $10, $02, $09, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $09, $02, $02, $0B, $02, $2F, $0B, $01
DB $0E, $06, $02, $27, $0B, $01, $14, $06, $02, $2B, $06, $01, $0B, $10, $1C, $0B, $01, $2B, $10, $05, $00, $02, $27, $0B, $02, $09, $01, $13, $06, $0B, $02, $01
DB $02, $23, $06, $01, $0C, $04, $50, $02, $09, $01, $11, $06, $02, $27, $0B, $02, $01, $0B, $02, $2B, $06, $01, $0B, $02, $09, $0B, $02, $01, $01, $09, $06, $02
DB $27, $0B, $01, $0C, $06, $0B, $02, $0D, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $0D, $02, $02, $0B, $02, $27, $0B, $10, $1C, $0B, $01, $29, $10, $05, $00
DB $01, $07, $06, $02, $2B, $06, $01, $0C, $02, $27, $0B, $10, $1C, $02, $0D, $0B, $01, $28, $10, $05, $00, $02, $01, $01, $08, $06, $02, $2B, $06, $01, $0C, $02
DB $0D, $02, $27, $0B, $01, $24, $10, $02, $01, $01, $09, $06, $02, $2B, $0B, $06, $01, $0B, $02, $0D, $02, $27, $0B, $01, $21, $10, $02, $01, $01, $0C, $06, $02
DB $2B, $0C, $01, $1F, $10, $02, $15, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $02, $0B, $01, $22, $10, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $24
DB $10, $01, $14, $06, $02, $2B, $06, $01, $0C, $01, $1F, $10, $02, $15, $02, $27, $0B, $0F, $1C, $01, $13, $06, $0B, $01, $22, $10, $05, $00, $02, $23, $06, $01
DB $0C, $01, $24, $10, $01, $11, $06, $02, $27, $0C, $02, $2B, $06, $01, $0B, $10, $1C, $0B, $01, $21, $10, $05, $00, $02, $19, $01, $09, $06, $02, $27, $0B, $01
DB $0C, $06, $0B, $01, $0E, $06, $02, $23, $06, $01, $0B, $0F, $1C, $02, $02, $0B, $01, $24, $10, $05, $00, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $26
DB $10, $01, $14, $06, $02, $2B, $06, $01, $0C, $01, $21, $10, $02, $19, $02, $27, $0B, $01, $13, $06, $0B, $01, $24, $10, $02, $23, $06, $01, $0C, $01, $26, $10
DB $01, $11, $06, $02, $27, $0C, $02, $19, $02, $2B, $06, $01, $0C, $01, $13, $06, $02, $27, $0B, $01, $15, $06, $02, $27, $0B, $01, $22, $10, $02, $1D, $01, $0E
DB $06, $02, $23, $06, $01, $0B, $0F, $1C, $02, $02, $0B, $01, $25, $10, $05, $00, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $27, $10, $01, $14, $06, $02
DB $2B, $06, $01, $0C, $01, $22, $10, $02, $1D, $02, $27, $0B, $01, $13, $06, $0B, $01, $25, $10, $02, $23, $06, $01, $0C, $01, $27, $10, $01, $11, $06, $02, $27
DB $0C, $01, $28, $10, $02, $1D, $02, $2B, $06, $01, $0C, $01, $29, $10, $02, $31, $01, $09, $06, $02, $27, $0B, $01, $0C, $06, $0B, $01, $0E, $06, $02, $23, $06
DB $01, $0B, $0F, $1C, $02, $02, $0B, $01, $2C, $10, $05, $00, $02, $31, $02, $27, $0C, $01, $07, $06, $02, $2B, $06, $01, $0C, $04, $60, $01, $2E, $10, $02, $35
DB $02, $27, $0C, $01, $08, $06, $02, $2B, $06, $01, $0B, $10, $1C, $0B, $01, $2C, $10, $05, $00, $02, $09, $02, $27, $0B, $02, $09, $01, $09, $06, $02, $2B, $0B
DB $01, $29, $10, $06, $01, $0B, $02, $27, $0B, $01, $28, $10, $01, $0C, $06, $02, $2B, $0C, $01, $27, $10, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $09, $02
DB $02, $0B, $01, $25, $10, $02, $01, $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $22, $10, $02, $09, $01, $14, $06, $02, $2B, $06, $01, $0B, $02, $01, $0B
DB $01, $21, $10, $02, $27, $0B, $02, $09, $01, $13, $06, $0B, $02, $01, $02, $23, $06, $01, $0C, $04, $40, $02, $0D, $01, $11, $06, $02, $27, $0B, $02, $0D, $0B
DB $02, $2B, $06, $01, $0C, $04, $70, $01, $09, $06, $02, $27, $0B, $01, $0C, $06, $0B, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $0D, $02, $02, $0B, $02, $01
DB $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $01, $20, $10, $02, $0D, $01, $14, $06, $02, $2B, $06, $01, $0B, $02, $01, $0B, $01, $1B, $10, $02, $27, $0B, $02
DB $0D, $01, $13, $06, $0B, $04, $60, $02, $01, $02, $23, $06, $01, $0C, $02, $09, $01, $11, $06, $02, $27, $0B, $02, $09, $0B, $01, $1A, $10, $05, $00, $02, $2B
DB $06, $01, $0C, $02, $00, $01, $13, $06, $02, $27, $0B, $01, $15, $06, $02, $27, $0B, $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $09, $02, $02, $0B, $02, $01
DB $02, $2F, $0B, $01, $0E, $06, $02, $27, $0B, $02, $09, $01, $14, $06, $02, $2B, $06, $01, $0B, $02, $01, $0B, $02, $27, $0B, $02, $09, $01, $13, $06, $0B, $02
DB $01, $02, $23, $06, $01, $0C, $02, $0D, $01, $11, $06, $02, $27, $0B, $02, $0D, $0B, $02, $2B, $06, $01, $0C, $01, $09, $06, $02, $27, $0B, $01, $0C, $06, $0B
DB $01, $0E, $06, $02, $23, $06, $01, $0B, $02, $0D, $02, $02, $0B, $02, $01, $02, $27, $0C, $02, $0D, $01, $07, $06, $02, $2B, $06, $01, $0B, $02, $01, $0B, $02
DB $27, $0B, $02, $0D, $0B, $02, $01, $01, $08, $06, $02, $2B, $06, $01, $0C, $02, $27, $0B, $01, $09, $06, $02, $2B, $0B, $06, $01, $0B, $02, $27, $0B, $01, $0C
DB $06, $02, $2B, $00, $0D, $07
SECTION "Title Theme Pattern 2", ROMX
PATTERN_Title2:
DB $0A
DB $07, $01, $09, $06, $02, $2F, $00, $0A, $00, $0A, $00, $0A, $00, $09, $01, $0A, $06, $02, $27, $00, $09, $00, $09, $00, $08, $00, $08, $01, $0B, $06, $02, $23
DB $00, $0F, $02, $2B, $06, $02, $0B, $02, $02, $02, $03, $0B, $01, $0C, $06, $02, $2B, $06, $02, $0B, $02, $02, $02, $03, $0B, $02, $06, $02, $2B, $06, $02, $0B
DB $02, $02, $02, $03, $00, $06, $07
SECTION "Title Theme End Pattern", ROMX
PATTERN_TitleLAST:
DB $08, $F8, $FF, $07
; Music Pattern Order Table
SECTION "Title Theme Pattern Table", ROMX
Music_Title::
DW PATTERN_Title2, BANK(PATTERN_Title2)
DW PATTERN_Title0, BANK(PATTERN_Title0)
DW PATTERN_Title1, BANK(PATTERN_Title1)
DW PATTERN_TitleLAST, BANK(PATTERN_TitleLAST)
; Instruments
SECTION "Title Theme Instruments", ROMX
INSTTitle_CHNLOFF: DB $05, $00, $01, $80, $02
INSTTitle1_CHNL2:
DB $07, $05, $20
DB $0A, $00, $FF, $FF
DB $FF, $FF, $FF, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $01, $80
DB $00, $25, $02
INSTTitle2_CHNL1:
DB $07, $0A, $40
DB $05, $F0, $04, $1F
DB $87, $00, $02, $05
DB $A4, $04, $43, $87
DB $00, $02, $05, $A4
DB $04, $6A, $87, $00
DB $02, $05, $94, $04
DB $1F, $87, $00, $02
DB $05, $94, $04, $43
DB $87, $00, $02, $05
DB $84, $04, $6A, $87
DB $00, $02, $05, $84
DB $04, $1F, $87, $00
DB $02, $05, $74, $04
DB $43, $87, $00, $02
DB $05, $74, $04, $6A
DB $87, $00, $02, $05
DB $64, $04, $1F, $87
DB $00, $02, $05, $64
DB $04, $43, $87, $00
DB $02, $05, $54, $04
DB $6A, $87, $00, $02
DB $05, $54, $04, $1F
DB $87, $00, $02, $05
DB $44, $04, $43, $87
DB $00, $02, $05, $44
DB $04, $6A, $87, $00
DB $02, $05, $34, $04
DB $1F, $87, $00, $02
DB $05, $34, $04, $43
DB $87, $00, $02, $05
DB $24, $04, $6A, $87
DB $00, $02, $05, $24
DB $04, $1F, $87, $00
DB $02, $05, $14, $04
DB $43, $87, $00, $02
DB $05, $14, $04, $6A
DB $87, $00, $02, $05
DB $00, $04, $1F, $87
DB $02
INSTTitle3_CHNL1:
DB $07, $0A, $40
DB $05, $F0, $04, $04
DB $87, $00, $02, $05
DB $A4, $04, $38, $87
DB $00, $02, $05, $A4
DB $04, $58, $87, $00
DB $02, $05, $94, $04
DB $04, $87, $00, $02
DB $05, $94, $04, $38
DB $87, $00, $02, $05
DB $84, $04, $58, $87
DB $00, $02, $05, $84
DB $04, $04, $87, $00
DB $02, $05, $74, $04
DB $38, $87, $00, $02
DB $05, $74, $04, $58
DB $87, $00, $02, $05
DB $64, $04, $04, $87
DB $00, $02, $05, $64
DB $04, $38, $87, $00
DB $02, $05, $54, $04
DB $58, $87, $00, $02
DB $05, $54, $04, $04
DB $87, $00, $02, $05
DB $44, $04, $38, $87
DB $00, $02, $05, $44
DB $04, $58, $87, $00
DB $02, $05, $34, $04
DB $04, $87, $00, $02
DB $05, $34, $04, $38
DB $87, $00, $02, $05
DB $24, $04, $58, $87
DB $00, $02, $05, $24
DB $04, $04, $87, $00
DB $02, $05, $14, $04
DB $38, $87, $00, $02
DB $05, $14, $04, $58
DB $87, $00, $02, $05
DB $00, $04, $04, $87
DB $02
INSTTitle4_CHNL0:
DB $07, $0B, $08
DB $0A, $80, $05, $F0
DB $01, $80, $00, $28
DB $05, $F7, $01, $80
DB $02
INSTTitle5_CHNL1:
DB $07, $0A, $40
DB $05, $F0, $04, $B0
DB $86, $00, $02, $05
DB $A4, $04, $E5, $86
DB $00, $02, $05, $A4
DB $04, $1F, $87, $00
DB $02, $05, $94, $04
DB $B0, $86, $00, $02
DB $05, $94, $04, $E5
DB $86, $00, $02, $05
DB $84, $04, $1F, $87
DB $00, $02, $05, $84
DB $04, $B0, $86, $00
DB $02, $05, $74, $04
DB $E5, $86, $00, $02
DB $05, $74, $04, $1F
DB $87, $00, $02, $05
DB $64, $04, $B0, $86
DB $00, $02, $05, $64
DB $04, $E5, $86, $00
DB $02, $05, $54, $04
DB $1F, $87, $00, $02
DB $05, $54, $04, $B0
DB $86, $00, $02, $05
DB $44, $04, $E5, $86
DB $00, $02, $05, $44
DB $04, $1F, $87, $00
DB $02, $05, $34, $04
DB $B0, $86, $00, $02
DB $05, $34, $04, $E5
DB $86, $00, $02, $05
DB $24, $04, $1F, $87
DB $00, $02, $05, $24
DB $04, $B0, $86, $00
DB $02, $05, $14, $04
DB $E5, $86, $00, $02
DB $05, $14, $04, $1F
DB $87, $00, $02, $05
DB $00, $04, $B0, $86
DB $02
INSTTitle6_CHNL1:
DB $07, $0A, $40
DB $05, $F0, $04, $D4
DB $86, $00, $02, $05
DB $A4, $04, $04, $87
DB $00, $02, $05, $A4
DB $04, $38, $87, $00
DB $02, $05, $94, $04
DB $D4, $86, $00, $02
DB $05, $94, $04, $04
DB $87, $00, $02, $05
DB $84, $04, $38, $87
DB $00, $02, $05, $84
DB $04, $D4, $86, $00
DB $02, $05, $74, $04
DB $04, $87, $00, $02
DB $05, $74, $04, $38
DB $87, $00, $02, $05
DB $64, $04, $D4, $86
DB $00, $02, $05, $64
DB $04, $04, $87, $00
DB $02, $05, $54, $04
DB $38, $87, $00, $02
DB $05, $54, $04, $D4
DB $86, $00, $02, $05
DB $44, $04, $04, $87
DB $00, $02, $05, $44
DB $04, $38, $87, $00
DB $02, $05, $34, $04
DB $D4, $86, $00, $02
DB $05, $34, $04, $04
DB $87, $00, $02, $05
DB $24, $04, $38, $87
DB $00, $02, $05, $24
DB $04, $D4, $86, $00
DB $02, $05, $14, $04
DB $04, $87, $00, $02
DB $05, $14, $04, $38
DB $87, $00, $02, $05
DB $00, $04, $D4, $86
DB $02
INSTTitle7_CHNL1:
DB $07, $0A, $40
DB $05, $F0, $04, $E5
DB $86, $00, $02, $05
DB $A4, $04, $12, $87
DB $00, $02, $05, $A4
DB $04, $43, $87, $00
DB $02, $05, $94, $04
DB $E5, $86, $00, $02
DB $05, $94, $04, $12
DB $87, $00, $02, $05
DB $84, $04, $43, $87
DB $00, $02, $05, $84
DB $04, $E5, $86, $00
DB $02, $05, $74, $04
DB $12, $87, $00, $02
DB $05, $74, $04, $43
DB $87, $00, $02, $05
DB $64, $04, $E5, $86
DB $00, $02, $05, $64
DB $04, $12, $87, $00
DB $02, $05, $54, $04
DB $43, $87, $00, $02
DB $05, $54, $04, $E5
DB $86, $00, $02, $05
DB $44, $04, $12, $87
DB $00, $02, $05, $44
DB $04, $43, $87, $00
DB $02, $05, $34, $04
DB $E5, $86, $00, $02
DB $05, $34, $04, $12
DB $87, $00, $02, $05
DB $24, $04, $43, $87
DB $00, $02, $05, $24
DB $04, $E5, $86, $00
DB $02, $05, $14, $04
DB $12, $87, $00, $02
DB $05, $14, $04, $43
DB $87, $00, $02, $05
DB $00, $04, $E5, $86
DB $02
INSTTitle8_CHNL3:
DB $07, $0A, $3D
DB $05, $91, $01, $80
DB $00, $01, $0A, $4F
DB $01, $80, $00, $01
DB $0A, $44, $01, $80
DB $02
INSTTitle9_CHNL3:
DB $07, $0A, $2D
DB $05, $A2, $01, $80
DB $00, $01, $0A, $16
DB $01, $80, $02
INSTTitle10_CHNL3:
DB $07, $0A, $3C
DB $05, $B1, $01, $80
DB $00, $01, $0A, $3E
DB $01, $80, $00, $01
DB $0A, $5D, $01, $80
DB $00, $01, $0A, $26
DB $01, $80, $00, $01
DB $0A, $27, $01, $80
DB $02
INSTTitle11_CHNL3:
DB $07, $0A, $50
DB $05, $81, $01, $80
DB $02
INSTTitle12_CHNL1:
DB $07, $0A, $40
DB $05, $F0, $04, $04
DB $87, $00, $02, $05
DB $A4, $04, $43, $87
DB $00, $02, $05, $A4
DB $04, $61, $87, $00
DB $02, $05, $94, $04
DB $04, $87, $00, $02
DB $05, $94, $04, $43
DB $87, $00, $02, $05
DB $84, $04, $61, $87
DB $00, $02, $05, $84
DB $04, $04, $87, $00
DB $02, $05, $74, $04
DB $43, $87, $00, $02
DB $05, $74, $04, $61
DB $87, $00, $02, $05
DB $64, $04, $04, $87
DB $00, $02, $05, $64
DB $04, $43, $87, $00
DB $02, $05, $54, $04
DB $61, $87, $00, $02
DB $05, $54, $04, $04
DB $87, $00, $02, $05
DB $44, $04, $43, $87
DB $00, $02, $05, $44
DB $04, $61, $87, $00
DB $02, $05, $34, $04
DB $04, $87, $00, $02
DB $05, $34, $04, $43
DB $87, $00, $02, $05
DB $24, $04, $61, $87
DB $00, $02, $05, $24
DB $04, $04, $87, $00
DB $02, $05, $14, $04
DB $43, $87, $00, $02
DB $05, $14, $04, $61
DB $87, $00, $02, $05
DB $00, $04, $04, $87
DB $02
INSTTitle13_CHNL1:
DB $07, $0A, $40
DB $05, $F0, $04, $12
DB $87, $00, $02, $05
DB $A4, $04, $43, $87
DB $00, $02, $05, $A4
DB $04, $73, $87, $00
DB $02, $05, $94, $04
DB $12, $87, $00, $02
DB $05, $94, $04, $43
DB $87, $00, $02, $05
DB $84, $04, $73, $87
DB $00, $02, $05, $84
DB $04, $12, $87, $00
DB $02, $05, $74, $04
DB $43, $87, $00, $02
DB $05, $74, $04, $73
DB $87, $00, $02, $05
DB $64, $04, $12, $87
DB $00, $02, $05, $64
DB $04, $43, $87, $00
DB $02, $05, $54, $04
DB $73, $87, $00, $02
DB $05, $54, $04, $12
DB $87, $00, $02, $05
DB $44, $04, $43, $87
DB $00, $02, $05, $44
DB $04, $73, $87, $00
DB $02, $05, $34, $04
DB $12, $87, $00, $02
DB $05, $34, $04, $43
DB $87, $00, $02, $05
DB $24, $04, $73, $87
DB $00, $02, $05, $24
DB $04, $12, $87, $00
DB $02, $05, $14, $04
DB $43, $87, $00, $02
DB $05, $14, $04, $73
DB $87, $00, $02, $05
DB $00, $04, $12, $87
DB $02
; Instrument Table
Inst_Title::
DW INSTTitle_CHNLOFF
DW INSTTitle1_CHNL2
DW INSTTitle2_CHNL1
DW INSTTitle3_CHNL1
DW INSTTitle4_CHNL0
DW INSTTitle5_CHNL1
DW INSTTitle6_CHNL1
DW INSTTitle7_CHNL1
DW INSTTitle8_CHNL3
DW INSTTitle9_CHNL3
DW INSTTitle10_CHNL3
DW INSTTitle11_CHNL3
DW INSTTitle12_CHNL1
DW INSTTitle13_CHNL1
|
;
;
; ZX Maths Routines
;
; 7/12/02 - Stefano Bodrato
;
; $Id: atan.asm,v 1.5 2016-06-22 19:59:18 dom Exp $
;
;double atan(double)
;Number in FA..
IF FORts2068
INCLUDE "target/ts2068/def/ts2068fp.def"
ENDIF
IF FORzx
INCLUDE "target/zx/def/zxfp.def"
ENDIF
IF FORzx81
INCLUDE "target/zx81/def/81fp.def"
ENDIF
IF FORlambda
INCLUDE "target/lambda/def/lambdafp.def"
ENDIF
SECTION code_fp
PUBLIC atan
EXTERN fsetup1
EXTERN stkequ
.atan
call fsetup1
IF FORlambda
defb ZXFP_ATN + 128
ELSE
defb ZXFP_ATN
defb ZXFP_END_CALC
ENDIF
jp stkequ
|
; A151781: Partial sums of A151779.
; 1,7,13,43,49,79,109,259,265,295,325,475,505,655,805,1555,1561,1591,1621,1771,1801,1951,2101,2851,2881,3031,3181,3931,4081,4831,5581,9331,9337,9367,9397,9547,9577,9727,9877,10627,10657,10807,10957,11707,11857,12607,13357,17107,17137,17287,17437,18187,18337,19087,19837,23587,23737,24487,25237,28987,29737,33487,37237,55987,55993,56023,56053,56203,56233,56383,56533,57283,57313,57463,57613,58363,58513,59263,60013,63763,63793,63943,64093,64843,64993,65743,66493,70243,70393,71143,71893,75643,76393,80143,83893,102643,102673,102823,102973,103723,103873,104623,105373,109123,109273,110023,110773,114523,115273,119023,122773,141523,141673,142423,143173,146923,147673,151423,155173,173923,174673,178423,182173,200923,204673,223423,242173,335923,335929,335959,335989,336139,336169,336319,336469,337219,337249,337399,337549,338299,338449,339199,339949,343699,343729,343879,344029,344779,344929,345679,346429,350179,350329,351079,351829,355579,356329,360079,363829,382579,382609,382759,382909,383659,383809,384559,385309,389059,389209,389959,390709,394459,395209,398959,402709,421459,421609,422359,423109,426859,427609,431359,435109,453859,454609,458359,462109,480859,484609,503359,522109,615859,615889,616039,616189,616939,617089,617839,618589,622339,622489,623239,623989,627739,628489,632239,635989,654739,654889,655639,656389,660139,660889,664639,668389,687139,687889,691639,695389,714139,717889,736639,755389,849139,849289,850039,850789,854539,855289,859039,862789,881539,882289,886039,889789,908539,912289,931039,949789,1043539,1044289,1048039,1051789,1070539,1074289,1093039,1111789,1205539,1209289,1228039
mov $3,$0
mov $5,$0
lpb $5
mov $0,$3
sub $5,1
sub $0,$5
mov $4,$0
mov $6,1
mul $6,$0
lpb $2
lpb $4
div $6,2
sub $4,$6
lpe
mov $0,$4
sub $2,1
lpe
mov $2,5
mov $4,5
pow $4,$0
add $1,$4
lpe
div $1,5
mul $1,6
add $1,1
|
_v$ = 8 ; size = 4
bool find_epi32(std::vector<int,std::allocator<int> > const &) PROC ; find_epi32, COMDAT
mov ecx, DWORD PTR _v$[esp-4]
mov eax, DWORD PTR [ecx+4]
mov ecx, DWORD PTR [ecx]
cmp ecx, eax
je SHORT $LN35@find_epi32
npad 3
$LL22@find_epi32:
cmp DWORD PTR [ecx], 42 ; 0000002aH
je SHORT $LN30@find_epi32
add ecx, 4
cmp ecx, eax
jne SHORT $LL22@find_epi32
$LN30@find_epi32:
cmp ecx, eax
$LN35@find_epi32:
setne al
ret 0
bool find_epi32(std::vector<int,std::allocator<int> > const &) ENDP ; find_epi32
_v$ = 8 ; size = 4
bool find_epi8(std::vector<signed char,std::allocator<signed char> > const &) PROC ; find_epi8, COMDAT
mov eax, DWORD PTR _v$[esp-4]
push esi
mov ecx, DWORD PTR [eax]
mov esi, DWORD PTR [eax+4]
mov eax, esi
sub eax, ecx
push eax
push 42 ; 0000002aH
push ecx
call _memchr
add esp, 12 ; 0000000cH
mov ecx, esi
test eax, eax
cmovne ecx, eax
cmp ecx, esi
pop esi
setne al
ret 0
bool find_epi8(std::vector<signed char,std::allocator<signed char> > const &) ENDP ; find_epi8
|
.text
.arm
.global _gio_a5_on_
.asmfunc
_gio_a5_on_
; for gioREG Setting
ldr r4, gio_reg ; ldr: 포인터 참조 연산과 같은 일을 했다.
mov r6, #0x01
str r6, [r4]
mov r6, #0xFF
str r6, [r4, #0x14]
str r6, [r4, #0x08]
; for gioPORTA Setting
ldr r5, gio_a
mov r6, #0x20
str r6, [r5]
str r6, [r5, #0x1C]
str r6, [r5, #0x08]
bx lr
gio_reg .word 0xFFF7BC00
gio_a .word 0xFFF7BC34
.endasmfunc
.global _disable_all_
.asmfunc
_disable_all_
cpsid if
;cps #16
;mrs r1, cpsr
;orr r1, r1, #0xc0
;msr spsr_sxcf, r1
;cps #17
;mrs r1, cpsr
;orr r1, r1, #0xc0
;msr spsr_sxcf, r1
;cps #19
;mrs r1, cpsr
;orr r1, r1, #0xc0
;msr spsr_sxcf, r1
;cps #0x1f
;mrs r1, cpsr
;orr r1, r1, #0xc0
;msr spsr_sxcf, r1
bx lr
.endasmfunc
fiq_reg .word 0x6000039F
.global _print_cpsr_
.asmfunc
_print_cpsr_
mrs r0, cpsr
bx lr
.endasmfunc
.global _print_spsr_
.asmfunc
_print_spsr_
mrs r0, spsr
bx lr
.endasmfunc
|
@********************************************************************
@* *
@* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
@* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
@* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
@* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
@* *
@* THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2010 *
@* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
@* *
@********************************************************************
@ Original implementation:
@ Copyright (C) 2009 Robin Watts for Pinknoise Productions Ltd
@ last mod: $Id: armidct.s 17728 2010-12-07 10:28:07Z tterribe $
@********************************************************************
.text; .p2align 2
.include "armopts-gnu.S"
.global oc_idct8x8_1_arm
.global oc_idct8x8_arm
.type oc_idct8x8_1_arm, %function; oc_idct8x8_1_arm: @ PROC
@ r0 = ogg_int16_t *_y
@ r1 = ogg_uint16_t _dc
ORR r1, r1, r1, LSL #16
MOV r2, r1
MOV r3, r1
MOV r12,r1
STMIA r0!,{r1,r2,r3,r12}
STMIA r0!,{r1,r2,r3,r12}
STMIA r0!,{r1,r2,r3,r12}
STMIA r0!,{r1,r2,r3,r12}
STMIA r0!,{r1,r2,r3,r12}
STMIA r0!,{r1,r2,r3,r12}
STMIA r0!,{r1,r2,r3,r12}
STMIA r0!,{r1,r2,r3,r12}
MOV PC, r14
.size oc_idct8x8_1_arm, .-oc_idct8x8_1_arm @ ENDP
.type oc_idct8x8_arm, %function; oc_idct8x8_arm: @ PROC
@ r0 = ogg_int16_t *_y
@ r1 = ogg_int16_t *_x
@ r2 = int _last_zzi
CMP r2, #3
BLE oc_idct8x8_3_arm
CMP r2, #6
BLE oc_idct8x8_6_arm
CMP r2, #10
BLE oc_idct8x8_10_arm
oc_idct8x8_slow_arm:
STMFD r13!,{r4-r11,r14}
SUB r13,r13,#64*2
@ Row transforms
STR r0, [r13,#-4]!
ADD r0, r13, #4 @ Write to temp storage.
BL idct8core_arm
BL idct8core_arm
BL idct8core_arm
BL idct8core_arm
BL idct8core_arm
BL idct8core_arm
BL idct8core_arm
BL idct8core_arm
LDR r0, [r13], #4 @ Write to the final destination.
SUB r2, r1, #8*16
@ Clear input data for next block.
MOV r4, #0
MOV r5, #0
MOV r6, #0
MOV r7, #0
STMIA r2!,{r4,r5,r6,r7}
STMIA r2!,{r4,r5,r6,r7}
STMIA r2!,{r4,r5,r6,r7}
STMIA r2!,{r4,r5,r6,r7}
STMIA r2!,{r4,r5,r6,r7}
STMIA r2!,{r4,r5,r6,r7}
STMIA r2!,{r4,r5,r6,r7}
STMIA r2!,{r4,r5,r6,r7}
MOV r1, r13 @ And read from temp storage.
@ Column transforms
BL idct8core_down_arm
BL idct8core_down_arm
BL idct8core_down_arm
BL idct8core_down_arm
BL idct8core_down_arm
BL idct8core_down_arm
BL idct8core_down_arm
BL idct8core_down_arm
ADD r13,r13,#64*2
LDMFD r13!,{r4-r11,PC}
.size oc_idct8x8_arm, .-oc_idct8x8_arm @ ENDP
.type oc_idct8x8_10_arm, %function; oc_idct8x8_10_arm: @ PROC
STMFD r13!,{r4-r11,r14}
SUB r13,r13,#64*2
@ Row transforms
MOV r2, r0
MOV r0, r13 @ Write to temp storage.
BL idct4core_arm
BL idct3core_arm
BL idct2core_arm
BL idct1core_arm
@ Clear input data for next block.
MOV r4, #0
STR r4, [r1,#-4*16]!
STR r4, [r1,#4]
STR r4, [r1,#16]
STR r4, [r1,#20]
STR r4, [r1,#32]
STR r4, [r1,#48]
MOV r1, r13 @ Read from temp storage.
MOV r0, r2 @ Write to the final destination
oc_idct8x8_10_arm_cols:
@ Column transforms
BL idct4core_down_arm
BL idct4core_down_arm
BL idct4core_down_arm
BL idct4core_down_arm
BL idct4core_down_arm
BL idct4core_down_arm
BL idct4core_down_arm
BL idct4core_down_arm
ADD r13,r13,#64*2
LDMFD r13!,{r4-r11,PC}
.size oc_idct8x8_10_arm, .-oc_idct8x8_10_arm @ ENDP
.type oc_idct8x8_6_arm, %function; oc_idct8x8_6_arm: @ PROC
STMFD r13!,{r4-r7,r9-r11,r14}
SUB r13,r13,#64*2
@ Row transforms
MOV r2, r0
MOV r0, r13 @ Write to temp storage.
BL idct3core_arm
BL idct2core_arm
BL idct1core_arm
@ Clear input data for next block.
MOV r4, #0
STR r4, [r1,#-3*16]!
STR r4, [r1,#4]
STR r4, [r1,#16]
STR r4, [r1,#32]
MOV r1, r13 @ Read from temp storage.
MOV r0, r2 @ Write to the final destination
@ Column transforms
BL idct3core_down_arm
BL idct3core_down_arm
BL idct3core_down_arm
BL idct3core_down_arm
BL idct3core_down_arm
BL idct3core_down_arm
BL idct3core_down_arm
BL idct3core_down_arm
ADD r13,r13,#64*2
LDMFD r13!,{r4-r7,r9-r11,PC}
.size oc_idct8x8_6_arm, .-oc_idct8x8_6_arm @ ENDP
.type oc_idct8x8_3_arm, %function; oc_idct8x8_3_arm: @ PROC
STMFD r13!,{r4-r7,r9-r11,r14}
SUB r13,r13,#64*2
@ Row transforms
MOV r2, r0
MOV r0, r13 @ Write to temp storage.
BL idct2core_arm
BL idct1core_arm
@ Clear input data for next block.
MOV r4, #0
STR r4, [r1,#-2*16]!
STR r4, [r1,#16]
MOV r1, r13 @ Read from temp storage.
MOV r0, r2 @ Write to the final destination
@ Column transforms
BL idct2core_down_arm
BL idct2core_down_arm
BL idct2core_down_arm
BL idct2core_down_arm
BL idct2core_down_arm
BL idct2core_down_arm
BL idct2core_down_arm
BL idct2core_down_arm
ADD r13,r13,#64*2
LDMFD r13!,{r4-r7,r9-r11,PC}
.size oc_idct8x8_3_arm, .-oc_idct8x8_3_arm @ ENDP
.type idct1core_arm, %function; idct1core_arm: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
LDRSH r3, [r1], #16
MOV r12,#0x05
ORR r12,r12,#0xB500
MUL r3, r12, r3
@ Stall ?
MOV r3, r3, ASR #16
STRH r3, [r0], #2
STRH r3, [r0, #14]
STRH r3, [r0, #30]
STRH r3, [r0, #46]
STRH r3, [r0, #62]
STRH r3, [r0, #78]
STRH r3, [r0, #94]
STRH r3, [r0, #110]
MOV PC,R14
.size idct1core_arm, .-idct1core_arm @ ENDP
.type idct2core_arm, %function; idct2core_arm: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
LDRSH r9, [r1], #16 @ r9 = x[0]
LDR r12,OC_C4S4
LDRSH r11,[r1, #-14] @ r11= x[1]
LDR r3, OC_C7S1
MUL r9, r12,r9 @ r9 = t[0]<<16 = OC_C4S4*x[0]
LDR r10,OC_C1S7
MUL r3, r11,r3 @ r3 = t[4]<<16 = OC_C7S1*x[1]
MOV r9, r9, ASR #16 @ r9 = t[0]
MUL r11,r10,r11 @ r11= t[7]<<16 = OC_C1S7*x[1]
MOV r3, r3, ASR #16 @ r3 = t[4]
MUL r10,r12,r3 @ r10= t[5]<<16 = OC_C4S4*t[4]
MOV r11,r11,ASR #16 @ r11= t[7]
MUL r12,r11,r12 @ r12= t[6]<<16 = OC_C4S4*t[7]
MOV r10,r10,ASR #16 @ r10= t[5]
ADD r12,r9,r12,ASR #16 @ r12= t[0]+t[6]
ADD r12,r12,r10 @ r12= t[0]+t2[6] = t[0]+t[6]+t[5]
SUB r10,r12,r10,LSL #1 @ r10= t[0]+t2[5] = t[0]+t[6]-t[5]
ADD r3, r3, r9 @ r3 = t[0]+t[4]
ADD r11,r11,r9 @ r11= t[0]+t[7]
STRH r11,[r0], #2 @ y[0] = t[0]+t[7]
STRH r12,[r0, #14] @ y[1] = t[0]+t[6]
STRH r10,[r0, #30] @ y[2] = t[0]+t[5]
STRH r3, [r0, #46] @ y[3] = t[0]+t[4]
RSB r3, r3, r9, LSL #1 @ r3 = t[0]*2-(t[0]+t[4])=t[0]-t[4]
RSB r10,r10,r9, LSL #1 @ r10= t[0]*2-(t[0]+t[5])=t[0]-t[5]
RSB r12,r12,r9, LSL #1 @ r12= t[0]*2-(t[0]+t[6])=t[0]-t[6]
RSB r11,r11,r9, LSL #1 @ r1 = t[0]*2-(t[0]+t[7])=t[0]-t[7]
STRH r3, [r0, #62] @ y[4] = t[0]-t[4]
STRH r10,[r0, #78] @ y[5] = t[0]-t[5]
STRH r12,[r0, #94] @ y[6] = t[0]-t[6]
STRH r11,[r0, #110] @ y[7] = t[0]-t[7]
MOV PC,r14
.size idct2core_arm, .-idct2core_arm @ ENDP
.type idct2core_down_arm, %function; idct2core_down_arm: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
LDRSH r9, [r1], #16 @ r9 = x[0]
LDR r12,OC_C4S4
LDRSH r11,[r1, #-14] @ r11= x[1]
LDR r3, OC_C7S1
MUL r9, r12,r9 @ r9 = t[0]<<16 = OC_C4S4*x[0]
LDR r10,OC_C1S7
MUL r3, r11,r3 @ r3 = t[4]<<16 = OC_C7S1*x[1]
MOV r9, r9, ASR #16 @ r9 = t[0]
MUL r11,r10,r11 @ r11= t[7]<<16 = OC_C1S7*x[1]
ADD r9, r9, #8 @ r9 = t[0]+8
MOV r3, r3, ASR #16 @ r3 = t[4]
MUL r10,r12,r3 @ r10= t[5]<<16 = OC_C4S4*t[4]
MOV r11,r11,ASR #16 @ r11= t[7]
MUL r12,r11,r12 @ r12= t[6]<<16 = OC_C4S4*t[7]
MOV r10,r10,ASR #16 @ r10= t[5]
ADD r12,r9,r12,ASR #16 @ r12= t[0]+t[6]+8
ADD r12,r12,r10 @ r12= t[0]+t2[6] = t[0]+t[6]+t[5]+8
SUB r10,r12,r10,LSL #1 @ r10= t[0]+t2[5] = t[0]+t[6]-t[5]+8
ADD r3, r3, r9 @ r3 = t[0]+t[4]+8
ADD r11,r11,r9 @ r11= t[0]+t[7]+8
@ TODO: This is wrong.
@ The C code truncates to 16 bits by storing to RAM and doing the
@ shifts later; we've got an extra 4 bits here.
MOV r4, r11,ASR #4
MOV r5, r12,ASR #4
MOV r6, r10,ASR #4
MOV r7, r3, ASR #4
RSB r3, r3, r9, LSL #1 @r3 =t[0]*2+8-(t[0]+t[4])=t[0]-t[4]+8
RSB r10,r10,r9, LSL #1 @r10=t[0]*2+8-(t[0]+t[5])=t[0]-t[5]+8
RSB r12,r12,r9, LSL #1 @r12=t[0]*2+8-(t[0]+t[6])=t[0]-t[6]+8
RSB r11,r11,r9, LSL #1 @r11=t[0]*2+8-(t[0]+t[7])=t[0]-t[7]+8
MOV r3, r3, ASR #4
MOV r10,r10,ASR #4
MOV r12,r12,ASR #4
MOV r11,r11,ASR #4
STRH r4, [r0], #2 @ y[0] = t[0]+t[7]
STRH r5, [r0, #14] @ y[1] = t[0]+t[6]
STRH r6, [r0, #30] @ y[2] = t[0]+t[5]
STRH r7, [r0, #46] @ y[3] = t[0]+t[4]
STRH r3, [r0, #62] @ y[4] = t[0]-t[4]
STRH r10,[r0, #78] @ y[5] = t[0]-t[5]
STRH r12,[r0, #94] @ y[6] = t[0]-t[6]
STRH r11,[r0, #110] @ y[7] = t[0]-t[7]
MOV PC,r14
.size idct2core_down_arm, .-idct2core_down_arm @ ENDP
.type idct3core_arm, %function; idct3core_arm: @ PROC
LDRSH r9, [r1], #16 @ r9 = x[0]
LDR r12,OC_C4S4 @ r12= OC_C4S4
LDRSH r3, [r1, #-12] @ r3 = x[2]
LDR r10,OC_C6S2 @ r10= OC_C6S2
MUL r9, r12,r9 @ r9 = t[0]<<16 = OC_C4S4*x[0]
LDR r4, OC_C2S6 @ r4 = OC_C2S6
MUL r10,r3, r10 @ r10= t[2]<<16 = OC_C6S2*x[2]
LDRSH r11,[r1, #-14] @ r11= x[1]
MUL r3, r4, r3 @ r3 = t[3]<<16 = OC_C2S6*x[2]
LDR r4, OC_C7S1 @ r4 = OC_C7S1
LDR r5, OC_C1S7 @ r5 = OC_C1S7
MOV r9, r9, ASR #16 @ r9 = t[0]
MUL r4, r11,r4 @ r4 = t[4]<<16 = OC_C7S1*x[1]
ADD r3, r9, r3, ASR #16 @ r3 = t[0]+t[3]
MUL r11,r5, r11 @ r11= t[7]<<16 = OC_C1S7*x[1]
MOV r4, r4, ASR #16 @ r4 = t[4]
MUL r5, r12,r4 @ r5 = t[5]<<16 = OC_C4S4*t[4]
MOV r11,r11,ASR #16 @ r11= t[7]
MUL r12,r11,r12 @ r12= t[6]<<16 = OC_C4S4*t[7]
ADD r10,r9, r10,ASR #16 @ r10= t[1] = t[0]+t[2]
RSB r6, r10,r9, LSL #1 @ r6 = t[2] = t[0]-t[2]
@ r3 = t2[0] = t[0]+t[3]
RSB r9, r3, r9, LSL #1 @ r9 = t2[3] = t[0]-t[3]
MOV r12,r12,ASR #16 @ r12= t[6]
ADD r5, r12,r5, ASR #16 @ r5 = t2[6] = t[6]+t[5]
RSB r12,r5, r12,LSL #1 @ r12= t2[5] = t[6]-t[5]
ADD r11,r3, r11 @ r11= t2[0]+t[7]
ADD r5, r10,r5 @ r5 = t[1]+t2[6]
ADD r12,r6, r12 @ r12= t[2]+t2[5]
ADD r4, r9, r4 @ r4 = t2[3]+t[4]
STRH r11,[r0], #2 @ y[0] = t[0]+t[7]
STRH r5, [r0, #14] @ y[1] = t[1]+t2[6]
STRH r12,[r0, #30] @ y[2] = t[2]+t2[5]
STRH r4, [r0, #46] @ y[3] = t2[3]+t[4]
RSB r11,r11,r3, LSL #1 @ r11= t2[0] - t[7]
RSB r5, r5, r10,LSL #1 @ r5 = t[1] - t2[6]
RSB r12,r12,r6, LSL #1 @ r6 = t[2] - t2[5]
RSB r4, r4, r9, LSL #1 @ r4 = t2[3] - t[4]
STRH r4, [r0, #62] @ y[4] = t2[3]-t[4]
STRH r12,[r0, #78] @ y[5] = t[2]-t2[5]
STRH r5, [r0, #94] @ y[6] = t[1]-t2[6]
STRH r11,[r0, #110] @ y[7] = t2[0]-t[7]
MOV PC,R14
.size idct3core_arm, .-idct3core_arm @ ENDP
.type idct3core_down_arm, %function; idct3core_down_arm: @ PROC
LDRSH r9, [r1], #16 @ r9 = x[0]
LDR r12,OC_C4S4 @ r12= OC_C4S4
LDRSH r3, [r1, #-12] @ r3 = x[2]
LDR r10,OC_C6S2 @ r10= OC_C6S2
MUL r9, r12,r9 @ r9 = t[0]<<16 = OC_C4S4*x[0]
LDR r4, OC_C2S6 @ r4 = OC_C2S6
MUL r10,r3, r10 @ r10= t[2]<<16 = OC_C6S2*x[2]
LDRSH r11,[r1, #-14] @ r11= x[1]
MUL r3, r4, r3 @ r3 = t[3]<<16 = OC_C2S6*x[2]
LDR r4, OC_C7S1 @ r4 = OC_C7S1
LDR r5, OC_C1S7 @ r5 = OC_C1S7
MOV r9, r9, ASR #16 @ r9 = t[0]
MUL r4, r11,r4 @ r4 = t[4]<<16 = OC_C7S1*x[1]
ADD r9, r9, #8 @ r9 = t[0]+8
MUL r11,r5, r11 @ r11= t[7]<<16 = OC_C1S7*x[1]
ADD r3, r9, r3, ASR #16 @ r3 = t[0]+t[3]+8
MOV r4, r4, ASR #16 @ r4 = t[4]
MUL r5, r12,r4 @ r5 = t[5]<<16 = OC_C4S4*t[4]
MOV r11,r11,ASR #16 @ r11= t[7]
MUL r12,r11,r12 @ r12= t[6]<<16 = OC_C4S4*t[7]
ADD r10,r9, r10,ASR #16 @ r10= t[1]+8 = t[0]+t[2]+8
RSB r6, r10,r9, LSL #1 @ r6 = t[2]+8 = t[0]-t[2]+8
@ r3 = t2[0]+8 = t[0]+t[3]+8
RSB r9, r3, r9, LSL #1 @ r9 = t2[3]+8 = t[0]-t[3]+8
MOV r12,r12,ASR #16 @ r12= t[6]
ADD r5, r12,r5, ASR #16 @ r5 = t2[6] = t[6]+t[5]
RSB r12,r5, r12,LSL #1 @ r12= t2[5] = t[6]-t[5]
ADD r11,r3, r11 @ r11= t2[0]+t[7] +8
ADD r5, r10,r5 @ r5 = t[1] +t2[6]+8
ADD r12,r6, r12 @ r12= t[2] +t2[5]+8
ADD r4, r9, r4 @ r4 = t2[3]+t[4] +8
RSB r3, r11,r3, LSL #1 @ r11= t2[0] - t[7] + 8
RSB r10,r5, r10,LSL #1 @ r5 = t[1] - t2[6] + 8
RSB r6, r12,r6, LSL #1 @ r6 = t[2] - t2[5] + 8
RSB r9, r4, r9, LSL #1 @ r4 = t2[3] - t[4] + 8
@ TODO: This is wrong.
@ The C code truncates to 16 bits by storing to RAM and doing the
@ shifts later; we've got an extra 4 bits here.
MOV r11,r11,ASR #4
MOV r5, r5, ASR #4
MOV r12,r12,ASR #4
MOV r4, r4, ASR #4
MOV r9, r9, ASR #4
MOV r6, r6, ASR #4
MOV r10,r10,ASR #4
MOV r3, r3, ASR #4
STRH r11,[r0], #2 @ y[0] = t[0]+t[7]
STRH r5, [r0, #14] @ y[1] = t[1]+t2[6]
STRH r12,[r0, #30] @ y[2] = t[2]+t2[5]
STRH r4, [r0, #46] @ y[3] = t2[3]+t[4]
STRH r9, [r0, #62] @ y[4] = t2[3]-t[4]
STRH r6, [r0, #78] @ y[5] = t[2]-t2[5]
STRH r10,[r0, #94] @ y[6] = t[1]-t2[6]
STRH r3, [r0, #110] @ y[7] = t2[0]-t[7]
MOV PC,R14
.size idct3core_down_arm, .-idct3core_down_arm @ ENDP
.type idct4core_arm, %function; idct4core_arm: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
LDRSH r9, [r1], #16 @ r9 = x[0]
LDR r10,OC_C4S4 @ r10= OC_C4S4
LDRSH r12,[r1, #-12] @ r12= x[2]
LDR r4, OC_C6S2 @ r4 = OC_C6S2
MUL r9, r10,r9 @ r9 = t[0]<<16 = OC_C4S4*x[0]
LDR r5, OC_C2S6 @ r5 = OC_C2S6
MUL r4, r12,r4 @ r4 = t[2]<<16 = OC_C6S2*x[2]
LDRSH r3, [r1, #-14] @ r3 = x[1]
MUL r5, r12,r5 @ r5 = t[3]<<16 = OC_C2S6*x[2]
LDR r6, OC_C7S1 @ r6 = OC_C7S1
LDR r12,OC_C1S7 @ r12= OC_C1S7
LDRSH r11,[r1, #-10] @ r11= x[3]
MUL r6, r3, r6 @ r6 = t[4]<<16 = OC_C7S1*x[1]
LDR r7, OC_C5S3 @ r7 = OC_C5S3
MUL r3, r12,r3 @ r3 = t[7]<<16 = OC_C1S7*x[1]
LDR r8, OC_C3S5 @ r8 = OC_C3S5
MUL r7, r11,r7 @ r7 = -t[5]<<16 = OC_C5S3*x[3]
MOV r9, r9, ASR #16 @ r9 = t[0]
MUL r11,r8, r11 @ r11= t[6]<<16 = OC_C3S5*x[3]
MOV r6, r6, ASR #16 @ r6 = t[4]
@ TODO: This is wrong; t[4]-t[5] and t[7]-t[6] need to be truncated to 16-bit
@ before multiplying, not after (this is not equivalent)
SUB r7, r6, r7, ASR #16 @ r7 = t2[4]=t[4]+t[5] (as r7=-t[5])
RSB r6, r7, r6, LSL #1 @ r6 = t[4]-t[5]
MUL r6, r10,r6 @ r6 = t2[5]<<16 =OC_C4S4*(t[4]-t[5])
MOV r3, r3, ASR #16 @ r3 = t[7]
ADD r11,r3, r11,ASR #16 @ r11= t2[7]=t[7]+t[6]
RSB r3, r11,r3, LSL #1 @ r3 = t[7]-t[6]
MUL r3, r10,r3 @ r3 = t2[6]<<16 =OC_C4S4*(t[7]-t[6])
ADD r4, r9, r4, ASR #16 @ r4 = t[1] = t[0] + t[2]
RSB r10,r4, r9, LSL #1 @ r10= t[2] = t[0] - t[2]
ADD r5, r9, r5, ASR #16 @ r5 = t[0] = t[0] + t[3]
RSB r9, r5, r9, LSL #1 @ r9 = t[3] = t[0] - t[3]
MOV r3, r3, ASR #16 @ r3 = t2[6]
ADD r6, r3, r6, ASR #16 @ r6 = t3[6] = t2[6]+t2[5]
RSB r3, r6, r3, LSL #1 @ r3 = t3[5] = t2[6]-t2[5]
ADD r11,r5, r11 @ r11= t[0]+t2[7]
ADD r6, r4, r6 @ r6 = t[1]+t3[6]
ADD r3, r10,r3 @ r3 = t[2]+t3[5]
ADD r7, r9, r7 @ r7 = t[3]+t2[4]
STRH r11,[r0], #2 @ y[0] = t[0]+t[7]
STRH r6, [r0, #14] @ y[1] = t[1]+t2[6]
STRH r3, [r0, #30] @ y[2] = t[2]+t2[5]
STRH r7, [r0, #46] @ y[3] = t2[3]+t[4]
RSB r11,r11,r5, LSL #1 @ r11= t[0]-t2[7]
RSB r6, r6, r4, LSL #1 @ r6 = t[1]-t3[6]
RSB r3, r3, r10,LSL #1 @ r3 = t[2]-t3[5]
RSB r7, r7, r9, LSL #1 @ r7 = t[3]-t2[4]
STRH r7, [r0, #62] @ y[4] = t2[3]-t[4]
STRH r3, [r0, #78] @ y[5] = t[2]-t2[5]
STRH r6, [r0, #94] @ y[6] = t[1]-t2[6]
STRH r11, [r0, #110] @ y[7] = t2[0]-t[7]
MOV PC,r14
.size idct4core_arm, .-idct4core_arm @ ENDP
.type idct4core_down_arm, %function; idct4core_down_arm: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
LDRSH r9, [r1], #16 @ r9 = x[0]
LDR r10,OC_C4S4 @ r10= OC_C4S4
LDRSH r12,[r1, #-12] @ r12= x[2]
LDR r4, OC_C6S2 @ r4 = OC_C6S2
MUL r9, r10,r9 @ r9 = t[0]<<16 = OC_C4S4*x[0]
LDR r5, OC_C2S6 @ r5 = OC_C2S6
MUL r4, r12,r4 @ r4 = t[2]<<16 = OC_C6S2*x[2]
LDRSH r3, [r1, #-14] @ r3 = x[1]
MUL r5, r12,r5 @ r5 = t[3]<<16 = OC_C2S6*x[2]
LDR r6, OC_C7S1 @ r6 = OC_C7S1
LDR r12,OC_C1S7 @ r12= OC_C1S7
LDRSH r11,[r1, #-10] @ r11= x[3]
MUL r6, r3, r6 @ r6 = t[4]<<16 = OC_C7S1*x[1]
LDR r7, OC_C5S3 @ r7 = OC_C5S3
MUL r3, r12,r3 @ r3 = t[7]<<16 = OC_C1S7*x[1]
LDR r8, OC_C3S5 @ r8 = OC_C3S5
MUL r7, r11,r7 @ r7 = -t[5]<<16 = OC_C5S3*x[3]
MOV r9, r9, ASR #16 @ r9 = t[0]
MUL r11,r8, r11 @ r11= t[6]<<16 = OC_C3S5*x[3]
MOV r6, r6, ASR #16 @ r6 = t[4]
@ TODO: This is wrong; t[4]-t[5] and t[7]-t[6] need to be truncated to 16-bit
@ before multiplying, not after (this is not equivalent)
SUB r7, r6, r7, ASR #16 @ r7 = t2[4]=t[4]+t[5] (as r7=-t[5])
RSB r6, r7, r6, LSL #1 @ r6 = t[4]-t[5]
MUL r6, r10,r6 @ r6 = t2[5]<<16 =OC_C4S4*(t[4]-t[5])
MOV r3, r3, ASR #16 @ r3 = t[7]
ADD r11,r3, r11,ASR #16 @ r11= t2[7]=t[7]+t[6]
RSB r3, r11,r3, LSL #1 @ r3 = t[7]-t[6]
ADD r9, r9, #8 @ r9 = t[0]+8
MUL r3, r10,r3 @ r3 = t2[6]<<16 =OC_C4S4*(t[7]-t[6])
ADD r4, r9, r4, ASR #16 @ r4 = t[1] = t[0] + t[2] + 8
RSB r10,r4, r9, LSL #1 @ r10= t[2] = t[0] - t[2] + 8
ADD r5, r9, r5, ASR #16 @ r5 = t[0] = t[0] + t[3] + 8
RSB r9, r5, r9, LSL #1 @ r9 = t[3] = t[0] - t[3] + 8
MOV r3, r3, ASR #16 @ r3 = t2[6]
ADD r6, r3, r6, ASR #16 @ r6 = t3[6] = t2[6]+t2[5]
RSB r3, r6, r3, LSL #1 @ r3 = t3[5] = t2[6]-t2[5]
ADD r5, r5, r11 @ r5 = t[0]+t2[7]+8
ADD r4, r4, r6 @ r4 = t[1]+t3[6]+8
ADD r10,r10,r3 @ r10= t[2]+t3[5]+8
ADD r9, r9, r7 @ r9 = t[3]+t2[4]+8
SUB r11,r5, r11,LSL #1 @ r11= t[0]-t2[7]+8
SUB r6, r4, r6, LSL #1 @ r6 = t[1]-t3[6]+8
SUB r3, r10,r3, LSL #1 @ r3 = t[2]-t3[5]+8
SUB r7, r9, r7, LSL #1 @ r7 = t[3]-t2[4]+8
@ TODO: This is wrong.
@ The C code truncates to 16 bits by storing to RAM and doing the
@ shifts later; we've got an extra 4 bits here.
MOV r11,r11,ASR #4
MOV r6, r6, ASR #4
MOV r3, r3, ASR #4
MOV r7, r7, ASR #4
MOV r9, r9, ASR #4
MOV r10,r10,ASR #4
MOV r4, r4, ASR #4
MOV r5, r5, ASR #4
STRH r5,[r0], #2 @ y[0] = t[0]+t[7]
STRH r4, [r0, #14] @ y[1] = t[1]+t2[6]
STRH r10,[r0, #30] @ y[2] = t[2]+t2[5]
STRH r9, [r0, #46] @ y[3] = t2[3]+t[4]
STRH r7, [r0, #62] @ y[4] = t2[3]-t[4]
STRH r3, [r0, #78] @ y[5] = t[2]-t2[5]
STRH r6, [r0, #94] @ y[6] = t[1]-t2[6]
STRH r11,[r0, #110] @ y[7] = t2[0]-t[7]
MOV PC,r14
.size idct4core_down_arm, .-idct4core_down_arm @ ENDP
.type idct8core_arm, %function; idct8core_arm: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
LDRSH r2, [r1],#16 @ r2 = x[0]
STMFD r13!,{r1,r14}
LDRSH r6, [r1, #-8] @ r6 = x[4]
LDR r12,OC_C4S4 @ r12= C4S4
LDRSH r4, [r1, #-12] @ r4 = x[2]
ADD r2, r2, r6 @ r2 = x[0] + x[4]
SUB r6, r2, r6, LSL #1 @ r6 = x[0] - x[4]
@ For spec compliance, these sums must be truncated to 16-bit precision
@ _before_ the multiply (not after).
@ Sadly, ARMv4 provides no simple way to do that.
MOV r2, r2, LSL #16
MOV r6, r6, LSL #16
MOV r2, r2, ASR #16
MOV r6, r6, ASR #16
MUL r2, r12,r2 @ r2 = t[0]<<16 = C4S4*(x[0]+x[4])
LDRSH r8, [r1, #-4] @ r8 = x[6]
LDR r7, OC_C6S2 @ r7 = OC_C6S2
MUL r6, r12,r6 @ r6 = t[1]<<16 = C4S4*(x[0]-x[4])
LDR r14,OC_C2S6 @ r14= OC_C2S6
MUL r3, r4, r7 @ r3 = OC_C6S2*x[2]
LDR r5, OC_C7S1 @ r5 = OC_C7S1
MUL r4, r14,r4 @ r4 = OC_C2S6*x[2]
MOV r3, r3, ASR #16 @ r3 = OC_C6S2*x[2]>>16
MUL r14,r8, r14 @ r14= OC_C2S6*x[6]
MOV r4, r4, ASR #16 @ r4 = OC_C2S6*x[2]>>16
MUL r8, r7, r8 @ r8 = OC_C6S2*x[6]
LDR r7, OC_C1S7 @ r7 = OC_C1S7
SUB r3, r3, r14,ASR #16 @ r3=t[2]=C6S2*x[2]>>16-C2S6*x[6]>>16
LDRSH r14,[r1, #-14] @ r14= x[1]
ADD r4, r4, r8, ASR #16 @ r4=t[3]=C2S6*x[2]>>16+C6S2*x[6]>>16
LDRSH r8, [r1, #-2] @ r8 = x[7]
MUL r9, r5, r14 @ r9 = OC_C7S1*x[1]
LDRSH r10,[r1, #-6] @ r10= x[5]
MUL r14,r7, r14 @ r14= OC_C1S7*x[1]
MOV r9, r9, ASR #16 @ r9 = OC_C7S1*x[1]>>16
MUL r7, r8, r7 @ r7 = OC_C1S7*x[7]
MOV r14,r14,ASR #16 @ r14= OC_C1S7*x[1]>>16
MUL r8, r5, r8 @ r8 = OC_C7S1*x[7]
LDRSH r1, [r1, #-10] @ r1 = x[3]
LDR r5, OC_C3S5 @ r5 = OC_C3S5
LDR r11,OC_C5S3 @ r11= OC_C5S3
ADD r8, r14,r8, ASR #16 @ r8=t[7]=C1S7*x[1]>>16+C7S1*x[7]>>16
MUL r14,r5, r10 @ r14= OC_C3S5*x[5]
SUB r9, r9, r7, ASR #16 @ r9=t[4]=C7S1*x[1]>>16-C1S7*x[7]>>16
MUL r10,r11,r10 @ r10= OC_C5S3*x[5]
MOV r14,r14,ASR #16 @ r14= OC_C3S5*x[5]>>16
MUL r11,r1, r11 @ r11= OC_C5S3*x[3]
MOV r10,r10,ASR #16 @ r10= OC_C5S3*x[5]>>16
MUL r1, r5, r1 @ r1 = OC_C3S5*x[3]
SUB r14,r14,r11,ASR #16 @r14=t[5]=C3S5*x[5]>>16-C5S3*x[3]>>16
ADD r10,r10,r1, ASR #16 @r10=t[6]=C5S3*x[5]>>16+C3S5*x[3]>>16
@ r2=t[0]<<16 r3=t[2] r4=t[3] r6=t[1]<<16 r8=t[7] r9=t[4]
@ r10=t[6] r12=C4S4 r14=t[5]
@ TODO: This is wrong; t[4]-t[5] and t[7]-t[6] need to be truncated to 16-bit
@ before multiplying, not after (this is not equivalent)
@ Stage 2
@ 4-5 butterfly
ADD r9, r9, r14 @ r9 = t2[4] = t[4]+t[5]
SUB r14,r9, r14, LSL #1 @ r14= t[4]-t[5]
MUL r14,r12,r14 @ r14= t2[5]<<16 = C4S4*(t[4]-t[5])
@ 7-6 butterfly
ADD r8, r8, r10 @ r8 = t2[7] = t[7]+t[6]
SUB r10,r8, r10, LSL #1 @ r10= t[7]-t[6]
MUL r10,r12,r10 @ r10= t2[6]<<16 = C4S4*(t[7]+t[6])
@ r2=t[0]<<16 r3=t[2] r4=t[3] r6=t[1]<<16 r8=t2[7] r9=t2[4]
@ r10=t2[6]<<16 r12=C4S4 r14=t2[5]<<16
@ Stage 3
@ 0-3 butterfly
ADD r2, r4, r2, ASR #16 @ r2 = t2[0] = t[0] + t[3]
SUB r4, r2, r4, LSL #1 @ r4 = t2[3] = t[0] - t[3]
@ 1-2 butterfly
ADD r6, r3, r6, ASR #16 @ r6 = t2[1] = t[1] + t[2]
SUB r3, r6, r3, LSL #1 @ r3 = t2[2] = t[1] - t[2]
@ 6-5 butterfly
MOV r14,r14,ASR #16 @ r14= t2[5]
ADD r10,r14,r10,ASR #16 @ r10= t3[6] = t[6] + t[5]
SUB r14,r10,r14,LSL #1 @ r14= t3[5] = t[6] - t[5]
@ r2=t2[0] r3=t2[2] r4=t2[3] r6=t2[1] r8=t2[7] r9=t2[4]
@ r10=t3[6] r14=t3[5]
@ Stage 4
ADD r2, r2, r8 @ r2 = t[0] + t[7]
ADD r6, r6, r10 @ r6 = t[1] + t[6]
ADD r3, r3, r14 @ r3 = t[2] + t[5]
ADD r4, r4, r9 @ r4 = t[3] + t[4]
SUB r8, r2, r8, LSL #1 @ r8 = t[0] - t[7]
SUB r10,r6, r10,LSL #1 @ r10= t[1] - t[6]
SUB r14,r3, r14,LSL #1 @ r14= t[2] - t[5]
SUB r9, r4, r9, LSL #1 @ r9 = t[3] - t[4]
STRH r2, [r0], #2 @ y[0] = t[0]+t[7]
STRH r6, [r0, #14] @ y[1] = t[1]+t[6]
STRH r3, [r0, #30] @ y[2] = t[2]+t[5]
STRH r4, [r0, #46] @ y[3] = t[3]+t[4]
STRH r9, [r0, #62] @ y[4] = t[3]-t[4]
STRH r14,[r0, #78] @ y[5] = t[2]-t[5]
STRH r10,[r0, #94] @ y[6] = t[1]-t[6]
STRH r8, [r0, #110] @ y[7] = t[0]-t[7]
LDMFD r13!,{r1,PC}
.size idct8core_arm, .-idct8core_arm @ ENDP
.type idct8core_down_arm, %function; idct8core_down_arm: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
LDRSH r2, [r1],#16 @ r2 = x[0]
STMFD r13!,{r1,r14}
LDRSH r6, [r1, #-8] @ r6 = x[4]
LDR r12,OC_C4S4 @ r12= C4S4
LDRSH r4, [r1, #-12] @ r4 = x[2]
ADD r2, r2, r6 @ r2 = x[0] + x[4]
SUB r6, r2, r6, LSL #1 @ r6 = x[0] - x[4]
@ For spec compliance, these sums must be truncated to 16-bit precision
@ _before_ the multiply (not after).
@ Sadly, ARMv4 provides no simple way to do that.
MOV r2, r2, LSL #16
MOV r6, r6, LSL #16
MOV r2, r2, ASR #16
MOV r6, r6, ASR #16
MUL r2, r12,r2 @ r2 = t[0]<<16 = C4S4*(x[0]+x[4])
LDRSH r8, [r1, #-4] @ r8 = x[6]
LDR r7, OC_C6S2 @ r7 = OC_C6S2
MUL r6, r12,r6 @ r6 = t[1]<<16 = C4S4*(x[0]-x[4])
LDR r14,OC_C2S6 @ r14= OC_C2S6
MUL r3, r4, r7 @ r3 = OC_C6S2*x[2]
LDR r5, OC_C7S1 @ r5 = OC_C7S1
MUL r4, r14,r4 @ r4 = OC_C2S6*x[2]
MOV r3, r3, ASR #16 @ r3 = OC_C6S2*x[2]>>16
MUL r14,r8, r14 @ r14= OC_C2S6*x[6]
MOV r4, r4, ASR #16 @ r4 = OC_C2S6*x[2]>>16
MUL r8, r7, r8 @ r8 = OC_C6S2*x[6]
LDR r7, OC_C1S7 @ r7 = OC_C1S7
SUB r3, r3, r14,ASR #16 @ r3=t[2]=C6S2*x[2]>>16-C2S6*x[6]>>16
LDRSH r14,[r1, #-14] @ r14= x[1]
ADD r4, r4, r8, ASR #16 @ r4=t[3]=C2S6*x[2]>>16+C6S2*x[6]>>16
LDRSH r8, [r1, #-2] @ r8 = x[7]
MUL r9, r5, r14 @ r9 = OC_C7S1*x[1]
LDRSH r10,[r1, #-6] @ r10= x[5]
MUL r14,r7, r14 @ r14= OC_C1S7*x[1]
MOV r9, r9, ASR #16 @ r9 = OC_C7S1*x[1]>>16
MUL r7, r8, r7 @ r7 = OC_C1S7*x[7]
MOV r14,r14,ASR #16 @ r14= OC_C1S7*x[1]>>16
MUL r8, r5, r8 @ r8 = OC_C7S1*x[7]
LDRSH r1, [r1, #-10] @ r1 = x[3]
LDR r5, OC_C3S5 @ r5 = OC_C3S5
LDR r11,OC_C5S3 @ r11= OC_C5S3
ADD r8, r14,r8, ASR #16 @ r8=t[7]=C1S7*x[1]>>16+C7S1*x[7]>>16
MUL r14,r5, r10 @ r14= OC_C3S5*x[5]
SUB r9, r9, r7, ASR #16 @ r9=t[4]=C7S1*x[1]>>16-C1S7*x[7]>>16
MUL r10,r11,r10 @ r10= OC_C5S3*x[5]
MOV r14,r14,ASR #16 @ r14= OC_C3S5*x[5]>>16
MUL r11,r1, r11 @ r11= OC_C5S3*x[3]
MOV r10,r10,ASR #16 @ r10= OC_C5S3*x[5]>>16
MUL r1, r5, r1 @ r1 = OC_C3S5*x[3]
SUB r14,r14,r11,ASR #16 @r14=t[5]=C3S5*x[5]>>16-C5S3*x[3]>>16
ADD r10,r10,r1, ASR #16 @r10=t[6]=C5S3*x[5]>>16+C3S5*x[3]>>16
@ r2=t[0]<<16 r3=t[2] r4=t[3] r6=t[1]<<16 r8=t[7] r9=t[4]
@ r10=t[6] r12=C4S4 r14=t[5]
@ Stage 2
@ TODO: This is wrong; t[4]-t[5] and t[7]-t[6] need to be truncated to 16-bit
@ before multiplying, not after (this is not equivalent)
@ 4-5 butterfly
ADD r9, r9, r14 @ r9 = t2[4] = t[4]+t[5]
SUB r14,r9, r14, LSL #1 @ r14= t[4]-t[5]
MUL r14,r12,r14 @ r14= t2[5]<<16 = C4S4*(t[4]-t[5])
@ 7-6 butterfly
ADD r8, r8, r10 @ r8 = t2[7] = t[7]+t[6]
SUB r10,r8, r10, LSL #1 @ r10= t[7]-t[6]
MUL r10,r12,r10 @ r10= t2[6]<<16 = C4S4*(t[7]+t[6])
@ r2=t[0]<<16 r3=t[2] r4=t[3] r6=t[1]<<16 r8=t2[7] r9=t2[4]
@ r10=t2[6]<<16 r12=C4S4 r14=t2[5]<<16
@ Stage 3
ADD r2, r2, #8<<16 @ r2 = t[0]+8<<16
ADD r6, r6, #8<<16 @ r6 = t[1]+8<<16
@ 0-3 butterfly
ADD r2, r4, r2, ASR #16 @ r2 = t2[0] = t[0] + t[3] + 8
SUB r4, r2, r4, LSL #1 @ r4 = t2[3] = t[0] - t[3] + 8
@ 1-2 butterfly
ADD r6, r3, r6, ASR #16 @ r6 = t2[1] = t[1] + t[2] + 8
SUB r3, r6, r3, LSL #1 @ r3 = t2[2] = t[1] - t[2] + 8
@ 6-5 butterfly
MOV r14,r14,ASR #16 @ r14= t2[5]
ADD r10,r14,r10,ASR #16 @ r10= t3[6] = t[6] + t[5]
SUB r14,r10,r14,LSL #1 @ r14= t3[5] = t[6] - t[5]
@ r2=t2[0] r3=t2[2] r4=t2[3] r6=t2[1] r8=t2[7] r9=t2[4]
@ r10=t3[6] r14=t3[5]
@ Stage 4
ADD r2, r2, r8 @ r2 = t[0] + t[7] + 8
ADD r6, r6, r10 @ r6 = t[1] + t[6] + 8
ADD r3, r3, r14 @ r3 = t[2] + t[5] + 8
ADD r4, r4, r9 @ r4 = t[3] + t[4] + 8
SUB r8, r2, r8, LSL #1 @ r8 = t[0] - t[7] + 8
SUB r10,r6, r10,LSL #1 @ r10= t[1] - t[6] + 8
SUB r14,r3, r14,LSL #1 @ r14= t[2] - t[5] + 8
SUB r9, r4, r9, LSL #1 @ r9 = t[3] - t[4] + 8
@ TODO: This is wrong.
@ The C code truncates to 16 bits by storing to RAM and doing the
@ shifts later; we've got an extra 4 bits here.
MOV r2, r2, ASR #4
MOV r6, r6, ASR #4
MOV r3, r3, ASR #4
MOV r4, r4, ASR #4
MOV r8, r8, ASR #4
MOV r10,r10,ASR #4
MOV r14,r14,ASR #4
MOV r9, r9, ASR #4
STRH r2, [r0], #2 @ y[0] = t[0]+t[7]
STRH r6, [r0, #14] @ y[1] = t[1]+t[6]
STRH r3, [r0, #30] @ y[2] = t[2]+t[5]
STRH r4, [r0, #46] @ y[3] = t[3]+t[4]
STRH r9, [r0, #62] @ y[4] = t[3]-t[4]
STRH r14,[r0, #78] @ y[5] = t[2]-t[5]
STRH r10,[r0, #94] @ y[6] = t[1]-t[6]
STRH r8, [r0, #110] @ y[7] = t[0]-t[7]
LDMFD r13!,{r1,PC}
.size idct8core_down_arm, .-idct8core_down_arm @ ENDP
.if OC_ARM_ASM_MEDIA
.global oc_idct8x8_1_v6
.global oc_idct8x8_v6
.type oc_idct8x8_1_v6, %function; oc_idct8x8_1_v6: @ PROC
@ r0 = ogg_int16_t *_y
@ r1 = ogg_uint16_t _dc
ORR r2, r1, r1, LSL #16
ORR r3, r1, r1, LSL #16
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
STRD r2, [r0], #8
MOV PC, r14
.size oc_idct8x8_1_v6, .-oc_idct8x8_1_v6 @ ENDP
.type oc_idct8x8_v6, %function; oc_idct8x8_v6: @ PROC
@ r0 = ogg_int16_t *_y
@ r1 = ogg_int16_t *_x
@ r2 = int _last_zzi
CMP r2, #3
BLE oc_idct8x8_3_v6
@CMP r2, #6
@BLE oc_idct8x8_6_v6
CMP r2, #10
BLE oc_idct8x8_10_v6
oc_idct8x8_slow_v6:
STMFD r13!,{r4-r11,r14}
SUB r13,r13,#64*2
@ Row transforms
STR r0, [r13,#-4]!
ADD r0, r13, #4 @ Write to temp storage.
BL idct8_8core_v6
BL idct8_8core_v6
BL idct8_8core_v6
BL idct8_8core_v6
LDR r0, [r13], #4 @ Write to the final destination.
@ Clear input data for next block.
MOV r4, #0
MOV r5, #0
STRD r4, [r1,#-8*16]!
STRD r4, [r1,#8]
STRD r4, [r1,#16]
STRD r4, [r1,#24]
STRD r4, [r1,#32]
STRD r4, [r1,#40]
STRD r4, [r1,#48]
STRD r4, [r1,#56]
STRD r4, [r1,#64]
STRD r4, [r1,#72]
STRD r4, [r1,#80]
STRD r4, [r1,#88]
STRD r4, [r1,#96]
STRD r4, [r1,#104]
STRD r4, [r1,#112]
STRD r4, [r1,#120]
MOV r1, r13 @ And read from temp storage.
@ Column transforms
BL idct8_8core_down_v6
BL idct8_8core_down_v6
BL idct8_8core_down_v6
BL idct8_8core_down_v6
ADD r13,r13,#64*2
LDMFD r13!,{r4-r11,PC}
.size oc_idct8x8_v6, .-oc_idct8x8_v6 @ ENDP
.type oc_idct8x8_10_v6, %function; oc_idct8x8_10_v6: @ PROC
STMFD r13!,{r4-r11,r14}
SUB r13,r13,#64*2+4
@ Row transforms
MOV r2, r13
STR r0, [r13,#-4]!
AND r0, r2, #4 @ Align the stack.
ADD r0, r0, r2 @ Write to temp storage.
BL idct4_3core_v6
BL idct2_1core_v6
LDR r0, [r13], #4 @ Write to the final destination.
@ Clear input data for next block.
MOV r4, #0
MOV r5, #0
STRD r4, [r1,#-4*16]!
STRD r4, [r1,#16]
STR r4, [r1,#32]
STR r4, [r1,#48]
AND r1, r13,#4 @ Align the stack.
ADD r1, r1, r13 @ And read from temp storage.
@ Column transforms
BL idct4_4core_down_v6
BL idct4_4core_down_v6
BL idct4_4core_down_v6
BL idct4_4core_down_v6
ADD r13,r13,#64*2+4
LDMFD r13!,{r4-r11,PC}
.size oc_idct8x8_10_v6, .-oc_idct8x8_10_v6 @ ENDP
.type oc_idct8x8_3_v6, %function; oc_idct8x8_3_v6: @ PROC
STMFD r13!,{r4-r8,r14}
SUB r13,r13,#64*2
@ Row transforms
MOV r8, r0
MOV r0, r13 @ Write to temp storage.
BL idct2_1core_v6
@ Clear input data for next block.
MOV r4, #0
STR r4, [r1,#-2*16]!
STR r4, [r1,#16]
MOV r1, r13 @ Read from temp storage.
MOV r0, r8 @ Write to the final destination.
@ Column transforms
BL idct2_2core_down_v6
BL idct2_2core_down_v6
BL idct2_2core_down_v6
BL idct2_2core_down_v6
ADD r13,r13,#64*2
LDMFD r13!,{r4-r8,PC}
.size oc_idct8x8_3_v6, .-oc_idct8x8_3_v6 @ ENDP
.type idct2_1core_v6, %function; idct2_1core_v6: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
@ Stage 1:
LDR r2, [r1], #16 @ r2 = <x[0,1]|x[0,0]>
LDR r3, OC_C4S4
LDRSH r6, [r1], #16 @ r6 = x[1,0]
SMULWB r12,r3, r2 @ r12= t[0,0]=OC_C4S4*x[0,0]>>16
LDRD r4, OC_C7S1 @ r4 = OC_C7S1; r5 = OC_C1S7
SMULWB r6, r3, r6 @ r6 = t[1,0]=OC_C4S4*x[1,0]>>16
SMULWT r4, r4, r2 @ r4 = t[0,4]=OC_C7S1*x[0,1]>>16
SMULWT r7, r5, r2 @ r7 = t[0,7]=OC_C1S7*x[0,1]>>16
@ Stage 2:
SMULWB r5, r3, r4 @ r5 = t[0,5]=OC_C4S4*t[0,4]>>16
PKHBT r12,r12,r6, LSL #16 @ r12= <t[1,0]|t[0,0]>
SMULWB r6, r3, r7 @ r6 = t[0,6]=OC_C4S4*t[0,7]>>16
PKHBT r7, r7, r3 @ r7 = <0|t[0,7]>
@ Stage 3:
PKHBT r5, r6, r5, LSL #16 @ r5 = <t[0,5]|t[0,6]>
PKHBT r4, r4, r3 @ r4 = <0|t[0,4]>
SADDSUBX r5, r5, r5 @ r5 = <t[0,6]+t[0,5]|t[0,6]-t[0,5]>
@ Stage 4:
PKHTB r6, r3, r5, ASR #16 @ r6 = <0|t[0,6]>
PKHBT r5, r5, r3 @ r5 = <0|t[0,5]>
SADD16 r3, r12,r7 @ r3 = t[0]+t[7]
STR r3, [r0], #4 @ y[0<<3] = t[0]+t[7]
SADD16 r3, r12,r6 @ r3 = t[0]+t[6]
STR r3, [r0, #12] @ y[1<<3] = t[0]+t[6]
SADD16 r3, r12,r5 @ r3 = t[0]+t[5]
STR r3, [r0, #28] @ y[2<<3] = t[0]+t[5]
SADD16 r3, r12,r4 @ r3 = t[0]+t[4]
STR r3, [r0, #44] @ y[3<<3] = t[0]+t[4]
SSUB16 r4, r12,r4 @ r4 = t[0]-t[4]
STR r4, [r0, #60] @ y[4<<3] = t[0]-t[4]
SSUB16 r5, r12,r5 @ r5 = t[0]-t[5]
STR r5, [r0, #76] @ y[5<<3] = t[0]-t[5]
SSUB16 r6, r12,r6 @ r6 = t[0]-t[6]
STR r6, [r0, #92] @ y[6<<3] = t[0]-t[6]
SSUB16 r7, r12,r7 @ r7 = t[0]-t[7]
STR r7, [r0, #108] @ y[7<<3] = t[0]-t[7]
MOV PC,r14
.size idct2_1core_v6, .-idct2_1core_v6 @ ENDP
.endif
.balign 8
OC_C7S1:
.word 12785 @ 31F1
OC_C1S7:
.word 64277 @ FB15
OC_C6S2:
.word 25080 @ 61F8
OC_C2S6:
.word 60547 @ EC83
OC_C5S3:
.word 36410 @ 8E3A
OC_C3S5:
.word 54491 @ D4DB
OC_C4S4:
.word 46341 @ B505
.if OC_ARM_ASM_MEDIA
.type idct2_2core_down_v6, %function; idct2_2core_down_v6: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
@ Stage 1:
LDR r2, [r1], #16 @ r2 = <x[0,1]|x[0,0]>
LDR r3, OC_C4S4
MOV r7 ,#8 @ r7 = 8
LDR r6, [r1], #16 @ r6 = <x[1,1]|x[1,0]>
SMLAWB r12,r3, r2, r7 @ r12= (t[0,0]=OC_C4S4*x[0,0]>>16)+8
LDRD r4, OC_C7S1 @ r4 = OC_C7S1; r5 = OC_C1S7
SMLAWB r7, r3, r6, r7 @ r7 = (t[1,0]=OC_C4S4*x[1,0]>>16)+8
SMULWT r5, r5, r2 @ r2 = t[0,7]=OC_C1S7*x[0,1]>>16
PKHBT r12,r12,r7, LSL #16 @ r12= <t[1,0]+8|t[0,0]+8>
SMULWT r4, r4, r2 @ r4 = t[0,4]=OC_C7S1*x[0,1]>>16
@ Here we cheat: row 1 had just a DC, so x[0,1]==x[1,1] by definition.
PKHBT r7, r5, r5, LSL #16 @ r7 = <t[0,7]|t[0,7]>
@ Stage 2:
SMULWB r6, r3, r7 @ r6 = t[0,6]=OC_C4S4*t[0,7]>>16
PKHBT r4, r4, r4, LSL #16 @ r4 = <t[0,4]|t[0,4]>
SMULWT r2, r3, r7 @ r2 = t[1,6]=OC_C4S4*t[1,7]>>16
SMULWB r5, r3, r4 @ r5 = t[0,5]=OC_C4S4*t[0,4]>>16
PKHBT r6, r6, r2, LSL #16 @ r6 = <t[1,6]|t[0,6]>
SMULWT r2, r3, r4 @ r2 = t[1,5]=OC_C4S4*t[1,4]>>16
PKHBT r2, r5, r2, LSL #16 @ r2 = <t[1,5]|t[0,5]>
@ Stage 3:
SSUB16 r5, r6, r2 @ r5 = <t[1,6]-t[1,5]|t[0,6]-t[0,5]>
SADD16 r6, r6, r2 @ r6 = <t[1,6]+t[1,5]|t[0,6]+t[0,5]>
@ Stage 4:
SADD16 r2, r12,r7 @ r2 = t[0]+t[7]+8
MOV r3, r2, ASR #4
MOV r2, r2, LSL #16
PKHTB r3, r3, r2, ASR #20 @ r3 = t[0]+t[7]+8>>4
STR r3, [r0], #4 @ y[0<<3] = t[0]+t[7]+8>>4
SADD16 r2, r12,r6 @ r2 = t[0]+t[6]+8
MOV r3, r2, ASR #4
MOV r2, r2, LSL #16
PKHTB r3, r3, r2, ASR #20 @ r3 = t[0]+t[6]+8>>4
STR r3, [r0, #12] @ y[1<<3] = t[0]+t[6]+8>>4
SADD16 r2, r12,r5 @ r2 = t[0]+t[5]+8
MOV r3, r2, ASR #4
MOV r2, r2, LSL #16
PKHTB r3, r3, r2, ASR #20 @ r3 = t[0]+t[5]+8>>4
STR r3, [r0, #28] @ y[2<<3] = t[0]+t[5]+8>>4
SADD16 r2, r12,r4 @ r2 = t[0]+t[4]+8
MOV r3, r2, ASR #4
MOV r2, r2, LSL #16
PKHTB r3, r3, r2, ASR #20 @ r3 = t[0]+t[4]+8>>4
STR r3, [r0, #44] @ y[3<<3] = t[0]+t[4]+8>>4
SSUB16 r4, r12,r4 @ r4 = t[0]-t[4]+8
MOV r3, r4, ASR #4
MOV r4, r4, LSL #16
PKHTB r3, r3, r4, ASR #20 @ r3 = t[0]-t[4]+8>>4
STR r3, [r0, #60] @ y[4<<3] = t[0]-t[4]+8>>4
SSUB16 r5, r12,r5 @ r5 = t[0]-t[5]+8
MOV r3, r5, ASR #4
MOV r5, r5, LSL #16
PKHTB r3, r3, r5, ASR #20 @ r3 = t[0]-t[5]+8>>4
STR r3, [r0, #76] @ y[5<<3] = t[0]-t[5]+8>>4
SSUB16 r6, r12,r6 @ r6 = t[0]-t[6]+8
MOV r3, r6, ASR #4
MOV r6, r6, LSL #16
PKHTB r3, r3, r6, ASR #20 @ r3 = t[0]-t[6]+8>>4
STR r3, [r0, #92] @ y[6<<3] = t[0]-t[6]+8>>4
SSUB16 r7, r12,r7 @ r7 = t[0]-t[7]+8
MOV r3, r7, ASR #4
MOV r7, r7, LSL #16
PKHTB r3, r3, r7, ASR #20 @ r3 = t[0]-t[7]+8>>4
STR r3, [r0, #108] @ y[7<<3] = t[0]-t[7]+8>>4
MOV PC,r14
.size idct2_2core_down_v6, .-idct2_2core_down_v6 @ ENDP
@ In theory this should save ~75 cycles over oc_idct8x8_10, more than enough to
@ pay for increased branch mis-prediction to get here, but in practice it
@ doesn't seem to slow anything down to take it out, and it's less code this
@ way.
.if 0
.type oc_idct8x8_6_v6, %function; oc_idct8x8_6_v6: @ PROC
STMFD r13!,{r4-r8,r10,r11,r14}
SUB r13,r13,#64*2+4
@ Row transforms
MOV r8, r0
AND r0, r13,#4 @ Align the stack.
ADD r0, r0, r13 @ Write to temp storage.
BL idct3_2core_v6
BL idct1core_v6
@ Clear input data for next block.
MOV r4, #0
MOV r5, #0
STRD r4, [r1,#-3*16]!
STR r4, [r1,#16]
STR r4, [r1,#32]
AND r1, r13,#4 @ Align the stack.
MOV r0, r8 @ Write to the final destination.
ADD r1, r1, r13 @ And read from temp storage.
@ Column transforms
BL idct3_3core_down_v6
BL idct3_3core_down_v6
BL idct3_3core_down_v6
BL idct3_3core_down_v6
ADD r13,r13,#64*2+4
LDMFD r13!,{r4-r8,r10,r11,PC}
.size oc_idct8x8_6_v6, .-oc_idct8x8_6_v6 @ ENDP
.type idct1core_v6, %function; idct1core_v6: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
LDRSH r3, [r1], #16
MOV r12,#0x05
ORR r12,r12,#0xB500
MUL r3, r12, r3
@ Stall ?
MOV r3, r3, ASR #16
@ Don't need to actually store the odd lines; they won't be read.
STRH r3, [r0], #2
STRH r3, [r0, #30]
STRH r3, [r0, #62]
STRH r3, [r0, #94]
MOV PC,R14
.size idct1core_v6, .-idct1core_v6 @ ENDP
.type idct3_2core_v6, %function; idct3_2core_v6: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
@ Stage 1:
LDRD r4, [r1], #16 @ r4 = <x[0,1]|x[0,0]>; r5 = <*|x[0,2]>
LDRD r10,OC_C6S2_3_v6 @ r10= OC_C6S2; r11= OC_C2S6
@ Stall
SMULWB r3, r11,r5 @ r3 = t[0,3]=OC_C2S6*x[0,2]>>16
LDR r11,OC_C4S4
SMULWB r2, r10,r5 @ r2 = t[0,2]=OC_C6S2*x[0,2]>>16
LDR r5, [r1], #16 @ r5 = <x[1,1]|x[1,0]>
SMULWB r12,r11,r4 @ r12= (t[0,0]=OC_C4S4*x[0,0]>>16)
LDRD r6, OC_C7S1_3_v6 @ r6 = OC_C7S1; r7 = OC_C1S7
SMULWB r10,r11,r5 @ r10= (t[1,0]=OC_C4S4*x[1,0]>>16)
PKHBT r12,r12,r10,LSL #16 @ r12= <t[1,0]|t[0,0]>
SMULWT r10,r7, r5 @ r10= t[1,7]=OC_C1S7*x[1,1]>>16
PKHBT r2, r2, r11 @ r2 = <0|t[0,2]>
SMULWT r7, r7, r4 @ r7 = t[0,7]=OC_C1S7*x[0,1]>>16
PKHBT r3, r3, r11 @ r3 = <0|t[0,3]>
SMULWT r5, r6, r5 @ r10= t[1,4]=OC_C7S1*x[1,1]>>16
PKHBT r7, r7, r10,LSL #16 @ r7 = <t[1,7]|t[0,7]>
SMULWT r4, r6, r4 @ r4 = t[0,4]=OC_C7S1*x[0,1]>>16
@ Stage 2:
SMULWB r6, r11,r7 @ r6 = t[0,6]=OC_C4S4*t[0,7]>>16
PKHBT r4, r4, r5, LSL #16 @ r4 = <t[1,4]|t[0,4]>
SMULWT r10,r11,r7 @ r10= t[1,6]=OC_C4S4*t[1,7]>>16
SMULWB r5, r11,r4 @ r5 = t[0,5]=OC_C4S4*t[0,4]>>16
PKHBT r6, r6, r10,LSL #16 @ r6 = <t[1,6]|t[0,6]>
SMULWT r10,r11,r4 @ r10= t[1,5]=OC_C4S4*t[1,4]>>16
@ Stage 3:
B idct4_3core_stage3_v6
.size idct3_2core_v6, .-idct3_2core_v6 @ ENDP
@ Another copy so the LDRD offsets are less than +/- 255.
.balign 8
OC_C7S1_3_v6:
.word 12785 @ 31F1
OC_C1S7_3_v6:
.word 64277 @ FB15
OC_C6S2_3_v6:
.word 25080 @ 61F8
OC_C2S6_3_v6:
.word 60547 @ EC83
.type idct3_3core_down_v6, %function; idct3_3core_down_v6: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
@ Stage 1:
LDRD r10,[r1], #16 @ r10= <x[0,1]|x[0,0]>; r11= <??|x[0,2]>
LDRD r6, OC_C6S2_3_v6 @ r6 = OC_C6S2; r7 = OC_C2S6
LDR r4, [r1], #16 @ r4 = <x[1,1]|x[1,0]>
SMULWB r3, r7, r11 @ r3 = t[0,3]=OC_C2S6*x[0,2]>>16
MOV r7,#8
SMULWB r2, r6, r11 @ r2 = t[0,2]=OC_C6S2*x[0,2]>>16
LDR r11,OC_C4S4
SMLAWB r12,r11,r10,r7 @ r12= t[0,0]+8=(OC_C4S4*x[0,0]>>16)+8
@ Here we cheat: row 2 had just a DC, so x[0,2]==x[1,2] by definition.
PKHBT r3, r3, r3, LSL #16 @ r3 = <t[0,3]|t[0,3]>
SMLAWB r5, r11,r4, r7 @ r5 = t[1,0]+8=(OC_C4S4*x[1,0]>>16)+8
PKHBT r2, r2, r2, LSL #16 @ r2 = <t[0,2]|t[0,2]>
LDRD r6, OC_C7S1_3_v6 @ r6 = OC_C7S1; r7 = OC_C1S7
PKHBT r12,r12,r5, LSL #16 @ r12= <t[1,0]+8|t[0,0]+8>
SMULWT r5, r7, r4 @ r5 = t[1,7]=OC_C1S7*x[1,1]>>16
SMULWT r7, r7, r10 @ r7 = t[0,7]=OC_C1S7*x[0,1]>>16
SMULWT r10,r6, r10 @ r10= t[0,4]=OC_C7S1*x[0,1]>>16
PKHBT r7, r7, r5, LSL #16 @ r7 = <t[1,7]|t[0,7]>
SMULWT r4, r6, r4 @ r4 = t[1,4]=OC_C7S1*x[1,1]>>16
@ Stage 2:
SMULWB r6, r11,r7 @ r6 = t[0,6]=OC_C4S4*t[0,7]>>16
PKHBT r4, r10,r4, LSL #16 @ r4 = <t[1,4]|t[0,4]>
SMULWT r10,r11,r7 @ r10= t[1,6]=OC_C4S4*t[1,7]>>16
SMULWB r5, r11,r4 @ r5 = t[0,5]=OC_C4S4*t[0,4]>>16
PKHBT r6, r6, r10,LSL #16 @ r6 = <t[1,6]|t[0,6]>
SMULWT r10,r11,r4 @ r10= t[1,5]=OC_C4S4*t[1,4]>>16
@ Stage 3:
B idct4_4core_down_stage3_v6
.size idct3_3core_down_v6, .-idct3_3core_down_v6 @ ENDP
.endif
.type idct4_3core_v6, %function; idct4_3core_v6: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
@ Stage 1:
LDRD r10,[r1], #16 @ r10= <x[0,1]|x[0,0]>; r11= <x[0,3]|x[0,2]>
LDRD r2, OC_C5S3_4_v6 @ r2 = OC_C5S3; r3 = OC_C3S5
LDRD r4, [r1], #16 @ r4 = <x[1,1]|x[1,0]>; r5 = <??|x[1,2]>
SMULWT r9, r3, r11 @ r9 = t[0,6]=OC_C3S5*x[0,3]>>16
SMULWT r8, r2, r11 @ r8 = -t[0,5]=OC_C5S3*x[0,3]>>16
PKHBT r9, r9, r2 @ r9 = <0|t[0,6]>
LDRD r6, OC_C6S2_4_v6 @ r6 = OC_C6S2; r7 = OC_C2S6
PKHBT r8, r8, r2 @ r9 = <0|-t[0,5]>
SMULWB r3, r7, r11 @ r3 = t[0,3]=OC_C2S6*x[0,2]>>16
SMULWB r2, r6, r11 @ r2 = t[0,2]=OC_C6S2*x[0,2]>>16
LDR r11,OC_C4S4
SMULWB r12,r7, r5 @ r12= t[1,3]=OC_C2S6*x[1,2]>>16
SMULWB r5, r6, r5 @ r5 = t[1,2]=OC_C6S2*x[1,2]>>16
PKHBT r3, r3, r12,LSL #16 @ r3 = <t[1,3]|t[0,3]>
SMULWB r12,r11,r10 @ r12= t[0,0]=OC_C4S4*x[0,0]>>16
PKHBT r2, r2, r5, LSL #16 @ r2 = <t[1,2]|t[0,2]>
SMULWB r5, r11,r4 @ r5 = t[1,0]=OC_C4S4*x[1,0]>>16
LDRD r6, OC_C7S1_4_v6 @ r6 = OC_C7S1; r7 = OC_C1S7
PKHBT r12,r12,r5, LSL #16 @ r12= <t[1,0]|t[0,0]>
SMULWT r5, r7, r4 @ r5 = t[1,7]=OC_C1S7*x[1,1]>>16
SMULWT r7, r7, r10 @ r7 = t[0,7]=OC_C1S7*x[0,1]>>16
SMULWT r10,r6, r10 @ r10= t[0,4]=OC_C7S1*x[0,1]>>16
PKHBT r7, r7, r5, LSL #16 @ r7 = <t[1,7]|t[0,7]>
SMULWT r4, r6, r4 @ r4 = t[1,4]=OC_C7S1*x[1,1]>>16
@ Stage 2:
SSUB16 r6, r7, r9 @ r6 = t[7]-t[6]
PKHBT r4, r10,r4, LSL #16 @ r4 = <t[1,4]|t[0,4]>
SADD16 r7, r7, r9 @ r7 = t[7]=t[7]+t[6]
SMULWT r9, r11,r6 @ r9 = t[1,6]=OC_C4S4*r6T>>16
SADD16 r5, r4, r8 @ r5 = t[4]-t[5]
SMULWB r6, r11,r6 @ r6 = t[0,6]=OC_C4S4*r6B>>16
SSUB16 r4, r4, r8 @ r4 = t[4]=t[4]+t[5]
SMULWT r10,r11,r5 @ r10= t[1,5]=OC_C4S4*r5T>>16
PKHBT r6, r6, r9, LSL #16 @ r6 = <t[1,6]|t[0,6]>
SMULWB r5, r11,r5 @ r5 = t[0,5]=OC_C4S4*r5B>>16
@ Stage 3:
idct4_3core_stage3_v6:
SADD16 r11,r12,r2 @ r11= t[1]=t[0]+t[2]
PKHBT r10,r5, r10,LSL #16 @ r10= <t[1,5]|t[0,5]>
SSUB16 r2, r12,r2 @ r2 = t[2]=t[0]-t[2]
idct4_3core_stage3_5_v6:
SSUB16 r5, r6, r10 @ r5 = t[5]=t[6]-t[5]
SADD16 r6, r6, r10 @ r6 = t[6]=t[6]+t[5]
SADD16 r10,r12,r3 @ r10= t[0]=t[0]+t[3]
SSUB16 r3, r12,r3 @ r3 = t[3]=t[0]-t[3]
@ Stage 4:
SADD16 r12,r10,r7 @ r12= t[0]+t[7]
STR r12,[r0], #4 @ y[0<<3] = t[0]+t[7]
SADD16 r12,r11,r6 @ r12= t[1]+t[6]
STR r12,[r0, #12] @ y[1<<3] = t[1]+t[6]
SADD16 r12,r2, r5 @ r12= t[2]+t[5]
STR r12,[r0, #28] @ y[2<<3] = t[2]+t[5]
SADD16 r12,r3, r4 @ r12= t[3]+t[4]
STR r12,[r0, #44] @ y[3<<3] = t[3]+t[4]
SSUB16 r4, r3, r4 @ r4 = t[3]-t[4]
STR r4, [r0, #60] @ y[4<<3] = t[3]-t[4]
SSUB16 r5, r2, r5 @ r5 = t[2]-t[5]
STR r5, [r0, #76] @ y[5<<3] = t[2]-t[5]
SSUB16 r6, r11,r6 @ r6 = t[1]-t[6]
STR r6, [r0, #92] @ y[6<<3] = t[1]-t[6]
SSUB16 r7, r10,r7 @ r7 = t[0]-t[7]
STR r7, [r0, #108] @ y[7<<3] = t[0]-t[7]
MOV PC,r14
.size idct4_3core_v6, .-idct4_3core_v6 @ ENDP
@ Another copy so the LDRD offsets are less than +/- 255.
.balign 8
OC_C7S1_4_v6:
.word 12785 @ 31F1
OC_C1S7_4_v6:
.word 64277 @ FB15
OC_C6S2_4_v6:
.word 25080 @ 61F8
OC_C2S6_4_v6:
.word 60547 @ EC83
OC_C5S3_4_v6:
.word 36410 @ 8E3A
OC_C3S5_4_v6:
.word 54491 @ D4DB
.type idct4_4core_down_v6, %function; idct4_4core_down_v6: @ PROC
@ r0 = ogg_int16_t *_y (destination)
@ r1 = const ogg_int16_t *_x (source)
@ Stage 1:
LDRD r10,[r1], #16 @ r10= <x[0,1]|x[0,0]>; r11= <x[0,3]|x[0,2]>
LDRD r2, OC_C5S3_4_v6 @ r2 = OC_C5S3; r3 = OC_C3S5
LDRD r4, [r1], #16 @ r4 = <x[1,1]|x[1,0]>; r5 = <x[1,3]|x[1,2]>
SMULWT r9, r3, r11 @ r9 = t[0,6]=OC_C3S5*x[0,3]>>16
LDRD r6, OC_C6S2_4_v6 @ r6 = OC_C6S2; r7 = OC_C2S6
SMULWT r8, r2, r11 @ r8 = -t[0,5]=OC_C5S3*x[0,3]>>16
@ Here we cheat: row 3 had just a DC, so x[0,3]==x[1,3] by definition.
PKHBT r9, r9, r9, LSL #16 @ r9 = <t[0,6]|t[0,6]>
SMULWB r3, r7, r11 @ r3 = t[0,3]=OC_C2S6*x[0,2]>>16
PKHBT r8, r8, r8, LSL #16 @ r8 = <-t[0,5]|-t[0,5]>
SMULWB r2, r6, r11 @ r2 = t[0,2]=OC_C6S2*x[0,2]>>16
LDR r11,OC_C4S4
SMULWB r12,r7, r5 @ r12= t[1,3]=OC_C2S6*x[1,2]>>16
MOV r7,#8
SMULWB r5, r6, r5 @ r5 = t[1,2]=OC_C6S2*x[1,2]>>16
PKHBT r3, r3, r12,LSL #16 @ r3 = <t[1,3]|t[0,3]>
SMLAWB r12,r11,r10,r7 @ r12= t[0,0]+8=(OC_C4S4*x[0,0]>>16)+8
PKHBT r2, r2, r5, LSL #16 @ r2 = <t[1,2]|t[0,2]>
SMLAWB r5, r11,r4 ,r7 @ r5 = t[1,0]+8=(OC_C4S4*x[1,0]>>16)+8
LDRD r6, OC_C7S1_4_v6 @ r6 = OC_C7S1; r7 = OC_C1S7
PKHBT r12,r12,r5, LSL #16 @ r12= <t[1,0]+8|t[0,0]+8>
SMULWT r5, r7, r4 @ r5 = t[1,7]=OC_C1S7*x[1,1]>>16
SMULWT r7, r7, r10 @ r7 = t[0,7]=OC_C1S7*x[0,1]>>16
SMULWT r10,r6, r10 @ r10= t[0,4]=OC_C7S1*x[0,1]>>16
PKHBT r7, r7, r5, LSL #16 @ r7 = <t[1,7]|t[0,7]>
SMULWT r4, r6, r4 @ r4 = t[1,4]=OC_C7S1*x[1,1]>>16
@ Stage 2:
SSUB16 r6, r7, r9 @ r6 = t[7]-t[6]
PKHBT r4, r10,r4, LSL #16 @ r4 = <t[1,4]|t[0,4]>
SADD16 r7, r7, r9 @ r7 = t[7]=t[7]+t[6]
SMULWT r9, r11,r6 @ r9 = t[1,6]=OC_C4S4*r6T>>16
SADD16 r5, r4, r8 @ r5 = t[4]-t[5]
SMULWB r6, r11,r6 @ r6 = t[0,6]=OC_C4S4*r6B>>16
SSUB16 r4, r4, r8 @ r4 = t[4]=t[4]+t[5]
SMULWT r10,r11,r5 @ r10= t[1,5]=OC_C4S4*r5T>>16
PKHBT r6, r6, r9, LSL #16 @ r6 = <t[1,6]|t[0,6]>
SMULWB r5, r11,r5 @ r5 = t[0,5]=OC_C4S4*r5B>>16
@ Stage 3:
idct4_4core_down_stage3_v6:
SADD16 r11,r12,r2 @ r11= t[1]+8=t[0]+t[2]+8
PKHBT r10,r5, r10,LSL #16 @ r10= <t[1,5]|t[0,5]>
SSUB16 r2, r12,r2 @ r2 = t[2]+8=t[0]-t[2]+8
B idct8_8core_down_stage3_5_v6
.size idct4_4core_down_v6, .-idct4_4core_down_v6 @ ENDP
.type idct8_8core_v6, %function; idct8_8core_v6: @ PROC
STMFD r13!,{r0,r14}
@ Stage 1:
@5-6 rotation by 3pi/16
LDRD r10,OC_C5S3_4_v6 @ r10= OC_C5S3, r11= OC_C3S5
LDR r4, [r1,#8] @ r4 = <x[0,5]|x[0,4]>
LDR r7, [r1,#24] @ r7 = <x[1,5]|x[1,4]>
SMULWT r5, r11,r4 @ r5 = OC_C3S5*x[0,5]>>16
LDR r0, [r1,#4] @ r0 = <x[0,3]|x[0,2]>
SMULWT r3, r11,r7 @ r3 = OC_C3S5*x[1,5]>>16
LDR r12,[r1,#20] @ r12= <x[1,3]|x[1,2]>
SMULWT r6, r11,r0 @ r6 = OC_C3S5*x[0,3]>>16
SMULWT r11,r11,r12 @ r11= OC_C3S5*x[1,3]>>16
SMLAWT r6, r10,r4, r6 @ r6 = t[0,6]=r6+(OC_C5S3*x[0,5]>>16)
PKHBT r5, r5, r3, LSL #16 @ r5 = <r3|r5>
SMLAWT r11,r10,r7, r11 @ r11= t[1,6]=r11+(OC_C5S3*x[1,5]>>16)
PKHBT r4, r4, r7, LSL #16 @ r4 = <x[1,4]|x[0,4]>
SMULWT r3, r10,r0 @ r3 = OC_C5S3*x[0,3]>>16
PKHBT r6, r6, r11,LSL #16 @ r6 = <t[1,6]|t[0,6]>
SMULWT r8, r10,r12 @ r8 = OC_C5S3*x[1,3]>>16
@2-3 rotation by 6pi/16
LDRD r10,OC_C6S2_4_v6 @ r10= OC_C6S2, r11= OC_C2S6
PKHBT r3, r3, r8, LSL #16 @ r3 = <r8|r3>
LDR r8, [r1,#12] @ r8 = <x[0,7]|x[0,6]>
SMULWB r2, r10,r0 @ r2 = OC_C6S2*x[0,2]>>16
SSUB16 r5, r5, r3 @ r5 = <t[1,5]|t[0,5]>
SMULWB r9, r10,r12 @ r9 = OC_C6S2*x[1,2]>>16
LDR r7, [r1,#28] @ r7 = <x[1,7]|x[1,6]>
SMULWB r3, r10,r8 @ r3 = OC_C6S2*x[0,6]>>16
SMULWB r10,r10,r7 @ r10= OC_C6S2*x[1,6]>>16
PKHBT r2, r2, r9, LSL #16 @ r2 = <r2|r9>
SMLAWB r3, r11,r0, r3 @ r3 = t[0,3]=r3+(OC_C2S6*x[0,2]>>16)
SMLAWB r10,r11,r12,r10 @ r10= t[1,3]=r10+(OC_C2S6*x[1,2]>>16)
SMULWB r9, r11,r8 @ r9 = OC_C2S6*x[0,6]>>16
PKHBT r3, r3, r10,LSL #16 @ r3 = <t[1,6]|t[0,6]>
SMULWB r12,r11,r7 @ r12= OC_C2S6*x[1,6]>>16
@4-7 rotation by 7pi/16
LDRD r10,OC_C7S1_8_v6 @ r10= OC_C7S1, r11= OC_C1S7
PKHBT r9, r9, r12,LSL #16 @ r9 = <r9|r12>
LDR r0, [r1],#16 @ r0 = <x[0,1]|x[0,0]>
PKHTB r7, r7, r8, ASR #16 @ r7 = <x[1,7]|x[0,7]>
SSUB16 r2, r2, r9 @ r2 = <t[1,2]|t[0,2]>
SMULWB r9, r10,r7 @ r9 = OC_C7S1*x[0,7]>>16
LDR r14,[r1],#16 @ r14= <x[1,1]|x[1,0]>
SMULWT r12,r10,r7 @ r12= OC_C7S1*x[1,7]>>16
SMULWT r8, r10,r0 @ r8 = OC_C7S1*x[0,1]>>16
SMULWT r10,r10,r14 @ r10= OC_C7S1*x[1,1]>>16
SMLAWT r9, r11,r0, r9 @ r9 = t[0,7]=r9+(OC_C1S7*x[0,1]>>16)
PKHBT r8, r8, r10,LSL #16 @ r8 = <r12|r8>
SMLAWT r12,r11,r14,r12 @ r12= t[1,7]=r12+(OC_C1S7*x[1,1]>>16)
PKHBT r0, r0, r14,LSL #16 @ r0 = <x[1,0]|x[0,0]>
SMULWB r10,r11,r7 @ r10= OC_C1S7*x[0,6]>>16
PKHBT r9, r9, r12,LSL #16 @ r9 = <t[1,7]|t[0,7]>
SMULWT r12,r11,r7 @ r12= OC_C1S7*x[1,6]>>16
@0-1 butterfly
LDR r11,OC_C4S4
PKHBT r10,r10,r12,LSL #16 @ r10= <r12|r10>
SADD16 r7, r0, r4 @ r7 = x[0]+x[4]
SSUB16 r10,r8, r10 @ r10= <t[1,4]|t[0,4]>
SSUB16 r4, r0, r4 @ r4 = x[0]-x[4]
SMULWB r8, r11,r7 @ r8 = t[0,0]=OC_C4S4*r7B>>16
SMULWT r12,r11,r7 @ r12= t[1,0]=OC_C4S4*r7T>>16
SMULWB r7, r11,r4 @ r7 = t[0,1]=OC_C4S4*r4B>>16
PKHBT r12,r8, r12,LSL #16 @ r12= <t[1,0]|t[0,0]>
SMULWT r8, r11,r4 @ r8 = t[1,1]=OC_C4S4*r4T>>16
@ Stage 2:
SADD16 r4, r10,r5 @ r4 = t[4]=t[4]+t[5]
PKHBT r8, r7, r8, LSL #16 @ r8 = <t[1,0]|t[0,0]>
SSUB16 r5, r10,r5 @ r5 = t[4]-t[5]
SMULWB r10,r11,r5 @ r10= t[0,5]=OC_C4S4*r5B>>16
SADD16 r7, r9, r6 @ r7 = t[7]=t[7]+t[6]
SMULWT r5, r11,r5 @ r5 = t[1,5]=OC_C4S4*r5T>>16
SSUB16 r6, r9, r6 @ r6 = t[7]-t[6]
SMULWB r9, r11,r6 @ r9 = t[0,6]=OC_C4S4*r6B>>16
PKHBT r10,r10,r5, LSL #16 @ r10= <t[1,5]|t[0,5]>
SMULWT r6, r11,r6 @ r6 = t[1,6]=OC_C4S4*r6T>>16
@ Stage 3:
SADD16 r11,r8, r2 @ r11= t[1]=t[1]+t[2]
PKHBT r6, r9, r6, LSL #16 @ r6 = <t[1,6]|t[0,6]>
SSUB16 r2, r8, r2 @ r2 = t[2]=t[1]-t[2]
LDMFD r13!,{r0,r14}
B idct4_3core_stage3_5_v6
.size idct8_8core_v6, .-idct8_8core_v6 @ ENDP
@ Another copy so the LDRD offsets are less than +/- 255.
.balign 8
OC_C7S1_8_v6:
.word 12785 @ 31F1
OC_C1S7_8_v6:
.word 64277 @ FB15
OC_C6S2_8_v6:
.word 25080 @ 61F8
OC_C2S6_8_v6:
.word 60547 @ EC83
OC_C5S3_8_v6:
.word 36410 @ 8E3A
OC_C3S5_8_v6:
.word 54491 @ D4DB
.type idct8_8core_down_v6, %function; idct8_8core_down_v6: @ PROC
STMFD r13!,{r0,r14}
@ Stage 1:
@5-6 rotation by 3pi/16
LDRD r10,OC_C5S3_8_v6 @ r10= OC_C5S3, r11= OC_C3S5
LDR r4, [r1,#8] @ r4 = <x[0,5]|x[0,4]>
LDR r7, [r1,#24] @ r7 = <x[1,5]|x[1,4]>
SMULWT r5, r11,r4 @ r5 = OC_C3S5*x[0,5]>>16
LDR r0, [r1,#4] @ r0 = <x[0,3]|x[0,2]>
SMULWT r3, r11,r7 @ r3 = OC_C3S5*x[1,5]>>16
LDR r12,[r1,#20] @ r12= <x[1,3]|x[1,2]>
SMULWT r6, r11,r0 @ r6 = OC_C3S5*x[0,3]>>16
SMULWT r11,r11,r12 @ r11= OC_C3S5*x[1,3]>>16
SMLAWT r6, r10,r4, r6 @ r6 = t[0,6]=r6+(OC_C5S3*x[0,5]>>16)
PKHBT r5, r5, r3, LSL #16 @ r5 = <r3|r5>
SMLAWT r11,r10,r7, r11 @ r11= t[1,6]=r11+(OC_C5S3*x[1,5]>>16)
PKHBT r4, r4, r7, LSL #16 @ r4 = <x[1,4]|x[0,4]>
SMULWT r3, r10,r0 @ r3 = OC_C5S3*x[0,3]>>16
PKHBT r6, r6, r11,LSL #16 @ r6 = <t[1,6]|t[0,6]>
SMULWT r8, r10,r12 @ r8 = OC_C5S3*x[1,3]>>16
@2-3 rotation by 6pi/16
LDRD r10,OC_C6S2_8_v6 @ r10= OC_C6S2, r11= OC_C2S6
PKHBT r3, r3, r8, LSL #16 @ r3 = <r8|r3>
LDR r8, [r1,#12] @ r8 = <x[0,7]|x[0,6]>
SMULWB r2, r10,r0 @ r2 = OC_C6S2*x[0,2]>>16
SSUB16 r5, r5, r3 @ r5 = <t[1,5]|t[0,5]>
SMULWB r9, r10,r12 @ r9 = OC_C6S2*x[1,2]>>16
LDR r7, [r1,#28] @ r7 = <x[1,7]|x[1,6]>
SMULWB r3, r10,r8 @ r3 = OC_C6S2*x[0,6]>>16
SMULWB r10,r10,r7 @ r10= OC_C6S2*x[1,6]>>16
PKHBT r2, r2, r9, LSL #16 @ r2 = <r2|r9>
SMLAWB r3, r11,r0, r3 @ r3 = t[0,3]=r3+(OC_C2S6*x[0,2]>>16)
SMLAWB r10,r11,r12,r10 @ r10= t[1,3]=r10+(OC_C2S6*x[1,2]>>16)
SMULWB r9, r11,r8 @ r9 = OC_C2S6*x[0,6]>>16
PKHBT r3, r3, r10,LSL #16 @ r3 = <t[1,6]|t[0,6]>
SMULWB r12,r11,r7 @ r12= OC_C2S6*x[1,6]>>16
@4-7 rotation by 7pi/16
LDRD r10,OC_C7S1_8_v6 @ r10= OC_C7S1, r11= OC_C1S7
PKHBT r9, r9, r12,LSL #16 @ r9 = <r9|r12>
LDR r0, [r1],#16 @ r0 = <x[0,1]|x[0,0]>
PKHTB r7, r7, r8, ASR #16 @ r7 = <x[1,7]|x[0,7]>
SSUB16 r2, r2, r9 @ r2 = <t[1,2]|t[0,2]>
SMULWB r9, r10,r7 @ r9 = OC_C7S1*x[0,7]>>16
LDR r14,[r1],#16 @ r14= <x[1,1]|x[1,0]>
SMULWT r12,r10,r7 @ r12= OC_C7S1*x[1,7]>>16
SMULWT r8, r10,r0 @ r8 = OC_C7S1*x[0,1]>>16
SMULWT r10,r10,r14 @ r10= OC_C7S1*x[1,1]>>16
SMLAWT r9, r11,r0, r9 @ r9 = t[0,7]=r9+(OC_C1S7*x[0,1]>>16)
PKHBT r8, r8, r10,LSL #16 @ r8 = <r12|r8>
SMLAWT r12,r11,r14,r12 @ r12= t[1,7]=r12+(OC_C1S7*x[1,1]>>16)
PKHBT r0, r0, r14,LSL #16 @ r0 = <x[1,0]|x[0,0]>
SMULWB r10,r11,r7 @ r10= OC_C1S7*x[0,6]>>16
PKHBT r9, r9, r12,LSL #16 @ r9 = <t[1,7]|t[0,7]>
SMULWT r12,r11,r7 @ r12= OC_C1S7*x[1,6]>>16
@0-1 butterfly
LDR r11,OC_C4S4
MOV r14,#8
PKHBT r10,r10,r12,LSL #16 @ r10= <r12|r10>
SADD16 r7, r0, r4 @ r7 = x[0]+x[4]
SSUB16 r10,r8, r10 @ r10= <t[1,4]|t[0,4]>
SMLAWB r8, r11,r7, r14 @ r8 = t[0,0]+8=(OC_C4S4*r7B>>16)+8
SSUB16 r4, r0, r4 @ r4 = x[0]-x[4]
SMLAWT r12,r11,r7, r14 @ r12= t[1,0]+8=(OC_C4S4*r7T>>16)+8
SMLAWB r7, r11,r4, r14 @ r7 = t[0,1]+8=(OC_C4S4*r4B>>16)+8
PKHBT r12,r8, r12,LSL #16 @ r12= <t[1,0]+8|t[0,0]+8>
SMLAWT r8, r11,r4, r14 @ r8 = t[1,1]+8=(OC_C4S4*r4T>>16)+8
@ Stage 2:
SADD16 r4, r10,r5 @ r4 = t[4]=t[4]+t[5]
PKHBT r8, r7, r8, LSL #16 @ r8 = <t[1,0]+8|t[0,0]+8>
SSUB16 r5, r10,r5 @ r5 = t[4]-t[5]
SMULWB r10,r11,r5 @ r10= t[0,5]=OC_C4S4*r5B>>16
SADD16 r7, r9, r6 @ r7 = t[7]=t[7]+t[6]
SMULWT r5, r11,r5 @ r5 = t[1,5]=OC_C4S4*r5T>>16
SSUB16 r6, r9, r6 @ r6 = t[7]-t[6]
SMULWB r9, r11,r6 @ r9 = t[0,6]=OC_C4S4*r6B>>16
PKHBT r10,r10,r5, LSL #16 @ r10= <t[1,5]|t[0,5]>
SMULWT r6, r11,r6 @ r6 = t[1,6]=OC_C4S4*r6T>>16
@ Stage 3:
SADD16 r11,r8, r2 @ r11= t[1]+8=t[1]+t[2]+8
PKHBT r6, r9, r6, LSL #16 @ r6 = <t[1,6]|t[0,6]>
SSUB16 r2, r8, r2 @ r2 = t[2]+8=t[1]-t[2]+8
LDMFD r13!,{r0,r14}
idct8_8core_down_stage3_5_v6:
SSUB16 r5, r6, r10 @ r5 = t[5]=t[6]-t[5]
SADD16 r6, r6, r10 @ r6 = t[6]=t[6]+t[5]
SADD16 r10,r12,r3 @ r10= t[0]+8=t[0]+t[3]+8
SSUB16 r3, r12,r3 @ r3 = t[3]+8=t[0]-t[3]+8
@ Stage 4:
SADD16 r12,r10,r7 @ r12= t[0]+t[7]+8
SSUB16 r7, r10,r7 @ r7 = t[0]-t[7]+8
MOV r10,r12,ASR #4
MOV r12,r12,LSL #16
PKHTB r10,r10,r12,ASR #20 @ r10= t[0]+t[7]+8>>4
STR r10,[r0], #4 @ y[0<<3] = t[0]+t[7]+8>>4
SADD16 r12,r11,r6 @ r12= t[1]+t[6]+8
SSUB16 r6, r11,r6 @ r6 = t[1]-t[6]+8
MOV r10,r12,ASR #4
MOV r12,r12,LSL #16
PKHTB r10,r10,r12,ASR #20 @ r10= t[1]+t[6]+8>>4
STR r10,[r0, #12] @ y[1<<3] = t[1]+t[6]+8>>4
SADD16 r12,r2, r5 @ r12= t[2]+t[5]+8
SSUB16 r5, r2, r5 @ r5 = t[2]-t[5]+8
MOV r10,r12,ASR #4
MOV r12,r12,LSL #16
PKHTB r10,r10,r12,ASR #20 @ r10= t[2]+t[5]+8>>4
STR r10,[r0, #28] @ y[2<<3] = t[2]+t[5]+8>>4
SADD16 r12,r3, r4 @ r12= t[3]+t[4]+8
SSUB16 r4, r3, r4 @ r4 = t[3]-t[4]+8
MOV r10,r12,ASR #4
MOV r12,r12,LSL #16
PKHTB r10,r10,r12,ASR #20 @ r10= t[3]+t[4]+8>>4
STR r10,[r0, #44] @ y[3<<3] = t[3]+t[4]+8>>4
MOV r10,r4, ASR #4
MOV r4, r4, LSL #16
PKHTB r10,r10,r4, ASR #20 @ r10= t[3]-t[4]+8>>4
STR r10,[r0, #60] @ y[4<<3] = t[3]-t[4]+8>>4
MOV r10,r5, ASR #4
MOV r5, r5, LSL #16
PKHTB r10,r10,r5, ASR #20 @ r10= t[2]-t[5]+8>>4
STR r10,[r0, #76] @ y[5<<3] = t[2]-t[5]+8>>4
MOV r10,r6, ASR #4
MOV r6, r6, LSL #16
PKHTB r10,r10,r6, ASR #20 @ r10= t[1]-t[6]+8>>4
STR r10,[r0, #92] @ y[6<<3] = t[1]-t[6]+8>>4
MOV r10,r7, ASR #4
MOV r7, r7, LSL #16
PKHTB r10,r10,r7, ASR #20 @ r10= t[0]-t[7]+8>>4
STR r10,[r0, #108] @ y[7<<3] = t[0]-t[7]+8>>4
MOV PC,r14
.size idct8_8core_down_v6, .-idct8_8core_down_v6 @ ENDP
.endif
.if OC_ARM_ASM_NEON
.global oc_idct8x8_1_neon
.global oc_idct8x8_neon
.balign 16
OC_IDCT_CONSTS_NEON:
.short 8
.short 64277 @ FB15 (C1S7)
.short 60547 @ EC83 (C2S6)
.short 54491 @ D4DB (C3S5)
.short 46341 @ B505 (C4S4)
.short 36410 @ 471D (C5S3)
.short 25080 @ 30FC (C6S2)
.short 12785 @ 31F1 (C7S1)
.type oc_idct8x8_1_neon, %function; oc_idct8x8_1_neon: @ PROC
@ r0 = ogg_int16_t *_y
@ r1 = ogg_uint16_t _dc
VDUP.S16 Q0, r1
VMOV Q1, Q0
VST1.64 {D0, D1, D2, D3}, [r0,:128]!
VST1.64 {D0, D1, D2, D3}, [r0,:128]!
VST1.64 {D0, D1, D2, D3}, [r0,:128]!
VST1.64 {D0, D1, D2, D3}, [r0,:128]
MOV PC, r14
.size oc_idct8x8_1_neon, .-oc_idct8x8_1_neon @ ENDP
.type oc_idct8x8_neon, %function; oc_idct8x8_neon: @ PROC
@ r0 = ogg_int16_t *_y
@ r1 = ogg_int16_t *_x
@ r2 = int _last_zzi
CMP r2, #10
BLE oc_idct8x8_10_neon
oc_idct8x8_slow_neon:
VPUSH {D8-D15}
MOV r2, r1
ADR r3, OC_IDCT_CONSTS_NEON
@ Row transforms (input is pre-transposed)
VLD1.64 {D16,D17,D18,D19}, [r2,:128]!
VLD1.64 {D20,D21,D22,D23}, [r2,:128]!
VLD1.64 {D24,D25,D26,D27}, [r2,:128]!
VSUB.S16 Q1, Q8, Q12 @ Q8 = x[0]-x[4]
VLD1.64 {D28,D29,D30,D31}, [r2,:128]
VADD.S16 Q8, Q8, Q12 @ Q1 = x[0]+x[4]
VLD1.64 {D0,D1}, [r3,:128]
MOV r12, r14
BL oc_idct8x8_stage123_neon
@ Stage 4
VSUB.S16 Q15,Q8, Q7 @ Q15 = y[7]=t[0]-t[7]
VADD.S16 Q8, Q8, Q7 @ Q8 = y[0]=t[0]+t[7]
VSUB.S16 Q14,Q9, Q3 @ Q14 = y[6]=t[1]-t[6]
VADD.S16 Q9, Q9, Q3 @ Q9 = y[1]=t[1]+t[6]
VSUB.S16 Q13,Q10,Q5 @ Q13 = y[5]=t[2]-t[5]
VADD.S16 Q10,Q10,Q5 @ Q10 = y[2]=t[2]+t[5]
VTRN.16 Q14,Q15
VSUB.S16 Q12,Q11,Q4 @ Q12 = y[4]=t[3]-t[4]
VADD.S16 Q11,Q11,Q4 @ Q11 = y[3]=t[3]+t[4]
@ 8x8 Transpose
VTRN.16 Q8, Q9
VTRN.16 Q10,Q11
VTRN.16 Q12,Q13
VTRN.32 Q8, Q10
VTRN.32 Q9, Q11
VTRN.32 Q12,Q14
VTRN.32 Q13,Q15
VSWP D17,D24
VSUB.S16 Q1, Q8, Q12 @ Q8 = x[0]-x[4]
VSWP D19,D26
VADD.S16 Q8, Q8, Q12 @ Q1 = x[0]+x[4]
VSWP D21,D28
VSWP D23,D30
@ Column transforms
BL oc_idct8x8_stage123_neon
@ We have to put the return address back in the LR, or the branch
@ predictor will not recognize the function return and mis-predict the
@ entire call stack.
MOV r14, r12
@ Stage 4
VSUB.S16 Q15,Q8, Q7 @ Q15 = y[7]=t[0]-t[7]
VADD.S16 Q8, Q8, Q7 @ Q8 = y[0]=t[0]+t[7]
VSUB.S16 Q14,Q9, Q3 @ Q14 = y[6]=t[1]-t[6]
VADD.S16 Q9, Q9, Q3 @ Q9 = y[1]=t[1]+t[6]
VSUB.S16 Q13,Q10,Q5 @ Q13 = y[5]=t[2]-t[5]
VADD.S16 Q10,Q10,Q5 @ Q10 = y[2]=t[2]+t[5]
VSUB.S16 Q12,Q11,Q4 @ Q12 = y[4]=t[3]-t[4]
VADD.S16 Q11,Q11,Q4 @ Q11 = y[3]=t[3]+t[4]
VMOV.I8 Q2,#0
VPOP {D8-D15}
VMOV.I8 Q3,#0
VRSHR.S16 Q8, Q8, #4 @ Q8 = y[0]+8>>4
VST1.64 {D4, D5, D6, D7}, [r1,:128]!
VRSHR.S16 Q9, Q9, #4 @ Q9 = y[1]+8>>4
VRSHR.S16 Q10,Q10,#4 @ Q10 = y[2]+8>>4
VST1.64 {D4, D5, D6, D7}, [r1,:128]!
VRSHR.S16 Q11,Q11,#4 @ Q11 = y[3]+8>>4
VRSHR.S16 Q12,Q12,#4 @ Q12 = y[4]+8>>4
VST1.64 {D4, D5, D6, D7}, [r1,:128]!
VRSHR.S16 Q13,Q13,#4 @ Q13 = y[5]+8>>4
VRSHR.S16 Q14,Q14,#4 @ Q14 = y[6]+8>>4
VST1.64 {D4, D5, D6, D7}, [r1,:128]
VRSHR.S16 Q15,Q15,#4 @ Q15 = y[7]+8>>4
VSTMIA r0, {D16-D31}
MOV PC, r14
.size oc_idct8x8_neon, .-oc_idct8x8_neon @ ENDP
.type oc_idct8x8_stage123_neon, %function; oc_idct8x8_stage123_neon: @ PROC
@ Stages 1 & 2
VMULL.S16 Q4, D18,D1[3]
VMULL.S16 Q5, D19,D1[3]
VMULL.S16 Q7, D30,D1[3]
VMULL.S16 Q6, D31,D1[3]
VMULL.S16 Q2, D30,D0[1]
VMULL.S16 Q3, D31,D0[1]
VSHRN.S32 D8, Q4, #16
VSHRN.S32 D9, Q5, #16 @ Q4 = (OC_C7S1*x[1]>>16)
VSHRN.S32 D14,Q7, #16
VSHRN.S32 D15,Q6, #16 @ Q7 = (OC_C7S1*x[7]>>16)
VSHRN.S32 D4, Q2, #16
VSHRN.S32 D5, Q3, #16 @ Q2 = (OC_C1S7*x[7]>>16)-x[7]
VSUB.S16 Q4, Q4, Q15
VADD.S16 Q7, Q7, Q9
VSUB.S16 Q4, Q4, Q2 @ Q4 = t[4]
VMULL.S16 Q2, D18,D0[1]
VMULL.S16 Q9, D19,D0[1]
VMULL.S16 Q5, D26,D0[3]
VMULL.S16 Q3, D27,D0[3]
VMULL.S16 Q6, D22,D0[3]
VMULL.S16 Q12,D23,D0[3]
VSHRN.S32 D4, Q2, #16
VSHRN.S32 D5, Q9, #16 @ Q2 = (OC_C1S7*x[1]>>16)-x[1]
VSHRN.S32 D10,Q5, #16
VSHRN.S32 D11,Q3, #16 @ Q5 = (OC_C3S5*x[5]>>16)-x[5]
VSHRN.S32 D12,Q6, #16
VSHRN.S32 D13,Q12,#16 @ Q6 = (OC_C3S5*x[3]>>16)-x[3]
VADD.S16 Q7, Q7, Q2 @ Q7 = t[7]
VSUB.S16 Q5, Q5, Q11
VADD.S16 Q6, Q6, Q11
VADD.S16 Q5, Q5, Q13
VADD.S16 Q6, Q6, Q13
VMULL.S16 Q9, D22,D1[1]
VMULL.S16 Q11,D23,D1[1]
VMULL.S16 Q15,D26,D1[1]
VMULL.S16 Q13,D27,D1[1]
VMULL.S16 Q2, D20,D1[2]
VMULL.S16 Q12,D21,D1[2]
VSHRN.S32 D18,Q9, #16
VSHRN.S32 D19,Q11,#16 @ Q9 = (OC_C5S3*x[3]>>16)-x[3]
VSHRN.S32 D30,Q15,#16
VSHRN.S32 D31,Q13,#16 @ Q15= (OC_C5S3*x[5]>>16)-x[5]
VSHRN.S32 D4, Q2, #16
VSHRN.S32 D5, Q12,#16 @ Q2 = (OC_C6S2*x[2]>>16)
VSUB.S16 Q5, Q5, Q9 @ Q5 = t[5]
VADD.S16 Q6, Q6, Q15 @ Q6 = t[6]
VSUB.S16 Q2, Q2, Q14
VMULL.S16 Q3, D28,D1[2]
VMULL.S16 Q11,D29,D1[2]
VMULL.S16 Q12,D28,D0[2]
VMULL.S16 Q9, D29,D0[2]
VMULL.S16 Q13,D20,D0[2]
VMULL.S16 Q15,D21,D0[2]
VSHRN.S32 D6, Q3, #16
VSHRN.S32 D7, Q11,#16 @ Q3 = (OC_C6S2*x[6]>>16)
VSHRN.S32 D24,Q12,#16
VSHRN.S32 D25,Q9, #16 @ Q12= (OC_C2S6*x[6]>>16)-x[6]
VSHRN.S32 D26,Q13,#16
VSHRN.S32 D27,Q15,#16 @ Q13= (OC_C2S6*x[2]>>16)-x[2]
VSUB.S16 Q9, Q4, Q5 @ Q9 = t[4]-t[5]
VSUB.S16 Q11,Q7, Q6 @ Q11= t[7]-t[6]
VADD.S16 Q3, Q3, Q10
VADD.S16 Q4, Q4, Q5 @ Q4 = t[4]=t[4]+t[5]
VADD.S16 Q7, Q7, Q6 @ Q7 = t[7]=t[7]+t[6]
VSUB.S16 Q2, Q2, Q12 @ Q2 = t[2]
VADD.S16 Q3, Q3, Q13 @ Q3 = t[3]
VMULL.S16 Q12,D16,D1[0]
VMULL.S16 Q13,D17,D1[0]
VMULL.S16 Q14,D2, D1[0]
VMULL.S16 Q15,D3, D1[0]
VMULL.S16 Q5, D18,D1[0]
VMULL.S16 Q6, D22,D1[0]
VSHRN.S32 D24,Q12,#16
VSHRN.S32 D25,Q13,#16
VSHRN.S32 D28,Q14,#16
VSHRN.S32 D29,Q15,#16
VMULL.S16 Q13,D19,D1[0]
VMULL.S16 Q15,D23,D1[0]
VADD.S16 Q8, Q8, Q12 @ Q8 = t[0]
VADD.S16 Q1, Q1, Q14 @ Q1 = t[1]
VSHRN.S32 D10,Q5, #16
VSHRN.S32 D12,Q6, #16
VSHRN.S32 D11,Q13,#16
VSHRN.S32 D13,Q15,#16
VADD.S16 Q5, Q5, Q9 @ Q5 = t[5]=OC_C4S4*(t[4]-t[5])>>16
VADD.S16 Q6, Q6, Q11 @ Q6 = t[6]=OC_C4S4*(t[7]-t[6])>>16
@ Stage 3
VSUB.S16 Q11,Q8, Q3 @ Q11 = t[3]=t[0]-t[3]
VADD.S16 Q8, Q8, Q3 @ Q8 = t[0]=t[0]+t[3]
VADD.S16 Q9, Q1, Q2 @ Q9 = t[1]=t[1]+t[2]
VADD.S16 Q3, Q6, Q5 @ Q3 = t[6]=t[6]+t[5]
VSUB.S16 Q10,Q1, Q2 @ Q10 = t[2]=t[1]-t[2]
VSUB.S16 Q5, Q6, Q5 @ Q5 = t[5]=t[6]-t[5]
MOV PC, r14
.size oc_idct8x8_stage123_neon, .-oc_idct8x8_stage123_neon @ ENDP
.type oc_idct8x8_10_neon, %function; oc_idct8x8_10_neon: @ PROC
ADR r3, OC_IDCT_CONSTS_NEON
VLD1.64 {D0,D1}, [r3,:128]
MOV r2, r1
@ Row transforms (input is pre-transposed)
@ Stage 1
VLD1.64 {D16,D17,D18,D19},[r2,:128]!
MOV r12, #16
VMULL.S16 Q15,D16,D1[0] @ Q15= OC_C4S4*x[0]-(x[0]<<16)
VLD1.64 {D17}, [r2,:64], r12
VMULL.S16 Q2, D18,D0[1] @ Q2 = OC_C1S7*x[1]-(x[1]<<16)
VLD1.64 {D19}, [r2,:64]
VMULL.S16 Q14,D17,D0[2] @ Q14= OC_C2S6*x[2]-(x[2]<<16)
VMULL.S16 Q3, D19,D0[3] @ Q3 = OC_C3S5*x[3]-(x[3]<<16)
VMULL.S16 Q13,D19,D1[1] @ Q13= OC_C5S3*x[3]-(x[3]<<16)
VMULL.S16 Q12,D18,D1[3] @ Q12= OC_C7S1*x[1]
VMULL.S16 Q1, D17,D1[2] @ Q1 = OC_C6S2*x[2]
VSHRN.S32 D30,Q15,#16 @ D30= t[0]-x[0]
VSHRN.S32 D4, Q2, #16 @ D4 = t[7]-x[1]
VSHRN.S32 D31,Q14,#16 @ D31= t[3]-x[2]
VSHRN.S32 D6, Q3, #16 @ D6 = t[6]-x[3]
VSHRN.S32 D7, Q13,#16 @ D7 = -t[5]-x[3]
VSHRN.S32 D5, Q12,#16 @ D5 = t[4]
VSHRN.S32 D2, Q1, #16 @ D2 = t[2]
VADD.S16 D4, D4, D18 @ D4 = t[7]
VADD.S16 D6, D6, D19 @ D6 = t[6]
VADD.S16 D7, D7, D19 @ D7 = -t[5]
VADD.S16 Q15,Q15,Q8 @ D30= t[0]
@ D31= t[3]
@ Stages 2 & 3
VSUB.S16 Q12,Q2, Q3 @ D24= t[7]-t[6]
@ D25= t[4]'=t[4]+t[5]
VADD.S16 Q13,Q2, Q3 @ D26= t[7]=t[7]+t[6]
@ D27= t[4]-t[5]
VMULL.S16 Q11,D24,D1[0] @ Q11= OC_C4S4*(t[7]-t[6])
@ -(t[7]-t[6]<<16)
VMULL.S16 Q14,D27,D1[0] @ Q14= OC_C4S4*(t[4]-t[5])
@ -(t[4]-t[5]<<16)
VADD.S16 D16,D30,D31 @ D16= t[0]=t[0]+t[3]
VSUB.S16 D17,D30,D2 @ D17= t[2]=t[0]-t[2]
VADD.S16 D18,D30,D2 @ D18= t[1]=t[0]+t[2]
VSHRN.S32 D22,Q11,#16 @ D22= (OC_C4S4*(t[7]-t[6])>>16)
@ -(t[7]-t[6])
VSHRN.S32 D23,Q14,#16 @ D23= (OC_C4S4*(t[4]-t[5])>>16)
@ -(t[4]-t[5])
VSUB.S16 D19,D30,D31 @ D19= t[3]=t[0]-t[3]
VADD.S16 D22,D22,D24 @ D22= t[6]=OC_C4S4*(t[7]-t[6])>>16
VADD.S16 D23,D23,D27 @ D23= t[5]=OC_C4S4*(t[4]-t[5])>>16
VSUB.S16 D27,D22,D23 @ D27= t[5]=t[6]-t[5]
VADD.S16 D24,D22,D23 @ D24= t[6]=t[6]+t[5]
@ Stage 4
VSUB.S16 Q11,Q8, Q13 @ D22= y[7]=t[0]-t[7]
@ D23= y[5]=t[2]'-t[5]''
VSUB.S16 Q10,Q9, Q12 @ D20= y[6]=t[1]-t[6]
@ D21= y[4]=t[3]'-t[4]''
VADD.S16 Q8, Q8, Q13 @ D16= y[0]=t[0]+t[7]
@ D17= y[2]=t[2]'+t[5]''
VADD.S16 Q9, Q9, Q12 @ D18= y[1]=t[1]-t[6]
@ D19= y[3]=t[3]'-t[4]''
@ 8x4 transpose
VTRN.16 Q10,Q11 @ Q10= c5c4a5a4 c7c6a7a6
@ Q11= d5d4b5b4 d7d6b7b6
VTRN.16 Q8, Q9 @ Q8 = c3c2a3a2 c1c0a1a0
@ Q9 = d3d2b3b2 d1d0b1b0
VSWP D20,D21 @ Q10= c7c6a7a6 c5c4a5a4
VSWP D22,D23 @ Q11= d7d6b7b6 d5d4b5b4
VUZP.32 Q9, Q11 @ Q9 = b7b6b5b4 b3b2b1b0
@ Q11= d7d6d5d4 d3d2d1d0
VMULL.S16 Q15,D18,D0[1]
VMULL.S16 Q13,D22,D1[1]
VUZP.32 Q8, Q10 @ Q8 = a7a6a5a4 a3a2a1a0
@ Q10= c7c6c5c4 c3c2c1c0
@ Column transforms
@ Stages 1, 2, & 3
VMULL.S16 Q14,D19,D0[1] @ Q14:Q15= OC_C1S7*x[1]-(x[1]<<16)
VMULL.S16 Q12,D23,D1[1] @ Q12:Q13= OC_C5S3*x[3]-(x[3]<<16)
VMULL.S16 Q3, D22,D0[3]
VMULL.S16 Q2, D23,D0[3] @ Q2:Q3 = OC_C3S5*x[3]-(x[3]<<16)
VSHRN.S32 D30,Q15,#16
VSHRN.S32 D31,Q14,#16 @ Q15= (OC_C1S7*x[1]>>16)-x[1]
VSHRN.S32 D26,Q13,#16
VSHRN.S32 D27,Q12,#16 @ Q13= (OC_C5S3*x[3]>>16)-x[3]
VSHRN.S32 D28,Q3, #16
VSHRN.S32 D29,Q2, #16 @ Q14= (OC_C3S5*x[3]>>16)-x[3]
VADD.S16 Q15,Q15,Q9 @ Q15= t[7]
VADD.S16 Q13,Q13,Q11 @ Q13= -t[5]
VADD.S16 Q14,Q14,Q11 @ Q14= t[6]
VMULL.S16 Q12,D18,D1[3]
VMULL.S16 Q2, D19,D1[3] @ Q2:Q12= OC_C7S1*x[1]
VMULL.S16 Q1, D16,D1[0]
VMULL.S16 Q11,D17,D1[0] @ Q11:Q1 = OC_C4S4*x[0]-(x[0]<<16)
VMULL.S16 Q3, D20,D0[2]
VMULL.S16 Q9, D21,D0[2] @ Q9:Q3 = OC_C2S6*x[2]-(x[2]<<16)
VSHRN.S32 D24,Q12,#16
VSHRN.S32 D25,Q2, #16 @ Q12= t[4]
VMULL.S16 Q2, D20,D1[2]
VSHRN.S32 D2, Q1, #16
VSHRN.S32 D3, Q11,#16 @ Q1 = (OC_C4S4*x[0]>>16)-x[0]
VMULL.S16 Q11,D21,D1[2] @ Q2:Q11= OC_C6S2*x[2]
VSHRN.S32 D6, Q3, #16
VSHRN.S32 D7, Q9, #16 @ Q3 = (OC_C2S6*x[2]>>16)-x[2]
VSUB.S16 Q9, Q15,Q14 @ Q9 = t[7]-t[6]
VADD.S16 Q15,Q15,Q14 @ Q15= t[7]=t[7]+t[6]
VSHRN.S32 D4, Q2, #16
VSHRN.S32 D5, Q11,#16 @ Q2 = t[2]
VADD.S16 Q1, Q1, Q8 @ Q1 = t[0]
VADD.S16 Q8, Q12,Q13 @ Q8 = t[4]-t[5]
VADD.S16 Q3, Q3, Q10 @ Q3 = t[3]
VMULL.S16 Q10,D16,D1[0]
VMULL.S16 Q11,D17,D1[0] @ Q11:Q10= OC_C4S4*(t[4]-t[5])
@ -(t[4]-t[5]<<16)
VSUB.S16 Q12,Q12,Q13 @ Q12= t[4]=t[4]+t[5]
VMULL.S16 Q14,D18,D1[0]
VMULL.S16 Q13,D19,D1[0] @ Q13:Q14= OC_C4S4*(t[6]-t[7])
@ -(t[6]-t[7]<<16)
VSHRN.S32 D20,Q10,#16
VSHRN.S32 D21,Q11,#16 @ Q10= (OC_C4S4*(t[4]-t[5])>>16)
@ -(t[4]-t[5])
VADD.S16 Q11,Q1, Q3 @ Q11= t[0]=t[0]+t[3]
VSUB.S16 Q3, Q1, Q3 @ Q3 = t[3]=t[0]-t[3]
VSHRN.S32 D28,Q14,#16
VSHRN.S32 D29,Q13,#16 @ Q14= (OC_C4S4*(t[7]-t[6])>>16)
@ -(t[7]-t[6])
VADD.S16 Q10,Q10,Q8 @ Q10=t[5]
VADD.S16 Q14,Q14,Q9 @ Q14=t[6]
VSUB.S16 Q13,Q14,Q10 @ Q13=t[5]=t[6]-t[5]
VADD.S16 Q14,Q14,Q10 @ Q14=t[6]=t[6]+t[5]
VADD.S16 Q10,Q1, Q2 @ Q10= t[1]=t[0]+t[2]
VSUB.S16 Q2, Q1, Q2 @ Q2 = t[2]=t[0]-t[2]
@ Stage 4
VADD.S16 Q8, Q11,Q15 @ Q8 = y[0]=t[0]+t[7]
VADD.S16 Q9, Q10,Q14 @ Q9 = y[1]=t[1]+t[6]
VSUB.S16 Q15,Q11,Q15 @ Q15 = y[7]=t[0]-t[7]
VSUB.S16 Q14,Q10,Q14 @ Q14 = y[6]=t[1]-t[6]
VADD.S16 Q10,Q2, Q13 @ Q10 = y[2]=t[2]+t[5]
VADD.S16 Q11,Q3, Q12 @ Q11 = y[3]=t[3]+t[4]
VSUB.S16 Q12,Q3, Q12 @ Q12 = y[4]=t[3]-t[4]
VSUB.S16 Q13,Q2, Q13 @ Q13 = y[5]=t[2]-t[5]
VMOV.I8 D2, #0
VRSHR.S16 Q8, Q8, #4 @ Q8 = y[0]+8>>4
VST1.64 {D2}, [r1,:64], r12
VRSHR.S16 Q9, Q9, #4 @ Q9 = y[1]+8>>4
VRSHR.S16 Q10,Q10,#4 @ Q10 = y[2]+8>>4
VST1.64 {D2}, [r1,:64], r12
VRSHR.S16 Q11,Q11,#4 @ Q11 = y[3]+8>>4
VRSHR.S16 Q12,Q12,#4 @ Q12 = y[4]+8>>4
VST1.64 {D2}, [r1,:64], r12
VRSHR.S16 Q13,Q13,#4 @ Q13 = y[5]+8>>4
VRSHR.S16 Q14,Q14,#4 @ Q14 = y[6]+8>>4
VST1.64 {D2}, [r1,:64]
VRSHR.S16 Q15,Q15,#4 @ Q15 = y[7]+8>>4
VSTMIA r0, {D16-D31}
MOV PC, r14
.size oc_idct8x8_10_neon, .-oc_idct8x8_10_neon @ ENDP
.endif
@ END
.section .note.GNU-stack,"",%progbits
|
; A305291: Numbers k such that 4*k + 3 is a perfect cube, sorted by absolute values.
; -1,6,-32,85,-183,332,-550,843,-1229,1714,-2316,3041,-3907,4920,-6098,7447,-8985,10718,-12664,14829,-17231,19876,-22782,25955,-29413,33162,-37220,41593,-46299,51344,-56746,62511,-68657,75190,-82128,89477,-97255,105468,-114134,123259,-132861,142946,-153532,164625,-176243,188392,-201090,214343,-228169,242574,-257576,273181,-289407,306260,-323758,341907,-360725,380218,-400404,421289,-442891,465216,-488282,512095,-536673,562022,-588160,615093,-642839,671404,-700806,731051,-762157,794130,-826988
mul $0,2
add $0,1
pow $0,3
lpb $0
add $2,29
sub $2,$0
add $5,4
mod $2,$5
add $2,1
mov $3,$2
sub $3,$0
mul $3,$2
add $3,1
add $4,$0
mov $0,$3
mul $4,2
sub $4,1
div $4,2
add $0,$4
sub $0,1
sub $3,2
lpe
add $0,$3
mul $0,5
sub $0,135
div $0,20
add $0,6
|
; A118753: First prime after 4n. Smallest prime >= 4*n. Bisection of A060264.
; 2,5,11,13,17,23,29,29,37,37,41,47,53,53,59,61,67,71,73,79,83,89,89,97,97,101,107,109,113,127,127,127,131,137,137,149,149,149,157,157,163,167,173,173,179,181,191,191,193,197,211,211,211,223,223,223,227,229,233,239,241,251,251,257,257,263,269,269,277,277,281,293,293,293,307,307,307,311,313,317,331,331,331,337,337,347,347,349,353,359,367,367,373,373,379,383,389,389,397,397,401,409,409,419,419,421,431,431,433,439,443,449,449,457,457,461,467,479,479,479,487,487,491,499,499,503,509,509,521,521,521,541,541,541,541,541,547,557,557,557,563,569,569,577,577,587,587,593,593,599,601,607,613,613,617,631,631,631,641,641,641,647,653,653,659,661,673,673,673,677,683,691,691,701,701,701,709,709,719,719,727,727,733,733,739,743,751,751,757,757,761,769,769,773,787,787,787,797,797,797,809,809,809,821,821,821,827,829,839,839,853,853,853,853,857,863,877,877,877,877,881,887,907,907,907,907,907,911,919,919,929,929,929,937,937,941,947,953,953,967,967,967,971,977,977,983,991,991,997,997
mul $0,4
cal $0,151800 ; Least prime > n (version 2 of the "next prime" function).
mov $1,$0
|
; A056827: a(n) = floor(n^2/6).
; 0,0,0,1,2,4,6,8,10,13,16,20,24,28,32,37,42,48,54,60,66,73,80,88,96,104,112,121,130,140,150,160,170,181,192,204,216,228,240,253,266,280,294,308,322,337,352,368,384,400,416,433,450,468,486,504,522,541,560,580,600,620,640,661,682,704,726,748,770,793,816,840,864,888,912,937,962,988,1014,1040,1066,1093,1120,1148,1176,1204,1232,1261,1290,1320,1350,1380,1410,1441,1472,1504,1536,1568,1600,1633
pow $0,2
div $0,6
|
/**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*
* As a special exception, the copyright holders give permission to link the
* code of portions of this program with the OpenSSL library under certain
* conditions as described in each individual source file and distribute
* linked combinations including the program with the OpenSSL library. You
* must comply with the Server Side Public License in all respects for
* all of the code used other than as permitted herein. If you modify file(s)
* with this exception, you may extend this exception to your version of the
* file(s), but you are not obligated to do so. If you do not wish to do so,
* delete this exception statement from your version. If you delete this
* exception statement from all source files in the program, then also delete
* it in the license file.
*/
#pragma once
#include "asio/detail/config.hpp"
#include "asio/buffer.hpp"
#include "asio/io_context.hpp"
#include "mongo/util/net/ssl/context_base.hpp"
#include <string>
#include "asio/detail/push_options.hpp"
namespace asio {
namespace ssl {
class context : public context_base, private noncopyable {
public:
/// The native handle type of the SSL context.
typedef SCHANNEL_CRED* native_handle_type;
/// Constructor.
ASIO_DECL explicit context(method m);
#if defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
/// Move-construct a context from another.
/**
* This constructor moves an SSL context from one object to another.
*
* @param other The other context object from which the move will occur.
*
* @note Following the move, the following operations only are valid for the
* moved-from object:
* @li Destruction.
* @li As a target for move-assignment.
*/
ASIO_DECL context(context&& other);
/// Move-assign a context from another.
/**
* This assignment operator moves an SSL context from one object to another.
*
* @param other The other context object from which the move will occur.
*
* @note Following the move, the following operations only are valid for the
* moved-from object:
* @li Destruction.
* @li As a target for move-assignment.
*/
ASIO_DECL context& operator=(context&& other);
#endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
/// Destructor.
ASIO_DECL ~context();
/// Get the underlying implementation in the native type.
/**
* This function may be used to obtain the underlying implementation of the
* context. This is intended to allow access to context functionality that is
* not otherwise provided.
*/
ASIO_DECL native_handle_type native_handle();
private:
SCHANNEL_CRED _cred;
// The underlying native implementation.
native_handle_type handle_;
};
#include "asio/detail/pop_options.hpp"
#if defined(ASIO_HEADER_ONLY)
#include "mongo/util/net/ssl/impl/context_schannel.ipp"
#endif // defined(ASIO_HEADER_ONLY)
} // namespace ssl
} // namespace asio
|
// https://github.com/PeterLemon/N64
endian msb
arch n64.rsp
include "LIB/N64.INC" // Include N64 Definitions
include "LIB/N64_GFX.INC" // Include Graphics Macros
include "LIB/N64_RSP.INC" // Include RSP Macros
align(8) // Align 64-Bit
base $0000 // Set Base Of RSP Code Object To Zero
lqv v0[e0],$00(r0) // V0 = 128-Bit DMEM $000(R0), Load Quad To Vector: LQV VT[ELEMENT],$OFFSET(BASE)
lqv v1[e0],$10(r0) // V1 = 128-Bit DMEM $010(R0), Load Quad To Vector: LQV VT[ELEMENT],$OFFSET(BASE)
vsub v0,v1[e0] // V0 = V0 - V1[0], Vector Subtract Short Elements: VSUB VD,VS,VT[ELEMENT]
sqv v0[e0],$00(r0) // 128-Bit DMEM $000(R0) = V0, Store Vector To Quad: SQV VT[ELEMENT],$OFFSET(BASE)
vsar v0,v0[e8] // V0 = Vector Accumulator HI, Vector Accumulator Read: VSAR VD,VS,VT[ELEMENT]
sqv v0[e0],$10(r0) // 128-Bit DMEM $010(R0) = V0, Store Vector To Quad: SQV VT[ELEMENT],$OFFSET(BASE)
vsar v0,v0[e9] // V0 = Vector Accumulator MD, Vector Accumulator Read: VSAR VD,VS,VT[ELEMENT]
sqv v0[e0],$20(r0) // 128-Bit DMEM $020(R0) = V0, Store Vector To Quad: SQV VT[ELEMENT],$OFFSET(BASE)
vsar v0,v0[e10] // V0 = Vector Accumulator LO, Vector Accumulator Read: VSAR VD,VS,VT[ELEMENT]
sqv v0[e0],$30(r0) // 128-Bit DMEM $030(R0) = V0, Store Vector To Quad: SQV VT[ELEMENT],$OFFSET(BASE)
cfc2 t0,vco // T0 = RSP CP2 Control Register: VCO (Vector Carry Out)
sh t0,$40(r0) // 16-Bit DMEM $040(R0) = T0
cfc2 t0,vcc // T0 = RSP CP2 Control Register: VCC (Vector Compare Code)
sh t0,$42(r0) // 16-Bit DMEM $042(R0) = T0
cfc2 t0,vce // T0 = RSP CP2 Control Register: VCE (Vector Compare Extension)
sb t0,$44(r0) // 8-Bit DMEM $044(R0) = T0
break // Set SP Status Halt, Broke & Check For Interrupt |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "base58.h"
#include "bitcoinrpc.h"
#include "db.h"
#include "init.h"
#include "main.h"
#include "net.h"
#include "wallet.h"
using namespace std;
using namespace boost;
using namespace boost::assign;
using namespace json_spirit;
//
// Utilities: convert hex-encoded Values
// (throws error if not hex).
//
uint256 ParseHashV(const Value& v, string strName)
{
string strHex;
if (v.type() == str_type)
strHex = v.get_str();
if (!IsHex(strHex)) // Note: IsHex("") is false
throw JSONRPCError(RPC_INVALID_PARAMETER, strName+" must be hexadecimal string (not '"+strHex+"')");
uint256 result;
result.SetHex(strHex);
return result;
}
uint256 ParseHashO(const Object& o, string strKey)
{
return ParseHashV(find_value(o, strKey), strKey);
}
vector<unsigned char> ParseHexV(const Value& v, string strName)
{
string strHex;
if (v.type() == str_type)
strHex = v.get_str();
if (!IsHex(strHex))
throw JSONRPCError(RPC_INVALID_PARAMETER, strName+" must be hexadecimal string (not '"+strHex+"')");
return ParseHex(strHex);
}
vector<unsigned char> ParseHexO(const Object& o, string strKey)
{
return ParseHexV(find_value(o, strKey), strKey);
}
void ScriptPubKeyToJSON(const CScript& scriptPubKey, Object& out)
{
txnouttype type;
vector<CTxDestination> addresses;
int nRequired;
out.push_back(Pair("asm", scriptPubKey.ToString()));
out.push_back(Pair("hex", HexStr(scriptPubKey.begin(), scriptPubKey.end())));
if (!ExtractDestinations(scriptPubKey, type, addresses, nRequired))
{
out.push_back(Pair("type", GetTxnOutputType(TX_NONSTANDARD)));
return;
}
out.push_back(Pair("reqSigs", nRequired));
out.push_back(Pair("type", GetTxnOutputType(type)));
Array a;
BOOST_FOREACH(const CTxDestination& addr, addresses)
a.push_back(CBitcoinAddress(addr).ToString());
out.push_back(Pair("addresses", a));
}
void TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry)
{
entry.push_back(Pair("txid", tx.GetHash().GetHex()));
entry.push_back(Pair("version", tx.nVersion));
entry.push_back(Pair("locktime", (boost::int64_t)tx.nLockTime));
Array vin;
BOOST_FOREACH(const CTxIn& txin, tx.vin)
{
Object in;
if (tx.IsCoinBase())
in.push_back(Pair("coinbase", HexStr(txin.scriptSig.begin(), txin.scriptSig.end())));
else
{
in.push_back(Pair("txid", txin.prevout.hash.GetHex()));
in.push_back(Pair("vout", (boost::int64_t)txin.prevout.n));
Object o;
o.push_back(Pair("asm", txin.scriptSig.ToString()));
o.push_back(Pair("hex", HexStr(txin.scriptSig.begin(), txin.scriptSig.end())));
in.push_back(Pair("scriptSig", o));
}
in.push_back(Pair("sequence", (boost::int64_t)txin.nSequence));
vin.push_back(in);
}
entry.push_back(Pair("vin", vin));
Array vout;
for (unsigned int i = 0; i < tx.vout.size(); i++)
{
const CTxOut& txout = tx.vout[i];
Object out;
out.push_back(Pair("value", ValueFromAmount(txout.nValue)));
out.push_back(Pair("n", (boost::int64_t)i));
Object o;
ScriptPubKeyToJSON(txout.scriptPubKey, o);
out.push_back(Pair("scriptPubKey", o));
vout.push_back(out);
}
entry.push_back(Pair("vout", vout));
if (hashBlock != 0)
{
entry.push_back(Pair("blockhash", hashBlock.GetHex()));
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashBlock);
if (mi != mapBlockIndex.end() && (*mi).second)
{
CBlockIndex* pindex = (*mi).second;
if (pindex->IsInMainChain())
{
entry.push_back(Pair("confirmations", 1 + nBestHeight - pindex->nHeight));
entry.push_back(Pair("time", (boost::int64_t)pindex->nTime));
entry.push_back(Pair("blocktime", (boost::int64_t)pindex->nTime));
}
else
entry.push_back(Pair("confirmations", 0));
}
}
}
Value getrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"getrawtransaction <txid> [verbose=0]\n"
"If verbose=0, returns a string that is\n"
"serialized, hex-encoded data for <txid>.\n"
"If verbose is non-zero, returns an Object\n"
"with information about <txid>.");
uint256 hash = ParseHashV(params[0], "parameter 1");
bool fVerbose = false;
if (params.size() > 1)
fVerbose = (params[1].get_int() != 0);
CTransaction tx;
uint256 hashBlock = 0;
if (!GetTransaction(hash, tx, hashBlock, true))
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "No information available about transaction");
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << tx;
string strHex = HexStr(ssTx.begin(), ssTx.end());
if (!fVerbose)
return strHex;
Object result;
result.push_back(Pair("hex", strHex));
TxToJSON(tx, hashBlock, result);
return result;
}
Value listunspent(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 3)
throw runtime_error(
"listunspent [minconf=1] [maxconf=9999999] [\"address\",...]\n"
"Returns array of unspent transaction outputs\n"
"with between minconf and maxconf (inclusive) confirmations.\n"
"Optionally filtered to only include txouts paid to specified addresses.\n"
"Results are an array of Objects, each of which has:\n"
"{txid, vout, scriptPubKey, amount, confirmations}");
RPCTypeCheck(params, list_of(int_type)(int_type)(array_type));
int nMinDepth = 1;
if (params.size() > 0)
nMinDepth = params[0].get_int();
int nMaxDepth = 9999999;
if (params.size() > 1)
nMaxDepth = params[1].get_int();
set<CBitcoinAddress> setAddress;
if (params.size() > 2)
{
Array inputs = params[2].get_array();
BOOST_FOREACH(Value& input, inputs)
{
CBitcoinAddress address(input.get_str());
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, string("Invalid AdamsCoinOfFun address: ")+input.get_str());
if (setAddress.count(address))
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+input.get_str());
setAddress.insert(address);
}
}
Array results;
vector<COutput> vecOutputs;
assert(pwalletMain != NULL);
pwalletMain->AvailableCoins(vecOutputs, false);
BOOST_FOREACH(const COutput& out, vecOutputs)
{
if (out.nDepth < nMinDepth || out.nDepth > nMaxDepth)
continue;
if (setAddress.size())
{
CTxDestination address;
if (!ExtractDestination(out.tx->vout[out.i].scriptPubKey, address))
continue;
if (!setAddress.count(address))
continue;
}
int64 nValue = out.tx->vout[out.i].nValue;
const CScript& pk = out.tx->vout[out.i].scriptPubKey;
Object entry;
entry.push_back(Pair("txid", out.tx->GetHash().GetHex()));
entry.push_back(Pair("vout", out.i));
CTxDestination address;
if (ExtractDestination(out.tx->vout[out.i].scriptPubKey, address))
{
entry.push_back(Pair("address", CBitcoinAddress(address).ToString()));
if (pwalletMain->mapAddressBook.count(address))
entry.push_back(Pair("account", pwalletMain->mapAddressBook[address]));
}
entry.push_back(Pair("scriptPubKey", HexStr(pk.begin(), pk.end())));
if (pk.IsPayToScriptHash())
{
CTxDestination address;
if (ExtractDestination(pk, address))
{
const CScriptID& hash = boost::get<CScriptID>(address);
CScript redeemScript;
if (pwalletMain->GetCScript(hash, redeemScript))
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
}
}
entry.push_back(Pair("amount",ValueFromAmount(nValue)));
entry.push_back(Pair("confirmations",out.nDepth));
results.push_back(entry);
}
return results;
}
Value createrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 2)
throw runtime_error(
"createrawtransaction [{\"txid\":txid,\"vout\":n},...] {address:amount,...}\n"
"Create a transaction spending given inputs\n"
"(array of objects containing transaction id and output number),\n"
"sending to given address(es).\n"
"Returns hex-encoded raw transaction.\n"
"Note that the transaction's inputs are not signed, and\n"
"it is not stored in the wallet or transmitted to the network.");
RPCTypeCheck(params, list_of(array_type)(obj_type));
Array inputs = params[0].get_array();
Object sendTo = params[1].get_obj();
CTransaction rawTx;
BOOST_FOREACH(const Value& input, inputs)
{
const Object& o = input.get_obj();
uint256 txid = ParseHashO(o, "txid");
const Value& vout_v = find_value(o, "vout");
if (vout_v.type() != int_type)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, missing vout key");
int nOutput = vout_v.get_int();
if (nOutput < 0)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout must be positive");
CTxIn in(COutPoint(txid, nOutput));
rawTx.vin.push_back(in);
}
set<CBitcoinAddress> setAddress;
BOOST_FOREACH(const Pair& s, sendTo)
{
CBitcoinAddress address(s.name_);
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, string("Invalid AdamsCoinOfFun address: ")+s.name_);
if (setAddress.count(address))
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+s.name_);
setAddress.insert(address);
CScript scriptPubKey;
scriptPubKey.SetDestination(address.Get());
int64 nAmount = AmountFromValue(s.value_);
CTxOut out(nAmount, scriptPubKey);
rawTx.vout.push_back(out);
}
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss << rawTx;
return HexStr(ss.begin(), ss.end());
}
Value decoderawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"decoderawtransaction <hex string>\n"
"Return a JSON object representing the serialized, hex-encoded transaction.");
vector<unsigned char> txData(ParseHexV(params[0], "argument"));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
CTransaction tx;
try {
ssData >> tx;
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
Object result;
TxToJSON(tx, 0, result);
return result;
}
Value signrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 4)
throw runtime_error(
"signrawtransaction <hex string> [{\"txid\":txid,\"vout\":n,\"scriptPubKey\":hex,\"redeemScript\":hex},...] [<privatekey1>,...] [sighashtype=\"ALL\"]\n"
"Sign inputs for raw transaction (serialized, hex-encoded).\n"
"Second optional argument (may be null) is an array of previous transaction outputs that\n"
"this transaction depends on but may not yet be in the block chain.\n"
"Third optional argument (may be null) is an array of base58-encoded private\n"
"keys that, if given, will be the only keys used to sign the transaction.\n"
"Fourth optional argument is a string that is one of six values; ALL, NONE, SINGLE or\n"
"ALL|ANYONECANPAY, NONE|ANYONECANPAY, SINGLE|ANYONECANPAY.\n"
"Returns json object with keys:\n"
" hex : raw transaction with signature(s) (hex-encoded string)\n"
" complete : 1 if transaction has a complete set of signature (0 if not)"
+ HelpRequiringPassphrase());
RPCTypeCheck(params, list_of(str_type)(array_type)(array_type)(str_type), true);
vector<unsigned char> txData(ParseHexV(params[0], "argument 1"));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
vector<CTransaction> txVariants;
while (!ssData.empty())
{
try {
CTransaction tx;
ssData >> tx;
txVariants.push_back(tx);
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
}
if (txVariants.empty())
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Missing transaction");
// mergedTx will end up with all the signatures; it
// starts as a clone of the rawtx:
CTransaction mergedTx(txVariants[0]);
bool fComplete = true;
// Fetch previous transactions (inputs):
CCoinsView viewDummy;
CCoinsViewCache view(viewDummy);
{
LOCK(mempool.cs);
CCoinsViewCache &viewChain = *pcoinsTip;
CCoinsViewMemPool viewMempool(viewChain, mempool);
view.SetBackend(viewMempool); // temporarily switch cache backend to db+mempool view
BOOST_FOREACH(const CTxIn& txin, mergedTx.vin) {
const uint256& prevHash = txin.prevout.hash;
CCoins coins;
view.GetCoins(prevHash, coins); // this is certainly allowed to fail
}
view.SetBackend(viewDummy); // switch back to avoid locking mempool for too long
}
bool fGivenKeys = false;
CBasicKeyStore tempKeystore;
if (params.size() > 2 && params[2].type() != null_type)
{
fGivenKeys = true;
Array keys = params[2].get_array();
BOOST_FOREACH(Value k, keys)
{
CBitcoinSecret vchSecret;
bool fGood = vchSecret.SetString(k.get_str());
if (!fGood)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid private key");
CKey key = vchSecret.GetKey();
tempKeystore.AddKey(key);
}
}
else
EnsureWalletIsUnlocked();
// Add previous txouts given in the RPC call:
if (params.size() > 1 && params[1].type() != null_type)
{
Array prevTxs = params[1].get_array();
BOOST_FOREACH(Value& p, prevTxs)
{
if (p.type() != obj_type)
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "expected object with {\"txid'\",\"vout\",\"scriptPubKey\"}");
Object prevOut = p.get_obj();
RPCTypeCheck(prevOut, map_list_of("txid", str_type)("vout", int_type)("scriptPubKey", str_type));
uint256 txid = ParseHashO(prevOut, "txid");
int nOut = find_value(prevOut, "vout").get_int();
if (nOut < 0)
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "vout must be positive");
vector<unsigned char> pkData(ParseHexO(prevOut, "scriptPubKey"));
CScript scriptPubKey(pkData.begin(), pkData.end());
CCoins coins;
if (view.GetCoins(txid, coins)) {
if (coins.IsAvailable(nOut) && coins.vout[nOut].scriptPubKey != scriptPubKey) {
string err("Previous output scriptPubKey mismatch:\n");
err = err + coins.vout[nOut].scriptPubKey.ToString() + "\nvs:\n"+
scriptPubKey.ToString();
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, err);
}
// what todo if txid is known, but the actual output isn't?
}
if ((unsigned int)nOut >= coins.vout.size())
coins.vout.resize(nOut+1);
coins.vout[nOut].scriptPubKey = scriptPubKey;
coins.vout[nOut].nValue = 0; // we don't know the actual output value
view.SetCoins(txid, coins);
// if redeemScript given and not using the local wallet (private keys
// given), add redeemScript to the tempKeystore so it can be signed:
if (fGivenKeys && scriptPubKey.IsPayToScriptHash())
{
RPCTypeCheck(prevOut, map_list_of("txid", str_type)("vout", int_type)("scriptPubKey", str_type)("redeemScript",str_type));
Value v = find_value(prevOut, "redeemScript");
if (!(v == Value::null))
{
vector<unsigned char> rsData(ParseHexV(v, "redeemScript"));
CScript redeemScript(rsData.begin(), rsData.end());
tempKeystore.AddCScript(redeemScript);
}
}
}
}
const CKeyStore& keystore = ((fGivenKeys || !pwalletMain) ? tempKeystore : *pwalletMain);
int nHashType = SIGHASH_ALL;
if (params.size() > 3 && params[3].type() != null_type)
{
static map<string, int> mapSigHashValues =
boost::assign::map_list_of
(string("ALL"), int(SIGHASH_ALL))
(string("ALL|ANYONECANPAY"), int(SIGHASH_ALL|SIGHASH_ANYONECANPAY))
(string("NONE"), int(SIGHASH_NONE))
(string("NONE|ANYONECANPAY"), int(SIGHASH_NONE|SIGHASH_ANYONECANPAY))
(string("SINGLE"), int(SIGHASH_SINGLE))
(string("SINGLE|ANYONECANPAY"), int(SIGHASH_SINGLE|SIGHASH_ANYONECANPAY))
;
string strHashType = params[3].get_str();
if (mapSigHashValues.count(strHashType))
nHashType = mapSigHashValues[strHashType];
else
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid sighash param");
}
bool fHashSingle = ((nHashType & ~SIGHASH_ANYONECANPAY) == SIGHASH_SINGLE);
// Sign what we can:
for (unsigned int i = 0; i < mergedTx.vin.size(); i++)
{
CTxIn& txin = mergedTx.vin[i];
CCoins coins;
if (!view.GetCoins(txin.prevout.hash, coins) || !coins.IsAvailable(txin.prevout.n))
{
fComplete = false;
continue;
}
const CScript& prevPubKey = coins.vout[txin.prevout.n].scriptPubKey;
txin.scriptSig.clear();
// Only sign SIGHASH_SINGLE if there's a corresponding output:
if (!fHashSingle || (i < mergedTx.vout.size()))
SignSignature(keystore, prevPubKey, mergedTx, i, nHashType);
// ... and merge in other signatures:
BOOST_FOREACH(const CTransaction& txv, txVariants)
{
txin.scriptSig = CombineSignatures(prevPubKey, mergedTx, i, txin.scriptSig, txv.vin[i].scriptSig);
}
if (!VerifyScript(txin.scriptSig, prevPubKey, mergedTx, i, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0))
fComplete = false;
}
Object result;
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << mergedTx;
result.push_back(Pair("hex", HexStr(ssTx.begin(), ssTx.end())));
result.push_back(Pair("complete", fComplete));
return result;
}
Value sendrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"sendrawtransaction <hex string> [allowhighfees=false]\n"
"Submits raw transaction (serialized, hex-encoded) to local node and network.");
// parse hex string from parameter
vector<unsigned char> txData(ParseHexV(params[0], "parameter"));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
CTransaction tx;
bool fOverrideFees = false;
if (params.size() > 1)
fOverrideFees = params[1].get_bool();
// deserialize binary data stream
try {
ssData >> tx;
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
uint256 hashTx = tx.GetHash();
bool fHave = false;
CCoinsViewCache &view = *pcoinsTip;
CCoins existingCoins;
{
fHave = view.GetCoins(hashTx, existingCoins);
if (!fHave) {
// push to local node
CValidationState state;
if (!tx.AcceptToMemoryPool(state, true, false, NULL, !fOverrideFees))
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX rejected"); // TODO: report validation state
}
}
if (fHave) {
if (existingCoins.nHeight < 1000000000)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "transaction already in block chain");
// Not in block, but already in the memory pool; will drop
// through to re-relay it.
} else {
SyncWithWallets(hashTx, tx, NULL, true);
}
RelayTransaction(tx, hashTx);
return hashTx.GetHex();
}
Value getnormalizedtxid(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"getnormalizedtxid <hex string>\n"
"Return the normalized transaction ID.");
// parse hex string from parameter
vector<unsigned char> txData(ParseHexV(params[0], "parameter"));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
CTransaction tx;
// deserialize binary data stream
try {
ssData >> tx;
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
uint256 hashNormalized = tx.GetNormalizedHash();
return hashNormalized.GetHex();
}
|
; A037601: Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 1,3,0.
; Submitted by Jamie Morken(s2)
; 1,11,88,705,5643,45144,361153,2889227,23113816,184910529,1479284235,11834273880,94674191041,757393528331,6059148226648,48473185813185,387785486505483,3102283892043864
seq $0,33144 ; Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,0.
mul $0,22
div $0,16
|
; 0 - POP local 0
leaw $SP, %A
movw (%A), %A
decw %A
movw (%A), %D
leaw $LCL, %A
movw (%A), %S
leaw $0, %A
addw %S, %A, %A
movw %D, (%A)
leaw $SP, %A
movw (%A), %A
decw %A
movw %A, %S
leaw $SP, %A
movw %S, (%A)
; 1 - POP local 1
leaw $SP, %A
movw (%A), %A
decw %A
movw (%A), %D
leaw $LCL, %A
movw (%A), %S
leaw $1, %A
addw %S, %A, %A
movw %D, (%A)
leaw $SP, %A
movw (%A), %A
decw %A
movw %A, %S
leaw $SP, %A
movw %S, (%A)
; 2 - POP local 2
leaw $SP, %A
movw (%A), %A
decw %A
movw (%A), %D
leaw $LCL, %A
movw (%A), %S
leaw $2, %A
addw %S, %A, %A
movw %D, (%A)
leaw $SP, %A
movw (%A), %A
decw %A
movw %A, %S
leaw $SP, %A
movw %S, (%A)
; End
|
; A024150: a(n) = 12^n - n^10.
; 1,11,-880,-57321,-1027840,-9516793,-57480192,-246643441,-643760128,1672995951,51917364224,717070946087,8854183084032,106855346887223,1283629209893888,15406444924195743,184883159383408640,2218609090746536543,26623329710418017280,319479993239556669047,3833759982207475122176,46005119892689820487911,552061438885876494801920,6624737266907810499906479,79496847203327440752476160,953962166440594762169657807,11447545997288140388119927808,137370551967459172771454879559,1648446623609512247754276995072
mov $1,12
pow $1,$0
pow $0,10
sub $1,$0
mov $0,$1
|
#include "WindowsInclude.h"
#include "DeviceContext.h"
#include "WindowsException.h"
namespace Wex
{
DeviceContext::DeviceContext(HDC dc)
: dc(dc)
{
}
DeviceContext::operator HDC() const
{
return dc;
}
HGDIOBJ DeviceContext::Select(HGDIOBJ object)
{
AssertValid();
return ::SelectObject(dc, object);
}
void DeviceContext::FillRect(const RECT& rect, HBRUSH brush)
{
AssertValid();
auto result = ::FillRect(dc, &rect, brush);
CheckLastWindowsError(!result, "FillRect");
}
void DeviceContext::FillSolidRect(const RECT& rect, COLORREF color)
{
AssertValid();
auto oldColor = SetBackColor(color);
auto result = ::ExtTextOut(
dc,
0,
0,
ETO_OPAQUE,
&rect,
nullptr,
0,
nullptr);
CheckLastWindowsError(!result, "ExtTextOut");
SetBackColor(oldColor);
}
Rect DeviceContext::MeasureString(const std::string& text, const RECT& rect)
{
AssertValid();
auto boundingRect = rect;
::DrawText(
dc,
text.c_str(),
text.size(),
&boundingRect,
DT_SINGLELINE|DT_NOPREFIX|DT_LEFT|DT_TOP|DT_CALCRECT);
return boundingRect;
}
Size DeviceContext::GetTextSize()
{
AssertValid();
TEXTMETRIC metrics = {0};
auto result = ::GetTextMetrics(dc, &metrics);
CheckLastWindowsError(!result, "GetTextMetrics");
return { metrics.tmAveCharWidth, metrics.tmHeight };
}
void DeviceContext::DrawText(const std::string& text, const RECT& rect)
{
AssertValid();
auto boundingRect = rect;
::DrawText(
dc,
text.c_str(),
text.size(),
&boundingRect,
DT_SINGLELINE|DT_NOPREFIX|DT_LEFT|DT_TOP);
}
COLORREF DeviceContext::SetBackColor(COLORREF color)
{
AssertValid();
auto oldColor = ::SetBkColor(dc, color);
CheckLastWindowsError(oldColor == CLR_INVALID, "SetBkColor");
return oldColor;
}
COLORREF DeviceContext::GetBackColor()
{
AssertValid();
auto result = ::GetBkColor(dc);
CheckLastWindowsError(result == CLR_INVALID, "GetBkColor");
return result;
}
COLORREF DeviceContext::SetTextColor(COLORREF color)
{
AssertValid();
auto oldColor = ::SetTextColor(dc, color);
CheckLastWindowsError(oldColor == CLR_INVALID, "SetTextColor");
return oldColor;
}
COLORREF DeviceContext::GetTextColor()
{
AssertValid();
auto result = ::GetTextColor(dc);
CheckLastWindowsError(result == CLR_INVALID, "GetTextColor");
return result;
}
Point DeviceContext::MoveTo(const POINT& point)
{
AssertValid();
Point previousPosition;
auto result = ::MoveToEx(dc, point.x, point.y, &previousPosition);
CheckLastWindowsError(!result, "MoveToEx");
return previousPosition;
}
void DeviceContext::LineTo(const POINT& point)
{
AssertValid();
auto result = ::LineTo(dc, point.x, point.y);
CheckLastWindowsError(!result, "LineTo");
}
Point DeviceContext::DrawLine(const std::vector<POINT>& points)
{
CheckError(points.size() < 2, 0, "Line must contain at least 2 points.");
auto previousPosition = MoveTo(points[0]);
for (auto index = 1ul; index < points.size(); ++index)
LineTo(points[index]);
return previousPosition;
}
void DeviceContext::AssertValid() const
{
if (dc == nullptr)
ThrowException("dc", 0, "Null device context.");
}
}
|
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24) )
ftyp_start:
dd BE(ftyp_end - ftyp_start)
db "ftyp"
db "isom"
dd BE(0x00)
db "mif1", "miaf"
ftyp_end:
meta_start:
dd BE(meta_end - meta_start)
db "meta"
dd BE(0)
hdlr_start:
dd BE(hdlr_end - hdlr_start)
db "hdlr"
db 0x00 ; version(8)
db 0x00, 0x00, 0x00 ; flags(24)
db 0x00, 0x00, 0x00, 0x00 ; pre_defined(32)
db 0x70, 0x69, 0x63, 0x74 ; handler_type(32) ('pict')
db 0x00, 0x00, 0x00, 0x00 ; reserved1(32)
db 0x00, 0x00, 0x00, 0x00 ; reserved2(32)
db 0x00, 0x00, 0x00, 0x00 ; reserved3(32)
db 0x00 ; name(8)
hdlr_end:
pitm_start:
dd BE(pitm_end - pitm_start)
db "pitm"
dd BE(0)
db 0x00, 0x01
pitm_end:
iloc_start:
dd BE(iloc_end - iloc_start)
db "iloc"
db 0x01 ; "version(8)"
db 0x00, 0x00, 0x00 ; "flags(24)"
db 0x44 ; "offset_size(4)" ('D') "length_size(4)" ('D')
db 0x00 ; "base_offset_size(4)" "index_size(4)"
db 0x00, 0x02 ; "item_count(16)"
db 0x00, 0x00 ; "item_ID(16)"
db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)"
db 0x00, 0x00 ; "data_reference_index(16)"
db 0x00, 0x00 ; "extent_count(16)"
db 0x00, 0x01 ; "item_ID(16)"
db 0x00, 0x00 ; "reserved2(12)" "construction_method(4)"
db 0x00, 0x00 ; "data_reference_index(16)"
db 0x00, 0x00 ; "extent_count(16)"
iloc_end:
iref_start:
dd BE(iref_end - iref_start)
db "iref"
db 0x01, 0x00, 0x00, 0x00 ; version=1
thmb_start:
dd BE(thmb_end - thmb_start)
dd "thmb"
dd BE(2) ; from_item_ID
db 0x00, 0x01 ; reference_count
dd BE(1) ; to_item_ID
thmb_end:
iref_end:
iinf_start:
dd BE(iinf_end - iinf_start)
dd "iinf"
db 0x00 ; "version(8)"
db 0x00, 0x00, 0x00 ; "flags(24)"
db 0x00, 0x01 ; "entry_count(16)"
infe_start:
dd BE(infe_end - infe_start)
dd "infe"
db 0x02 ; "version(8)"
db 0x00, 0x00, 0x00 ; "flags(24)"
db 0x00, 0x01 ; "item_ID(16)"
db 0x00, 0x00 ; "item_protection_index(16)"
db 0x61, 0x76, 0x30, 0x31 ; "item_type(32)" ('av01')
db 0x00 ; "item_name(8)"
infe_end:
iinf_end:
iprp_start:
dd BE(iprp_end - iprp_start)
db "iprp"
ipco_start:
dd BE(ipco_end - ipco_start)
db "ipco"
ispe_start:
dd BE(ispe_end - ispe_start)
db "ispe"
dd 0, 0, 0
ispe_end:
pixi_start:
dd BE(pixi_end - pixi_start)
dd "pixi"
pixi_end:
ipco_end:
ipma_start:
dd BE(ipma_end - ipma_start)
dd "ipma"
db 0x00 ; "version(8)"
db 0x00, 0x00, 0x00 ; "flags(24)"
db 0x00, 0x00, 0x00, 0x01 ; "entry_count(32)"
db 0x00, 0x01 ; "item_ID(16)"
db 0x02 ; "association_count(8)"
db 0x81 ; "essential(1)" "property_index(7)"
db 0x82 ; "essential(1)" "property_index(7)"
ipma_end:
iprp_end:
meta_end:
; vim: syntax=nasm
|
db 0 ; species ID placeholder
db 70, 80, 50, 35, 35, 35
; hp atk def spd sat sdf
db FIGHTING, FIGHTING ; type
db 180 ; catch rate
db 88 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F0 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/machop/front.dimensions"
db 0, 0, 0, 0 ; padding
db GROWTH_MEDIUM_SLOW ; growth rate
dn EGG_HUMANSHAPE, EGG_HUMANSHAPE ; egg groups
; tm/hm learnset
tmhm DYNAMICPUNCH, HEADBUTT, CURSE, TOXIC, ROCK_SMASH, SUNNY_DAY, STONE_EDGE, SNORE, PROTECT, EARTHQUAKE, RETURN, DIG, DOUBLE_TEAM, ICE_PUNCH, SWAGGER, SLEEP_TALK, FIRE_BLAST, THUNDERPUNCH, PURSUIT, REST, ATTRACT, THIEF, FIRE_PUNCH, STRENGTH, FLAMETHROWER
; end
|
#include "tree_ctr_datasets_visitor.h"
#include "pointwise_scores_calcer.h"
namespace NCatboostCuda {
void TTreeCtrDataSetVisitor::Accept(const TTreeCtrDataSet& ctrDataSet,
const TMirrorBuffer<const TPartitionStatistics>& partStats,
const TMirrorBuffer<ui32>& ctrDataSetInverseIndices,
const TMirrorBuffer<ui32>& subsetDocs) {
{
auto cacheIds = GetCtrsBordersToCacheIds(ctrDataSet.GetCtrs());
if (cacheIds.size()) {
CacheCtrBorders(ctrDataSet.ReadBorders(cacheIds));
}
}
using TScoreCalcer = TScoresCalcerOnCompressedDataSet<TSingleDevLayout>;
auto& scoreHelper = *ctrDataSet.GetCacheHolder().Cache(ctrDataSet, 0, [&]() -> THolder<TScoreCalcer> {
return new TScoreCalcer(ctrDataSet.GetCompressedDataSet(),
TreeConfig,
FoldCount);
});
const ui32 devId = ctrDataSet.GetDeviceId();
const ui64 taskSeed = Seeds[ctrDataSet.GetDeviceId()] + ctrDataSet.GetBaseTensor().GetHash();
scoreHelper.SubmitCompute(Subsets.DeviceView(devId),
subsetDocs.DeviceView(devId));
scoreHelper.ComputeOptimalSplit(partStats,
ScoreStdDev,
taskSeed);
UpdateBestSplit(ctrDataSet,
ctrDataSetInverseIndices,
scoreHelper.ReadOptimalSplit());
}
TBestSplitProperties TTreeCtrDataSetVisitor::CreateBestSplitProperties() {
EnsureHasBestProps();
if (!FeaturesManager.IsKnown(BestCtr)) {
TVector<float> borders(BestBorders[BestDevice].begin(),
BestBorders[BestDevice].end());
FeaturesManager.AddCtr(BestCtr,
std::move(borders));
}
TBestSplitProperties splitProperties;
splitProperties.FeatureId = FeaturesManager.GetId(BestCtr);
splitProperties.BinId = BestBin;
splitProperties.Score = static_cast<float>(BestScore);
return splitProperties;
}
void TTreeCtrDataSetVisitor::UpdateBestSplit(const TTreeCtrDataSet& dataSet, const TMirrorBuffer<ui32>& inverseIndices,
const TBestSplitProperties& bestSplitProperties) {
const ui32 dev = dataSet.GetCompressedDataSet().GetSamplesMapping().GetDeviceId();
{ //we don't need complex logic here. this should be pretty fast
bool shouldReturn = false;
with_lock (Lock) {
if (bestSplitProperties.Score < BestScore) {
BestScore = bestSplitProperties.Score;
BestBin = bestSplitProperties.BinId;
BestDevice = dev;
BestCtr = dataSet.GetCtrs()[bestSplitProperties.FeatureId];
} else {
shouldReturn = true;
}
}
if (shouldReturn) {
return;
}
}
{
const ui32 featureId = bestSplitProperties.FeatureId;
const ui32 binId = bestSplitProperties.BinId;
const auto& ctr = dataSet.GetCtrs()[featureId];
const ui32 compressedSize = CompressedSize<ui64>(static_cast<ui32>(inverseIndices.GetObjectsSlice().Size()), 2);
BestSplits[dev].Reset(NCudaLib::TSingleMapping(dev, compressedSize));
const auto devInverseIndices = inverseIndices.ConstDeviceView(dev);
auto& binarizedDataSet = dataSet.GetCompressedDataSet();
CreateCompressedSplit(binarizedDataSet,
binarizedDataSet.GetTCFeature(featureId),
binId,
BestSplits[dev],
&devInverseIndices);
if (!FeaturesManager.IsKnown(ctr)) {
BestBorders[dev] = dataSet.ReadBorders(featureId);
}
}
}
void TTreeCtrDataSetVisitor::CacheCtrBorders(const TMap<TCtr, TVector<float>>& bordersMap) {
for (auto& entry : bordersMap) {
if (!FeaturesManager.IsKnown(entry.first)) {
TVector<float> borders(entry.second.begin(), entry.second.end());
with_lock (Lock) {
Y_ASSERT(!FeaturesManager.IsKnown(entry.first)); //we can't add one ctr from 2 different threads.
FeaturesManager.AddCtr(entry.first, std::move(borders));
}
}
}
}
TVector<ui32> TTreeCtrDataSetVisitor::GetCtrsBordersToCacheIds(const TVector<TCtr>& ctrs) {
TVector<ui32> result;
for (ui32 i = 0; i < ctrs.size(); ++i) {
const auto& ctr = ctrs.at(i);
if (IsNeedToCacheBorders(ctr)) {
result.push_back(i);
}
}
return result;
}
bool TTreeCtrDataSetVisitor::IsNeedToCacheBorders(const TCtr& ctr) {
return ctr.FeatureTensor.GetSplits().size() == 0 &&
ctr.FeatureTensor.GetCatFeatures().size() < TreeConfig.MaxCtrComplexityForBordersCaching;
}
TSingleBuffer<const ui64> TTreeCtrDataSetVisitor::GetBestSplitBits() const {
EnsureHasBestProps();
return BestSplits[BestDevice].ConstCopyView();
}
TTreeCtrDataSetVisitor::TTreeCtrDataSetVisitor(TBinarizedFeaturesManager& featuresManager, const ui32 foldCount,
const NCatboostOptions::TObliviousTreeLearnerOptions& treeConfig,
const TOptimizationSubsets<NCudaLib::TMirrorMapping>& subsets)
: FeaturesManager(featuresManager)
, FoldCount(foldCount)
, TreeConfig(treeConfig)
, Subsets(subsets)
, BestScore(std::numeric_limits<double>::infinity())
, BestBin(-1)
, BestDevice(-1)
, BestBorders(NCudaLib::GetCudaManager().GetDeviceCount())
, BestSplits(NCudaLib::GetCudaManager().GetDeviceCount())
, Seeds(NCudaLib::GetCudaManager().GetDeviceCount(), 0)
{
}
TTreeCtrDataSetVisitor& TTreeCtrDataSetVisitor::SetBestScore(double score) {
BestScore = score;
return *this;
}
TTreeCtrDataSetVisitor& TTreeCtrDataSetVisitor::SetScoreStdDevAndSeed(double scoreStdDev, ui64 seed) {
ScoreStdDev = scoreStdDev;
TRandom random(seed);
for (ui32 i = 0; i < Seeds.size(); ++i) {
Seeds[i] = random.NextUniformL();
}
return *this;
}
}
|
; A051170: T(n,5), array T as in A051168; a count of Lyndon words; aperiodic necklaces with 5 black beads and n-5 white beads.
; 0,1,3,7,14,25,42,66,99,143,200,273,364,476,612,775,969,1197,1463,1771,2125,2530,2990,3510,4095,4750,5481,6293,7192,8184,9275,10472,11781,13209,14763,16450,18278,20254,22386,24682,27150,29799,32637,35673,38916,42375,46060,49980,54145,58565,63250,68211,73458,79002,84854,91025,97527,104371,111569,119133,127075,135408,144144,153296,162877,172900,183379,194327,205758,217686,230125,243090,256595,270655,285285,300500,316316,332748,349812,367524,385900,404957,424711,445179,466378,488325,511038,534534
add $0,4
bin $0,4
div $0,5
|
// stdafx.cpp : source file that includes just the standard includes
// GeoXTool.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* Copyright (c) 2018, Open AI Lab
* Author: haitao@openailab.com
*/
#include <functional>
#include "simple_engine.hpp"
#include "tensor_mem.hpp"
#include "logger.hpp"
#include "tengine_config.hpp"
namespace TEngine {
SimpleEngine::SimpleEngine(void)
{
name="simple";
backend_dev_=nullptr;
}
SimpleEngine:: ~SimpleEngine(void)
{
}
exec_handle_t SimpleEngine::AddGraphExecutor(GraphExecutor * graph_executor)
{
ExecHandle * new_handle=new ExecHandle();
new_handle->graph_executor=graph_executor;
new_handle->status=EXEC_STATUS_CREATED;
any * ret=new any();
(*ret)=new_handle;
return ret;
}
void * SimpleEngine::GetTensorBuffer(Tensor * tensor, exec_handle_t h)
{
return get_tensor_mem(tensor);
}
bool SimpleEngine::SetTensorBuffer(Tensor * tensor, void *addr, int size, exec_handle_t h)
{
return set_tensor_mem(tensor,addr,size,nullptr);
}
bool SimpleEngine::Prerun(exec_handle_t h)
{
if(backend_dev_==nullptr)
{
std::string default_dev_id;
if(!TEngineConfig::Get("device.default",default_dev_id))
return false;
Device * device=DriverManager::GetDevice(default_dev_id);
if(device==nullptr)
return false;
backend_dev_=device;
}
ExecHandle * handle=any_cast<ExecHandle*>(*h);
Graph * graph=handle->graph_executor->GetGraph();
void * graph_handle=backend_dev_->CreateGraphHandle(graph);
if(graph_handle==nullptr)
return false;
if(!backend_dev_->OptimizeGraph(graph_handle))
return false;
if(!backend_dev_->Prerun(graph_handle))
return false;
auto f=std::bind(&SimpleEngine::OnGraphDone,this,std::placeholders::_1,std::placeholders::_2);
backend_dev_->SetGraphDoneHook(graph_handle,dev_graph_cb_t(f));
handle->graph_handle=graph_handle;
handle->status=EXEC_STATUS_INITED;
return true;
}
void SimpleEngine::OnGraphDone(Graph * graph, bool exec_success)
{
WaitEvent * p_event=any_cast<WaitEvent *>(graph->GetAttr("wait_event"));
ExecHandle * handle=any_cast<ExecHandle*>(graph->GetAttr("exec_handle"));
std::unique_lock<std::mutex> lock(p_event->mutex);
p_event->task_done=true;
if(exec_success)
handle->status=EXEC_STATUS_READY;
else
handle->status=EXEC_STATUS_BAD;
lock.unlock();
p_event->cond.notify_all();
}
bool SimpleEngine::SyncRun(exec_handle_t h)
{
ExecHandle * handle=any_cast<ExecHandle*>(*h);
if(handle->status!=EXEC_STATUS_INITED &&
handle->status!=EXEC_STATUS_READY)
{
XLOG_ERROR()<<"bad status: "<<GetStatusStr(handle->status)<<"\n";
return false;
}
handle->status=EXEC_STATUS_RUN;
void * graph_handle=handle->graph_handle;
if(backend_dev_->SyncRun(graph_handle))
{
handle->status=EXEC_STATUS_READY;
return true;
}
handle->status=EXEC_STATUS_BAD;
return false;
}
bool SimpleEngine::Run(exec_handle_t h,exec_event_t& event)
{
ExecHandle * handle=any_cast<ExecHandle*>(*h);
if(handle->status!=EXEC_STATUS_INITED &&
handle->status!=EXEC_STATUS_READY)
{
XLOG_ERROR()<<"bad status: "<<GetStatusStr(handle->status)<<"\n";
return false;
}
WaitEvent * p_event=new WaitEvent();
p_event->wait_count=0;
p_event->task_done=false;
event=p_event;
Graph * graph=handle->graph_executor->GetGraph();
graph->SetAttr("wait_event",p_event);
graph->SetAttr("exec_handle",handle);
void * graph_handle=handle->graph_handle;
handle->status=EXEC_STATUS_RUN;
if(backend_dev_->Run(graph_handle))
return true;
handle->status=EXEC_STATUS_BAD;
delete p_event;
return false;
}
bool SimpleEngine::Postrun(exec_handle_t h)
{
ExecHandle * handle=any_cast<ExecHandle*>(*h);
void * graph_handle=handle->graph_handle;
return backend_dev_->Postrun(graph_handle);
}
exec_status_t SimpleEngine::GetStatus(exec_handle_t h)
{
ExecHandle * handle=any_cast<ExecHandle*>(*h);
return handle->status;
}
const std::string& SimpleEngine::GetStatusStr(const exec_status_t& status)
{
static std::string created="CREATED";
static std::string inited="INITED";
static std::string run="RUN";
static std::string done="DONE";
static std::string bad="BAD";
static std::string unknown="UNKNOWN";
int s=any_cast<int>(status);
switch(s)
{
case EXEC_STATUS_CREATED:
return created;
case EXEC_STATUS_INITED:
return inited;
case EXEC_STATUS_RUN:
return run;
case EXEC_STATUS_DONE:
return done;
case EXEC_STATUS_BAD:
return bad;
default:
break;
}
return unknown;
}
int SimpleEngine::GetStatusCode(const exec_status_t& status)
{
int s=any_cast<int>(status);
return s;
}
std::string SimpleEngine::GetErrorStr(exec_handle_t h)
{
return "NO ERROR:-)\n";
}
bool SimpleEngine::RemoveGraphExecutor(exec_handle_t h)
{
ExecHandle * handle=any_cast<ExecHandle*>(*h);
void * graph_handle=handle->graph_handle;
backend_dev_->ReleaseGraphHandle(graph_handle);
delete handle;
delete h;
return true;
}
int SimpleEngine::Wait(exec_handle_t h, exec_event_t& e, int try_wait)
{
WaitEvent * p_event=any_cast<WaitEvent *>(e);
std::unique_lock<std::mutex> lock(p_event->mutex);
if(try_wait && !p_event->task_done)
{
lock.unlock();
return 0;
}
p_event->wait_count++;
if(!p_event->task_done)
p_event->cond.wait(lock,[p_event]{return p_event->task_done;});
if(p_event->wait_count.fetch_sub(1)==1)
{
delete p_event;
}
else
{
lock.unlock();
}
return 1;
}
bool SimpleEngine::SetCallback(exec_handle_t h , exec_event_t& e, int event, exec_cb_t cb)
{
return false;
}
} //namespace TEngine
|
/*! \file version.cpp
* \brief Version information.
*
* $Id$
*
*/
#include "copyright.h"
#include "autoconf.h"
#include "config.h"
#include "externs.h"
#include "command.h"
#if !(defined(MUX_BUILD_VER_ID) \
&& defined(MUX_BUILD_BUILDER) \
&& defined(MUX_BUILD_TIME) \
&& defined(MUX_BUILD_CXXVER) \
&& defined(MUX_BUILD_UNAME))
# error MUX_BUILD_ vars not defined
#endif
#define stringify(x) stringify_(x)
#define stringify_(x) #x
void do_version(dbref executor, dbref caller, dbref enactor, int eval, int key)
{
UNUSED_PARAMETER(caller);
UNUSED_PARAMETER(enactor);
UNUSED_PARAMETER(eval);
UNUSED_PARAMETER(key);
notify(executor, mudstate.version);
notify(executor, tprintf(T("%s\r\n"
"Builder: %s\r\n"
"Build time: %s\r\n"
"Compiler: %s\r\n"
"System: %s"),
stringify(MUX_BUILD_VER_ID),
stringify(MUX_BUILD_BUILDER),
stringify(MUX_BUILD_TIME),
stringify(MUX_BUILD_CXXVER),
stringify(MUX_BUILD_UNAME)));
}
void build_version(void)
{
mux_sprintf(mudstate.version, sizeof(mudstate.version),
T("MUX %s"), stringify(MUX_BUILD_VER_ID));
mux_sprintf(mudstate.short_ver, sizeof(mudstate.short_ver),
T("MUX %s"), stringify(MUX_BUILD_VER_ID));
}
void init_version(void)
{
STARTLOG(LOG_ALWAYS, "INI", "START");
log_text(T("Starting: "));
log_text(mudstate.version);
ENDLOG;
STARTLOG(LOG_ALWAYS, "INI", "START");
log_text(T("Build date: "));
log_text((UTF8 *)stringify(MUX_BUILD_TIME));
ENDLOG;
}
|
.data
message: .asciiz "Name: "
newline: .asciiz "\n"
rollCall: .asciiz "Roll No: "
userName: .space 30
userRoll: .space 10
.text
#Main function
main:
#Taking name as input from the user
li $v0, 8
la $a0, userName
li $a1, 30
syscall
#Taking roll as input from the user
li $v0, 8
la $a0, userRoll
li $a1, 10
syscall
#Printing name from the user
li $v0, 4
la $a0, message
syscall
li $v0, 4
la $a0, userName
syscall
#Printing a newline
li $v0, 4
la $a0, newline
syscall
#Printing roll from the user
li $v0, 4
la $a0, rollCall
syscall
li $v0, 4
la $a0, userRoll
syscall
#End of main function
li $v0, 10
syscall
|
; A028992: Even 9-gonal (or enneagonal) numbers.
; 0,24,46,154,204,396,474,750,856,1216,1350,1794,1956,2484,2674,3286,3504,4200,4446,5226,5500,6364,6666,7614,7944,8976,9334,10450,10836,12036,12450,13734,14176,15544,16014,17466,17964,19500,20026,21646,22200,23904,24486,26274,26884,28756,29394,31350,32016,34056,34750,36874,37596,39804,40554,42846,43624,46000,46806,49266,50100,52644,53506,56134,57024,59736,60654,63450,64396,67276,68250,71214,72216,75264,76294,79426,80484,83700,84786,88086,89200,92584,93726,97194,98364,101916,103114,106750,107976
mov $2,$0
mul $0,2
mod $2,2
add $0,$2
seq $0,139268 ; Twice nonagonal numbers (or twice 9-gonal numbers): a(n) = n(7n-5).
div $0,2
|
#include <iostream>
#include <thread>
int main() {
unsigned int n_cores = std::thread::hardware_concurrency();
std::cout << "This machine supports concurrency with "
<< n_cores << " cores available"
<< std::endl;
return 0;
} |
// include file for dir_end2.a80
ld hl,verifyLabel ; label from first file
ld de,verifyLabelFrom_dir_end3.a80
END
And that's all from this include file.
|
; A052685: E.g.f. (1-x^2)/(1-x-2x^2+x^4).
; Submitted by Christian Krause
; 1,1,4,24,168,1680,18720,252000,3830400,65681280,1251936000,26225337600,599710003200,14851444608000,396138155212800,11320537003776000,345079573622784000,11176410365632512000
mov $2,$0
seq $0,52535 ; Expansion of (1-x)*(1+x)/(1-x-2*x^2+x^4).
lpb $2
mul $0,$2
sub $2,1
lpe
|
; int fgetc(FILE *stream)
INCLUDE "clib_cfg.asm"
SECTION code_stdio
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $02
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC fgetc
EXTERN asm_fgetc
fgetc:
push hl
pop ix
jp asm_fgetc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC fgetc
EXTERN fgetc_unlocked
defc fgetc = fgetc_unlocked
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
.text
### Load values to registers $t0-$t1
li $t0, 10
li $t1, 2
### Load values to registers $t0-$t1
div $s0, $t0, $t1 # $s0 = $t0 / $t1 |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x83aa, %rdi
nop
nop
nop
nop
nop
add %r11, %r11
mov $0x6162636465666768, %rbp
movq %rbp, %xmm5
movups %xmm5, (%rdi)
nop
nop
sub $22470, %r12
lea addresses_normal_ht+0x1beea, %rsi
lea addresses_A_ht+0x3faa, %rdi
nop
nop
nop
nop
nop
and %r12, %r12
mov $14, %rcx
rep movsq
nop
nop
nop
add %rbp, %rbp
lea addresses_A_ht+0x142aa, %rcx
nop
nop
nop
add $11213, %r8
mov (%rcx), %rdi
nop
nop
sub $2565, %rsi
lea addresses_WT_ht+0x7bb4, %rsi
lea addresses_normal_ht+0x7aaa, %rdi
nop
nop
nop
cmp %r12, %r12
mov $68, %rcx
rep movsw
add $1653, %r12
lea addresses_UC_ht+0x6aca, %rcx
nop
and %r12, %r12
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
movups %xmm6, (%rcx)
nop
nop
nop
nop
nop
xor %r11, %r11
lea addresses_WT_ht+0x1c4aa, %rsi
lea addresses_A_ht+0x7baa, %rdi
nop
nop
nop
cmp %r12, %r12
mov $41, %rcx
rep movsw
nop
nop
xor $54904, %r8
lea addresses_UC_ht+0xe2aa, %r11
nop
nop
add %rbp, %rbp
movb $0x61, (%r11)
nop
nop
nop
mfence
lea addresses_A_ht+0x12d5a, %rsi
lea addresses_WT_ht+0x9f88, %rdi
inc %r15
mov $38, %rcx
rep movsb
nop
sub %rsi, %rsi
lea addresses_D_ht+0xb9aa, %rsi
and %r12, %r12
movups (%rsi), %xmm1
vpextrq $0, %xmm1, %rdi
nop
nop
nop
add %r8, %r8
lea addresses_A_ht+0x5746, %r12
nop
nop
nop
nop
xor %r11, %r11
movb (%r12), %r8b
add $63198, %r8
lea addresses_D_ht+0xe73e, %rcx
nop
dec %rsi
movl $0x61626364, (%rcx)
nop
xor $17431, %rcx
lea addresses_A_ht+0x12342, %rsi
lea addresses_WT_ht+0xf8a, %rdi
clflush (%rsi)
add %r12, %r12
mov $108, %rcx
rep movsw
nop
nop
nop
nop
cmp %r8, %r8
lea addresses_D_ht+0x4a3a, %rbp
nop
and $52221, %r11
movw $0x6162, (%rbp)
nop
and %r15, %r15
lea addresses_D_ht+0x10bdd, %r12
nop
nop
nop
nop
cmp $9268, %r8
mov $0x6162636465666768, %rsi
movq %rsi, (%r12)
add $27774, %r8
lea addresses_D_ht+0xedaa, %rcx
nop
nop
nop
nop
sub $46207, %r15
mov (%rcx), %r8
nop
nop
nop
inc %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r15
push %r8
push %rax
push %rbp
push %rsi
// Store
lea addresses_normal+0x6aa, %r15
clflush (%r15)
nop
nop
nop
nop
cmp $65104, %rsi
movw $0x5152, (%r15)
nop
nop
nop
inc %r10
// Faulty Load
lea addresses_normal+0x6aa, %rax
nop
nop
nop
inc %r13
vmovups (%rax), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rsi
lea oracles, %r13
and $0xff, %rsi
shlq $12, %rsi
mov (%r13,%rsi,1), %rsi
pop %rsi
pop %rbp
pop %rax
pop %r8
pop %r15
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 1}}
{'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 2, 'NT': False, 'same': True, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
|
; A004941: Nearest integer to n*phi^6, where phi is the golden ratio, A001622.
; 0,18,36,54,72,90,108,126,144,161,179,197,215,233,251,269,287,305,323,341,359,377,395,413,431,449,467,484,502,520,538,556,574,592,610,628,646,664,682,700,718,736,754,772
mov $2,19
mov $3,$0
add $3,4
mov $4,1
mov $5,$0
mov $6,5
lpb $0
mov $0,6
add $3,$4
add $0,$3
trn $0,$2
sub $2,$0
sub $3,1
add $2,$3
add $2,$6
sub $4,$4
lpe
add $3,$6
sub $3,2
mov $1,$3
lpb $5
add $1,17
sub $5,1
lpe
sub $1,7
|
; uint in_KeyPressed(uint scancode)
SECTION code_clib
PUBLIC in_KeyPressed
PUBLIC _in_KeyPressed
EXTERN in_getrow
INCLUDE "target/pasopia7/def/pasopia7.def"
; Determines if a key is pressed using the scan code
; returned by in_LookupKey.
; enter : l = scan row
; h = key mask
; exit : carry = key is pressed & HL = 1
; no carry = key not pressed & HL = 0
; used : AF,BC,HL
.in_KeyPressed
._in_KeyPressed
ld a,@00010001 ;Shift row
out (KEY_SCAN),a
in a,(KEY_DATA)
bit 7,l
jr nz,check_shift
bit 1,a
jr z,fail
jr consider_ctrl
check_shift:
bit 1,a
jr nz,fail ;Shift not pressed
.consider_ctrl
bit 6,l
jr nz,check_ctrl
bit 0,a
jr z,fail
jr nofunc
.check_ctrl
bit 0,a ;CTRL
jr nz,fail
.nofunc
call in_getrow
out (KEY_SCAN),a
in a,(KEY_DATA)
cpl
and h ;Check with mask
jr z,fail
ld hl,1
scf
ret
fail:
ld hl,0
and a
ret
|
; A188010: Positions of 0 in A188009; complement of A101866.
; 1,2,3,4,6,7,8,9,11,12,14,15,16,17,19,20,21,22,24,25,27,28,29,30,32,33,35,36,37,38,40,41,42,43,45,46,48,49,50,51,53,54,55,56,58,59,61,62,63,64,66,67,69,70,71,72,74,75,76,77,79,80,82,83,84,85,87,88,90,91,92,93,95,96,97,98,100,101,103,104,105,106,108,109,110,111,113,114
mov $5,$0
div $0,2
mov $1,2
mov $3,2
lpb $3,1
sub $0,$3
mov $2,$1
sub $1,$0
add $2,$0
mov $4,$0
add $0,3
add $1,$4
add $1,$2
add $1,$4
mul $1,42
mov $3,1
lpe
add $0,$4
div $1,5
sub $1,$0
div $1,24
add $1,1
add $1,$5
|
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// See accompanying file LICENSE.txt or copy at
/// http://www.boost.org/LICENSE_1_0.txt
//////////////////////////////////////////////////////////////////////////////
#ifndef NT2_TOOLBOX_FDLIBM_FUNCTION_SIMD_VMX_COMMON_CEIL_HPP_INCLUDED
#define NT2_TOOLBOX_FDLIBM_FUNCTION_SIMD_VMX_COMMON_CEIL_HPP_INCLUDED
#include <nt2/toolbox/fdlibm/function/simd/common/ceil.hpp>
#endif
|
TITLE PROLOG -
INCLUDE MACROS
PUBLIC PERFORM_VERIFY
.DATA
SOFT EXTB SYMBOL_TPTR
SOFT EXTW SYMBOL_LENGTH
SOFT EXTCA OPTI_MOVE
.CODE MIDDLE_TEXT
SOFT EXTP FAR_INSTALL,SEARCH_RAINBOW_AXBX,ERR_ABORT,LNAME_INSTALL
SOFT EXTA CANNOT_LINK_ERR
ASSUME DS:NOTHING
PERFORM_VERIFY PROC
;
;LOOK FOR CLASSES OF PROSYMB, PROMOD
;
;ALSO SYMBOL _PROLOG_SymbolTable MUST BE DEFINED
;
LEA SI,PROSYMB
CALL VERIFY_CLASS
LEA SI,PROMOD
CALL VERIFY_CLASS
LEA SI,_PROLOG_SymbolTable
CALL VERIFY_SYMBOL
RET
PERFORM_VERIFY ENDP
VERIFY_CLASS PROC NEAR
;
;
;
PUSH CS
POP DS
CALL UNXOR
FIXES
GET_NAME_HASH
CALL LNAME_INSTALL
; MOV CX,RECTYP_CLASS
CALL SEARCH_RAINBOW_AXBX
JC VERIFY_FAIL
RET
VERIFY_CLASS ENDP
VERIFY_FAIL:
MOV CL,CANNOT_LINK_ERR
CALL ERR_ABORT
VERIFY_SYMBOL PROC NEAR
;
;
;
PUSH CS
POP DS
CALL UNXOR
FIXES
GET_NAME_HASH
CALL FAR_INSTALL
JNC VERIFY_FAIL
RET
VERIFY_SYMBOL ENDP
UNXOR PROC NEAR
;
;
;
PUSH SI
MOV AH,0AAH
XOR BPTR [SI],AH
LODSB
MOV CL,AL
XOR CH,CH
1$:
XOR BPTR [SI],AH
INC SI
LOOP 1$
POP SI
RET
UNXOR ENDP
GENSTRING MACRO XX
LOCAL LEN
XX DB LEN XOR 0AAH
IRPC XXX,<XX>
DB '&XXX' XOR 0AAH
ENDM
LEN EQU $-1-XX
ENDM
GENSTRING PROSYMB
GENSTRING PROMOD
GENSTRING _PROLOG_SymbolTable
END
|
; Display day of week based on the input number.
.model small
.stack 100h
.data
table dw day1, day2, day3, day4, day5, day6, day7
crlf db 0dh, 0ah, '$'
s0 db 'please input number between 1 to 7$'
s1 db 'Monday$'
s2 db 'Tuesday$'
s3 db 'Wednesday$'
s4 db 'Thursday$'
s5 db 'Friday$'
s6 db 'Saturday$'
s7 db 'Sunday$'
.code
printStr MACRO strAddr
push dx
push ax
lea dx, strAddr
mov ah, 9
int 21h
pop ax
pop dx
ENDM
start:
mov ax, @data
mov ds, ax
input:
lea dx, s0
mov ah, 9
int 21h
printStr crlf
mov ah, 1
int 21h
; store the input char in bx
mov bx, ax
printStr crlf
cmp bl, '1'
jb input
cmp bl, '7'
ja input
and bx, 000fh
dec bx
shl bx, 1
jmp table[bx]
display:
mov ah, 9
int 21h
printStr crlf
mov ah, 4ch
int 21h
day1:
lea dx, s1
jmp display
day2:
lea dx, s2
jmp display
day3:
lea dx, s3
jmp display
day4:
lea dx, s4
jmp display
day5:
lea dx, s5
jmp display
day6:
lea dx, s6
jmp display
day7:
lea dx, s7
jmp display
end start
|
//
// Created by Phong Cao on 2019-03-22.
//
// uncomment to disable assert()
// #define NDEBUG
#include <cassert>
#include <iostream>
#include <iomanip>
#include <ios>
#include <sstream>
#include <fstream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <list>
#include <forward_list>
#include <deque>
#include <queue>
#include <stack>
#include <iterator>
#include <utility>
#include <algorithm>
#include <memory>
#include <cctype>
#include <stdexcept>
#include <limits>
#include <numeric>
//----<iostream>------------//
using std::cout;
using std::cin;
using std::endl;
using std::ostream;
using std::istream;
//----<iomanip>-------------//
using std::setprecision;
using std::setw;
//----<ios>-----------------//
using std::hex;
using std::dec;
using std::oct;
using std::fixed;
//----<sstream>-------------//
using std::ostringstream;
using std::istringstream;
//----<fstream>-------------//
using std::ofstream;
using std::ifstream;
//----<string>--------------//
using std::getline;
using std::string;
using std::to_string;
using std::stoi;
using std::stol;
//----<cmath>---------------//
using std::sqrt;
using std::pow;
//----<cstdlib>-------------//
using std::rand;
using std::srand;
//----<ctime>---------------//
using std::time;
//----<functional>----------//
using std::hash;
using std::greater; // lhs > rhs. Used for MinPQ
using std::less; // lhs < rhs. Used for MaxPQ. Default for priority_queue<>
using std::less_equal;
using std::greater_equal;
//----<vector>--------------//
using std::vector; // Unordered Array
//----<map>-----------------//
using std::map; // Ordered Map (Red-Black Tree)
//----<unordered_map>-------//
using std::unordered_map; // HashMap (SeparateChainingHashST)
//----<set>-----------------//
using std::set; // Ordered Set (Red-Black Tree)
//----<unordered_set>-------//
using std::unordered_set; // HashSet (SeparateChainingHashST)
//----<list>----------------//
using std::list; // Doubly-Linked List with size() ( O( 1 ) )
//----<forward_list>--------//
using std::forward_list; // Singly-Linked List without size() function ( so O( N ) if we need to get size() )
//----<deque>---------------//
using std::deque; // Vector of fixed-size Vectors: 1 fixed-size vector for each end of the deque
//----<queue>---------------//
using std::queue; // Non-Iterable & Use std::deque as underlying data structure
using std::priority_queue; // MaxPQ (MaxHeap) & Non-Iterable.
// // => Pass std::greater<> as template params to create MinPQ (MinHeap)
//----<stack>---------------//
using std::stack; // Non-Iterable & Use std::deque as underlying data structure
//----<iterator>------------//
using std::next; // Return an advanced iter without changing original iter
//----<utility>-------------//
using std::pair;
//----<algorithm>-----------//
using std::fill;
using std::max;
using std::min;
using std::find;
using std::reverse;
using std::sort;
//----<memory>--------------//
using std::make_shared;
using std::shared_ptr;
//----<cctype>--------------//
using std::isalnum;
using std::isalpha;
using std::islower;
using std::isupper;
using std::isdigit;
using std::isspace; // Check whether char is whitespace character (space, newline, tab, etc. )
using std::isblank; // Check whether char is blank character ( space or tab )
using std::tolower;
using std::toupper;
//----<stdexcept>-----------//
using std::runtime_error;
using std::invalid_argument;
using std::out_of_range;
//----<limits>--------------//
using std::numeric_limits;
//----<numeric>-------------//
using std::iota;
using std::gcd;
using std::lcm;
//--------------------------//
class Edge {
private:
int v = 0;
int w = 0;
double weight = numeric_limits< double >::infinity();
public:
Edge() {
// not implemented
}
Edge( int v, int w, double weight )
: v( v ),
w( w ),
weight( weight )
{
// not implemented
}
Edge( const Edge& e )
: v( e.v ),
w( e.w ),
weight( e.weight )
{
// not implemented
}
virtual ~Edge() {
// not implemented
}
int getEither() const {
return v;
}
int getOther( int vertex ) const {
if ( vertex == v ) {
return w;
} else if ( vertex == w ) {
return v;
} else {
throw invalid_argument( "Invalid vertex for edge : " + toString() );
}
}
double getWeight() const {
return weight;
}
friend bool operator <( const Edge& e1, const Edge& e2 ) {
return e1.weight < e2.weight;
}
friend bool operator >( const Edge& e1, const Edge& e2 ) {
return e1.weight > e2.weight;
}
operator bool() const {
return weight != numeric_limits< double >::infinity();
}
string toString() const {
ostringstream oss;
oss << *this;
return oss.str();
}
friend ostream& operator <<( ostream& out, const Edge& e ) {
out << fixed << setprecision( 2 );
out << " | " << e.v << " : " << e.w << " : " << e.weight << " | ";
return out;
}
};
class EdgeWeightedGraph {
private:
int V = 0;
int E = 0;
vector< forward_list< Edge > > adj;
public:
EdgeWeightedGraph( int V )
: V( V ),
adj( V )
{
// not implemented
}
virtual ~EdgeWeightedGraph() {
// not implemented
}
int getV() const {
return V;
}
int getE() const {
return E;
}
forward_list< Edge > getAdj( int v ) const {
return adj[ v ];
}
forward_list< Edge > getEdges() const {
forward_list< Edge > all;
for ( int v = 0; v < getV(); ++v ) {
for ( Edge e : getAdj( v ) ) {
if ( e.getOther( v ) > v ) {
all.push_front( e );
}
}
}
return all;
}
void addEdge( Edge e ) {
int v = e.getEither();
int w = e.getOther( v );
adj[ v ].push_front( e );
adj[ w ].push_front( e );
++E;
}
string toString() const {
ostringstream oss;
oss << *this;
return oss.str();
}
friend ostream& operator <<( ostream& out, const EdgeWeightedGraph& G ) {
out << "\n| V : " << G.getV() << " ; E : " << G.getE() << " ; adj : \n";
for ( int v = 0; v < G.getV(); ++v ) {
out << "\n| v : " << v << " : ";
for ( const Edge& e : G.getAdj( v ) ) {
out << e << ", ";
}
out << " | ";
}
return out;
}
};
template< typename Key >
class CircularDoublyLinkedList {
private:
class DoubleNode;
typedef shared_ptr< DoubleNode > DNodePtr;
DNodePtr newDNode( Key key ) {
return make_shared< DoubleNode >( key );
}
class DoubleNode {
public:
Key key;
DNodePtr prev = NULL;
DNodePtr next = NULL;
DoubleNode( Key key )
: key( key )
{
// not implemented
}
virtual ~DoubleNode() {
// not implemented
}
string toString() const {
ostringstream oss;
oss << *this;
return oss.str();
}
friend ostream& operator <<( ostream& out, const DoubleNode& h ) {
out << fixed << setprecision( 2 );
out << "\n| key : " << h.key;
if ( h.prev ) {
out << " ; prev : " << h.prev->key;
} else {
out << " ; prev : NULL";
}
if ( h.next ) {
out << " ; next : " << h.next->key;
} else {
out << " ; next : NULL";
}
out << " | ";
return out;
}
};
int N = 0;
int id = 0;
DNodePtr head = NULL;
public:
CircularDoublyLinkedList() {
// not implemented
}
CircularDoublyLinkedList( int id )
: id( id )
{
// not implemented
}
virtual ~CircularDoublyLinkedList() {
// not implemented
}
void setId( int newId ) {
this->id = newId;
}
int getId() const {
return id;
}
void addKey( Key key ) {
DNodePtr ptr = head;
if ( ! ptr ) {
head = newDNode( key );
} else {
if ( ptr->key == key ) {
return;
}
while ( ptr->next ) {
if ( ptr->key == key ) {
return;
}
if ( ptr->next->key == head->key ) {
break;
}
ptr = ptr->next;
}
ptr->next = newDNode( key );
ptr->next->next = head;
ptr->next->prev = ptr;
head->prev = ptr->next;
}
++N;
}
vector< Key > getKeys() const {
vector< Key > rvVec;
DNodePtr ptr = head;
while ( ptr ) {
rvVec.push_back( ptr->key );
ptr = ptr->next;
if ( ptr->key == head->key ) {
break;
}
}
return rvVec;
}
bool contains( const Key& key ) const {
DNodePtr ptr = head;
while ( ptr ) {
if ( ptr->key == key ) {
return true;
}
ptr = ptr->next;
if ( ptr->key == head->key ) {
break;
}
}
return false;
}
void deleteKey( const Key& key ) {
if ( ! contains( key ) ) throw runtime_error( "Invalid key" );
DNodePtr ptr = head;
while ( ptr ) {
if ( ptr->key == key ) {
if ( ptr->prev ) {
if ( ptr->prev->key == ptr->next->key ) {
head = ptr->prev;
ptr->next->prev = NULL;
ptr->prev->next = NULL;
ptr->next = NULL;
ptr->prev = NULL;
} else {
if ( ptr->prev->next->key != ptr->next->key ) {
ptr->prev->next = ptr->next;
} else {
ptr->prev->next = NULL;
}
if ( ptr->next->prev->key != ptr->prev->key ) {
ptr->next->prev = ptr->prev;
} else {
ptr->next->prev = NULL;
}
if ( head->key == ptr->key ) {
head = ptr->prev;
}
}
} else {
// ptr is the only node in the list
head = NULL;
}
--N;
break;
}
ptr = ptr->next;
if ( ptr && ptr->key == head->key ) {
break;
}
}
}
const Key * getHeadKey() const {
if ( head ) {
return &( head->key );
} else {
return NULL;
}
}
int size() const {
return N;
}
bool empty() const {
return size() == 0;
}
string toString() const {
ostringstream oss;
oss << *this;
return oss.str();
}
friend ostream& operator <<( ostream& out, const CircularDoublyLinkedList& cList ) {
DNodePtr ptr = cList.head;
out << "\n| size : " << cList.size() << " | " << endl;
while ( ptr ) {
out << *ptr << ", ";
ptr = ptr->next;
if ( ptr && ptr->key == cList.head->key ) {
out << *ptr << ", ";
break;
}
}
return out;
}
static void test() {
vector< int > intVec { 14, 12, 10, 8, 6, 4, 2, 0, 1, 3, 5, 7, 9, 11, 13 };
CircularDoublyLinkedList< int > cList;
for ( int i = 0; i < intVec.size(); ++i ) {
cList.addKey( intVec[ i ] );
}
cout << "DEBUG : cList : test() : " << endl;
cout << cList << endl;
for ( int i = 0; i < intVec.size(); ++i ) {
try {
cList.deleteKey( intVec[ i ] );
cout << "DEBUG: cList.deleteKey( " << intVec[ i ] << " ) : " << endl;
cout << cList << endl;
} catch ( const runtime_error& e ) {
cout << e.what() << " : " << intVec[ i ] << endl;
break;
}
}
}
};
class BoruvkaImprovedMST {
private:
queue< Edge > mst;
double weight = 0;
public:
BoruvkaImprovedMST( const EdgeWeightedGraph& G ) {
forward_list< Edge > edges = G.getEdges();
// Key is vertex, value is component Id
vector< shared_ptr< CircularDoublyLinkedList< int > > > listVec( G.getV() );
// WeightedQuickUnionUF uf( G.getV() );
for ( int stage = 1; stage < G.getV() && mst.size() < G.getV() - 1; stage = stage + stage ) {
vector< Edge > closestEdges( G.getV() );
for ( Edge e : edges ) {
int v = e.getEither();
int w = e.getOther( v );
int vId = listVec[ v ] ? listVec[ v ]->getId() : v;
int wId = listVec[ w ] ? listVec[ w ]->getId() : w;
// int vId = uf.find( v );
// int wId = uf.find( w );
if ( vId == wId ) {
continue;
}
if ( ! closestEdges[ vId ] || e < closestEdges[ vId ] ) {
closestEdges[ vId ] = e;
}
if ( ! closestEdges[ wId ] || e < closestEdges[ wId ] ) {
closestEdges[ wId ] = e;
}
}
for ( int v = 0; v < G.getV(); ++v ) {
Edge e = closestEdges[ v ];
if ( e ) {
int v = e.getEither();
int w = e.getOther( v );
if ( ! listVec[ v ] || ! listVec[ w ] || listVec[ v ]->getId() != listVec[ w ]->getId() ) {
mst.push( e );
weight += e.getWeight();
if ( ! listVec[ v ] && ! listVec[ w ] ) {
listVec[ v ] = make_shared< CircularDoublyLinkedList< int > >( v );
listVec[ w ] = listVec[ v ];
listVec[ v ]->addKey( v );
listVec[ v ]->addKey( w );
} else if ( ! listVec[ v ] ) {
listVec[ v ] = listVec[ w ];
listVec[ w ]->addKey( v );
} else if ( ! listVec[ w ] ) {
listVec[ w ] = listVec[ v ];
listVec[ v ]->addKey( w );
} else {
vector< int > keyVec = listVec[ w ]->getKeys();
for ( int key : keyVec ) {
listVec[ v ]->addKey( key );
}
for ( int key : keyVec ) {
listVec[ key ] = listVec[ v ];
}
}
// uf.doUnion( v, w );
}
}
}
}
}
virtual ~BoruvkaImprovedMST() {
// not implemented
}
double getWeight() const {
return weight;
}
queue< Edge > getEdges() const {
return mst;
}
string toString() const {
ostringstream oss;
oss << *this;
return oss.str();
}
friend ostream& operator <<( ostream& out, const BoruvkaImprovedMST& mst ) {
out << "\nmst:\n";
queue< Edge > q = mst.getEdges();
while ( ! q.empty() ) {
out << q.front() << ", ";
q.pop();
}
return out;
}
};
int main( int argc, char ** argv ) {
double graphArr[ 16 ][ 3 ] = {
{ 4, 5, 0.35 },
{ 4, 7, 0.37 },
{ 5, 7, 0.28 },
{ 0, 7, 0.16 },
{ 1, 5, 0.32 },
{ 0, 4, 0.38 },
{ 2, 3, 0.17 },
{ 1, 7, 0.19 },
{ 0, 2, 0.26 },
{ 1, 2, 0.36 },
{ 1, 3, 0.29 },
{ 2, 7, 0.34 },
{ 6, 2, 0.40 },
{ 3, 6, 0.52 },
{ 6, 0, 0.58 },
{ 6, 4, 0.93 }
};
EdgeWeightedGraph ewGraph( 8 );
for ( int i = 0; i < 16; ++i ) {
Edge e( (int)graphArr[ i ][ 0 ], (int)graphArr[ i ][ 1 ], graphArr[ i ][ 2 ] );
ewGraph.addEdge( e );
}
cout << "DEBUG: ewGraph: \n" << ewGraph.toString() << endl;
// CircularDoublyLinkedList< int, int >::test();
BoruvkaImprovedMST mst( ewGraph );
cout << "DEBUG: BoruvkaImprovedMST: \n" << mst << endl;
cout << "DEBUG: BoruvkaImprovedMST.getWeight(): \n" << mst.getWeight() << endl;
return 0;
}
|
; subroutine for reading the contents of a "struct sp1_pss" into registers
; 02.2008 aralbrec
; ts2068 hi-res version
PUBLIC SP1PSPOP
; enter : de = & string to print (or something else)
; hl = & struct sp1_pss to read
;
; exit : hl = address of string to print
; e = flags (bit 0 = invalidate?, bit 1 = xwrap?, bit 2 = yinc?, bit3 = ywrap?)
; b = current x coordinate (relative to bounds rect IY)
; c = current y coordinate (relative to bounds rect IY)
; de' = current struct sp1_update *
; ix = visit function
; iy = bounds rectangle
.SP1PSPOP
ld a,(hl)
ld iyl,a
inc hl
ld a,(hl)
ld iyh,a ; iy = & bounds rectangle
inc hl
ld a,(hl) ; a = flags
inc hl
ld b,(hl) ; b = x coordinate
inc hl
ld c,(hl) ; c = y coordinate
inc hl
push hl
ex de,hl ; hl = & string
ld e,a ; e = flags
exx
pop hl
ld e,(hl)
inc hl
ld d,(hl) ; de' = & struct sp1_update
inc hl
ld a,(hl)
ld ixl,a
inc hl
ld a,(hl)
ld ixh,a ; ix = visit function
exx
ret
|
/*
* Qt4 bitcoin GUI.
*
* W.J. van der Laan 2011-2012
* The Bitcoin Developers 2011-2013
*/
#include "walletstack.h"
#include "walletview.h"
#include "fluxgui.h"
#include <QMap>
#include <QMessageBox>
WalletStack::WalletStack(QWidget *parent) :
QStackedWidget(parent),
gui(0),
clientModel(0),
bOutOfSync(true)
{
setContentsMargins(0,0,0,0);
}
WalletStack::~WalletStack()
{
}
bool WalletStack::addWallet(const QString& name, WalletModel *walletModel)
{
if (!gui || !clientModel || mapWalletViews.count(name) > 0)
return false;
WalletView *walletView = new WalletView(this, gui);
walletView->setFluxGUI(gui);
walletView->setClientModel(clientModel);
walletView->setWalletModel(walletModel);
walletView->showOutOfSyncWarning(bOutOfSync);
addWidget(walletView);
mapWalletViews[name] = walletView;
// Ensure a walletView is able to show the main window
connect(walletView, SIGNAL(showNormalIfMinimized()), gui, SLOT(showNormalIfMinimized()));
return true;
}
bool WalletStack::removeWallet(const QString& name)
{
if (mapWalletViews.count(name) == 0) return false;
WalletView *walletView = mapWalletViews.take(name);
removeWidget(walletView);
return true;
}
void WalletStack::removeAllWallets()
{
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
removeWidget(i.value());
mapWalletViews.clear();
}
bool WalletStack::handleURI(const QString &uri)
{
WalletView *walletView = (WalletView*)currentWidget();
if (!walletView) return false;
return walletView->handleURI(uri);
}
void WalletStack::showOutOfSyncWarning(bool fShow)
{
bOutOfSync = fShow;
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
i.value()->showOutOfSyncWarning(fShow);
}
void WalletStack::gotoOverviewPage()
{
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
i.value()->gotoOverviewPage();
}
void WalletStack::gotoHistoryPage()
{
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
i.value()->gotoHistoryPage();
}
void WalletStack::gotoAddressBookPage()
{
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
i.value()->gotoAddressBookPage();
}
void WalletStack::gotoReceiveFluxPage()
{
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
i.value()->gotoReceiveFluxPage();
}
void WalletStack::gotoMiningPage()
{
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
i.value()->gotoMiningPage();
}
void WalletStack::gotoBlockExplorer()
{
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
i.value()->gotoBlockExplorer();
}
void WalletStack::gotoStatistics()
{
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
i.value()->gotoStatistics();
}
void WalletStack::gotoSendFluxPage(QString addr)
{
QMap<QString, WalletView*>::const_iterator i;
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
i.value()->gotoSendFluxPage(addr);
}
void WalletStack::gotoSignMessageTab(QString addr)
{
WalletView *walletView = (WalletView*)currentWidget();
if (walletView) walletView->gotoSignMessageTab(addr);
}
void WalletStack::gotoVerifyMessageTab(QString addr)
{
WalletView *walletView = (WalletView*)currentWidget();
if (walletView) walletView->gotoVerifyMessageTab(addr);
}
void WalletStack::encryptWallet(bool status)
{
WalletView *walletView = (WalletView*)currentWidget();
if (walletView) walletView->encryptWallet(status);
}
void WalletStack::backupWallet()
{
WalletView *walletView = (WalletView*)currentWidget();
if (walletView) walletView->backupWallet();
}
void WalletStack::changePassphrase()
{
WalletView *walletView = (WalletView*)currentWidget();
if (walletView) walletView->changePassphrase();
}
void WalletStack::unlockWallet()
{
WalletView *walletView = (WalletView*)currentWidget();
if (walletView) walletView->unlockWallet();
}
void WalletStack::setEncryptionStatus()
{
WalletView *walletView = (WalletView*)currentWidget();
if (walletView) walletView->setEncryptionStatus();
}
void WalletStack::setCurrentWallet(const QString& name)
{
if (mapWalletViews.count(name) == 0) return;
WalletView *walletView = mapWalletViews.value(name);
setCurrentWidget(walletView);
walletView->setEncryptionStatus();
}
|
; A137204: Decimal expansion of e + 1/e.
; Submitted by Jon Maiga
; 3,0,8,6,1,6,1,2,6,9,6,3,0,4,8,7,5,5,6,9,5,5,8,1,1,2,4,1,5,1,4,1,2,3,3,6,5,2,0,3,0,5,8,2,2,4,7,3,1,7,2,7,4,0,9,4,7,4,8,0,4,4,2,9,4,2,1,5,3,8,1,2,6,0,9,8,4,4,7,3,9,7,9,2,8,5,2,9,4,5,2,8,7,1,0,8,6,0,7,1
mov $1,1
mov $2,1
mov $3,$0
mul $3,5
sub $3,1
lpb $3
mul $1,$3
mov $4,$3
cmp $4,0
mov $5,$3
add $3,$4
div $1,$3
mul $5,2
add $5,1
mul $2,$5
add $1,$2
mov $5,$0
add $5,$0
mov $4,$5
cmp $4,0
add $5,$4
div $1,$5
div $1,$3
sub $5,$0
div $2,$5
sub $3,1
lpe
mul $1,2
mov $6,10
pow $6,$0
div $2,$6
div $1,$2
add $1,$6
mov $0,$1
mod $0,10
|
; uint in_Inkey(void)
; 05.2018 suborb
; Read current state of keyboard but only return
; keypress if a single key is pressed.
SECTION code_clib
PUBLIC in_Inkey
PUBLIC _in_Inkey
EXTERN in_keytranstbl
; exit : carry set and HL = 0 for no keys registered
; else HL = ASCII character code
; uses : AF,BC,DE,HL
.in_Inkey
._in_Inkey
ld de,0
ld bc,$fefe
in a,(c)
or $e3
cp $ff
jr nz, keyhitA
ld e,5
ld b,$fd
in a,(c)
or $e0
cp $ff
jr nz, keyhitA
ld e,10
ld b,$fb
in a,(c)
or $e0
cp $ff
jr nz, keyhitA
ld e,15
ld b,$f7
in a,(c)
or $e0
cp $ff
jr nz, keyhitA
ld e,20
ld b,$ef
in a,(c)
or $e0
cp $ff
jr nz, keyhitA
ld e,25
ld b,$df
in a,(c)
or $e0
cp $ff
jr nz, keyhitA
ld e,30
ld b,$bf
in a,(c)
or $e0
cp $ff
jr nz, keyhitA
ld e,35
ld b,$7f
in a,(c)
or $e0
cp $ff
ld c,a
jr nz, keyhitB
.nokey
ld hl,0
scf
ret
.keyhitA
ld c,a
ld a,b
cpl
or $81
in a,($fe)
or $e0
cp $ff
jr nz, nokey
ld a,$7f
in a,($fe)
or $e2
cp $ff
jr nz, nokey
.keyhitB
ld b,0
ld hl,rowtbl-$e0
add hl,bc
ld a,(hl)
cp 5
jr nc, nokey
add a,e
ld e,a
ld hl,in_keytranstbl
add hl,de
ld a,$fe
in a,($fe)
and $01
jr nz, nocaps
ld e,40
add hl,de
.nocaps
ld a,$fe
in a,($fe)
and $02
jr nz, nosym
ld e,80
add hl,de
.nosym
ld l,(hl)
ld h,0
ret
.rowtbl
defb 255,255,255,255,255,255,255
defb 255,255,255,255,255,255,255,255
defb 4,255,255,255,255,255,255
defb 255,3,255,255,255,2,255,1
defb 0,255
|
;++
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
; Licensed under the MIT License.
;
; Module Name:
;
; SgemmKernelM1Avx.asm
;
; Abstract:
;
; This module implements the kernels for the single precision matrix/matrix
; multiply operation (SGEMM). This handles the special case of M=1.
;
; This implementation uses AVX instructions.
;
;--
.xlist
INCLUDE mlasi.inc
.list
EXTERN MlasMaskMoveAvx:NEAR
;
; Stack frame layout for the SGEMM M=1 kernels.
;
SgemmKernelM1Frame STRUCT
SavedXmm6 OWORD ?
SavedXmm7 OWORD ?
SavedXmm8 OWORD ?
SavedRsi QWORD ?
SavedRbx QWORD ?
SavedRbp QWORD ?
ReturnAddress QWORD ?
PreviousP1Home QWORD ?
PreviousP2Home QWORD ?
PreviousP3Home QWORD ?
PreviousP4Home QWORD ?
CountN QWORD ?
ldb QWORD ?
Beta QWORD ?
SgemmKernelM1Frame ENDS
;++
;
; Routine Description:
;
; This routine is an inner kernel to compute matrix multiplication for a
; set of rows. This handles the special case of M=1.
;
; The elements in matrix B are not transposed.
;
; Arguments:
;
; A (rcx) - Supplies the address of matrix A.
;
; B (rdx) - Supplies the address of matrix B.
;
; C (r8) - Supplies the address of matrix C.
;
; CountK (r9) - Supplies the number of columns from matrix A and the number
; of rows from matrix B to iterate over.
;
; CountN - Supplies the number of columns from matrix B and matrix C to iterate
; over.
;
; ldb - Supplies the first dimension of matrix B.
;
; Beta - Supplies the scalar beta multiplier (see SGEMM definition).
;
; Return Value:
;
; None.
;
;--
NESTED_ENTRY MlasSgemmKernelM1Avx, _TEXT
rex_push_reg rbp
push_reg rbx
push_reg rsi
alloc_stack (SgemmKernelM1Frame.SavedRsi)
save_xmm128_avx xmm6,SgemmKernelM1Frame.SavedXmm6
save_xmm128_avx xmm7,SgemmKernelM1Frame.SavedXmm7
save_xmm128_avx xmm8,SgemmKernelM1Frame.SavedXmm8
END_PROLOGUE
mov rbx,SgemmKernelM1Frame.ldb[rsp]
shl rbx,2 ; convert ldb to bytes
mov r10,r8
mov r11,rdx
mov rbp,SgemmKernelM1Frame.CountN[rsp]
;
; Compute the initial results mask for zeroing or accumulate mode.
;
vxorps xmm0,xmm0,xmm0
vcmpeqss xmm0,xmm0,DWORD PTR SgemmKernelM1Frame.Beta[rsp]
vshufps xmm0,xmm0,xmm0,0
vinsertf128 ymm0,ymm0,xmm0,1
;
; Compute the conditional load/store mask for an unaligned CountN.
;
mov eax,ebp
and eax,7
vmovd xmm7,eax
vshufps xmm7,xmm7,xmm7,0
vpcmpgtd xmm6,xmm7,XMMWORD PTR [MlasMaskMoveAvx+16]
vpcmpgtd xmm7,xmm7,XMMWORD PTR [MlasMaskMoveAvx]
vinsertf128 ymm7,ymm7,xmm6,1
;
; Process 4 rows of the matrices in a loop.
;
sub r9,4
jb ProcessRemainingCountK
ProcessRowLoop4:
vbroadcastss ymm2,DWORD PTR [rcx]
mov rax,rbp ; reload CountN
vbroadcastss ymm3,DWORD PTR [rcx+4]
mov rdx,r11 ; reload matrix B
vbroadcastss ymm4,DWORD PTR [rcx+8]
mov r8,r10 ; reload matrix C
vbroadcastss ymm5,DWORD PTR [rcx+12]
add rcx,4*4 ; advance matrix A by 4 columns
lea r11,[rdx+rbx*4] ; advance matrix B by 4 rows
sub rax,16
jb ProcessRemainingCountN4
ProcessColumnLoop4:
lea rsi,[rdx+rbx*2] ; compute matrix B plus 2 rows
vmulps ymm1,ymm2,YMMWORD PTR [rdx]
vmulps ymm6,ymm2,YMMWORD PTR [rdx+32]
vmulps ymm8,ymm3,YMMWORD PTR [rdx+rbx]
vaddps ymm1,ymm1,ymm8
vmulps ymm8,ymm3,YMMWORD PTR [rdx+rbx+32]
vaddps ymm6,ymm6,ymm8
vmulps ymm8,ymm4,YMMWORD PTR [rsi]
vaddps ymm1,ymm1,ymm8
vmulps ymm8,ymm4,YMMWORD PTR [rsi+32]
vaddps ymm6,ymm6,ymm8
vmulps ymm8,ymm5,YMMWORD PTR [rsi+rbx]
vaddps ymm1,ymm1,ymm8
vmulps ymm8,ymm5,YMMWORD PTR [rsi+rbx+32]
vaddps ymm6,ymm6,ymm8
vandnps ymm8,ymm0,YMMWORD PTR [r8]
vaddps ymm1,ymm1,ymm8
vandnps ymm8,ymm0,YMMWORD PTR [r8+32]
vaddps ymm6,ymm6,ymm8
vmovups YMMWORD PTR [r8],ymm1
vmovups YMMWORD PTR [r8+32],ymm6
add rdx,16*4 ; advance matrix B by 16 columns
add r8,16*4 ; advance matrix C by 16 columns
sub rax,16
jae ProcessColumnLoop4
ProcessRemainingCountN4:
test al,15 ; test for unaligned columns
jz ProcessedRemainingCountN4
test al,8 ; CountN >= 8?
jz ProcessRemainingCountNSmall4
lea rsi,[rdx+rbx*2] ; compute matrix B plus 2 rows
vmulps ymm1,ymm2,YMMWORD PTR [rdx]
vmulps ymm8,ymm3,YMMWORD PTR [rdx+rbx]
vaddps ymm1,ymm1,ymm8
vmulps ymm8,ymm4,YMMWORD PTR [rsi]
vaddps ymm1,ymm1,ymm8
vmulps ymm8,ymm5,YMMWORD PTR [rsi+rbx]
vaddps ymm1,ymm1,ymm8
vandnps ymm8,ymm0,YMMWORD PTR [r8]
vaddps ymm1,ymm1,ymm8
vmovups YMMWORD PTR [r8],ymm1
add rdx,8*4 ; advance matrix B by 8 columns
add r8,8*4 ; advance matrix C by 8 columns
test al,7
jz ProcessedRemainingCountN4
ProcessRemainingCountNSmall4:
lea rsi,[rdx+rbx*2] ; compute matrix B plus 2 rows
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx]
vmulps ymm1,ymm2,ymm6
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx+rbx]
vmulps ymm8,ymm3,ymm6
vaddps ymm1,ymm1,ymm8
vmaskmovps ymm6,ymm7,YMMWORD PTR [rsi]
vmulps ymm8,ymm4,ymm6
vaddps ymm1,ymm1,ymm8
vmaskmovps ymm6,ymm7,YMMWORD PTR [rsi+rbx]
vmulps ymm8,ymm5,ymm6
vaddps ymm1,ymm1,ymm8
vmaskmovps ymm6,ymm7,YMMWORD PTR [r8]
vandnps ymm6,ymm0,ymm6
vaddps ymm1,ymm1,ymm6
vmaskmovps YMMWORD PTR [r8],ymm7,ymm1
ProcessedRemainingCountN4:
vxorps xmm0,xmm0,xmm0 ; switch to accumulate mode
sub r9,4
jae ProcessRowLoop4
ProcessRemainingCountK:
test r9d,2
jnz ProcessRowLoop2
test r9d,1
jnz ProcessRowLoop1
ExitKernel:
vzeroupper
vmovaps xmm6,SgemmKernelM1Frame.SavedXmm6[rsp]
vmovaps xmm7,SgemmKernelM1Frame.SavedXmm7[rsp]
vmovaps xmm8,SgemmKernelM1Frame.SavedXmm8[rsp]
add rsp,(SgemmKernelM1Frame.SavedRsi)
BEGIN_EPILOGUE
pop rsi
pop rbx
pop rbp
ret
;
; Process 2 rows of the matrices.
;
ProcessRowLoop2:
vbroadcastss ymm2,DWORD PTR [rcx]
mov rax,rbp ; reload CountN
vbroadcastss ymm3,DWORD PTR [rcx+4]
mov rdx,r11 ; reload matrix B
mov r8,r10 ; reload matrix C
add rcx,2*4 ; advance matrix A by 2 columns
lea r11,[rdx+rbx*2] ; advance matrix B by 2 rows
sub rax,8
jb ProcessRemainingCountN2
ProcessColumnLoop2:
vmulps ymm1,ymm2,YMMWORD PTR [rdx]
vmulps ymm8,ymm3,YMMWORD PTR [rdx+rbx]
vaddps ymm1,ymm1,ymm8
vandnps ymm6,ymm0,YMMWORD PTR [r8]
vaddps ymm1,ymm1,ymm6
vmovups YMMWORD PTR [r8],ymm1
add rdx,8*4 ; advance matrix B by 8 columns
add r8,8*4 ; advance matrix C by 8 columns
sub rax,8
jae ProcessColumnLoop2
ProcessRemainingCountN2:
test al,7 ; test for unaligned columns
jz ProcessedRemainingCountN2
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx]
vmulps ymm1,ymm2,ymm6
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx+rbx]
vmulps ymm8,ymm3,ymm6
vaddps ymm1,ymm1,ymm8
vmaskmovps ymm6,ymm7,YMMWORD PTR [r8]
vandnps ymm6,ymm0,ymm6
vaddps ymm1,ymm1,ymm6
vmaskmovps YMMWORD PTR [r8],ymm7,ymm1
ProcessedRemainingCountN2:
test r9d,1
jz ExitKernel
vxorps xmm0,xmm0,xmm0 ; switch to accumulate mode
;
; Process 1 row of the matrices.
;
ProcessRowLoop1:
vbroadcastss ymm2,DWORD PTR [rcx]
mov rax,rbp ; reload CountN
mov rdx,r11 ; reload matrix B
mov r8,r10 ; reload matrix C
sub rax,8
jb ProcessRemainingCountN1
ProcessColumnLoop1:
vmulps ymm1,ymm2,YMMWORD PTR [rdx]
vandnps ymm6,ymm0,YMMWORD PTR [r8]
vaddps ymm1,ymm1,ymm6
vmovups YMMWORD PTR [r8],ymm1
add rdx,8*4 ; advance matrix B by 8 columns
add r8,8*4 ; advance matrix C by 8 columns
sub rax,8
jae ProcessColumnLoop1
ProcessRemainingCountN1:
test al,7 ; test for unaligned columns
jz ExitKernel
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx]
vmulps ymm1,ymm2,ymm6
vmaskmovps ymm6,ymm7,YMMWORD PTR [r8]
vandnps ymm6,ymm0,ymm6
vaddps ymm1,ymm1,ymm6
vmaskmovps YMMWORD PTR [r8],ymm7,ymm1
jmp ExitKernel
NESTED_END MlasSgemmKernelM1Avx, _TEXT
;++
;
; Routine Description:
;
; This routine is an inner kernel to compute matrix multiplication for a
; set of rows. This handles the special case of M=1.
;
; The elements in matrix B are transposed.
;
; Arguments:
;
; A (rcx) - Supplies the address of matrix A.
;
; B (rdx) - Supplies the address of matrix B. The elements are transposed.
;
; C (r8) - Supplies the address of matrix C.
;
; CountK (r9) - Supplies the number of columns from matrix A and the number
; of columns from matrix B to iterate over.
;
; CountN - Supplies the number of rows from matrix B and the number of columns
; from matrix C to iterate over.
;
; ldb - Supplies the first dimension of matrix B.
;
; Beta - Supplies the scalar beta multiplier (see SGEMM definition).
;
; Return Value:
;
; None.
;
;--
NESTED_ENTRY MlasSgemmKernelM1TransposeBAvx, _TEXT
rex_push_reg rbp
push_reg rbx
push_reg rsi
alloc_stack (SgemmKernelM1Frame.SavedRsi)
save_xmm128_avx xmm6,SgemmKernelM1Frame.SavedXmm6
save_xmm128_avx xmm7,SgemmKernelM1Frame.SavedXmm7
END_PROLOGUE
mov rbx,SgemmKernelM1Frame.ldb[rsp]
shl rbx,2 ; convert ldb to bytes
mov r10,rcx
mov r11,rdx
mov rbp,SgemmKernelM1Frame.CountN[rsp]
;
; Compute the results mask for zeroing or accumulate mode.
;
vxorps xmm0,xmm0,xmm0
vcmpeqss xmm0,xmm0,DWORD PTR SgemmKernelM1Frame.Beta[rsp]
vshufps xmm0,xmm0,xmm0,0
;
; Compute the conditional load/store mask for an unaligned CountK.
;
mov eax,r9d
and eax,7
vmovd xmm7,eax
vshufps xmm7,xmm7,xmm7,0
vpcmpgtd xmm6,xmm7,XMMWORD PTR [MlasMaskMoveAvx+16]
vpcmpgtd xmm7,xmm7,XMMWORD PTR [MlasMaskMoveAvx]
vinsertf128 ymm7,ymm7,xmm6,1
;
; Process 4 rows of the matrices in a loop.
;
sub rbp,4
jb ProcessRemainingCountN
ProcessRowLoop4:
vxorps xmm2,xmm2,xmm2 ; clear row accumulators
vxorps xmm3,xmm3,xmm3
vxorps xmm4,xmm4,xmm4
vxorps xmm5,xmm5,xmm5
mov rcx,r10 ; reload matrix A
mov rdx,r11 ; reload matrix B
mov rax,r9 ; reload CountK
lea r11,[rdx+rbx*4] ; advance matrix B by 4 rows
sub rax,8
jb ProcessRemainingCountK4
ProcessColumnLoop4:
lea rsi,[rdx+rbx*2] ; compute matrix B plus 2 rows
vmovups ymm1,YMMWORD PTR [rcx]
vmulps ymm6,ymm1,YMMWORD PTR [rdx]
vaddps ymm2,ymm2,ymm6
vmulps ymm6,ymm1,YMMWORD PTR [rdx+rbx]
vaddps ymm3,ymm3,ymm6
vmulps ymm6,ymm1,YMMWORD PTR [rsi]
vaddps ymm4,ymm4,ymm6
vmulps ymm6,ymm1,YMMWORD PTR [rsi+rbx]
vaddps ymm5,ymm5,ymm6
add rcx,8*4 ; advance matrix A by 8 columns
add rdx,8*4 ; advance matrix B by 8 columns
sub rax,8
jae ProcessColumnLoop4
ProcessRemainingCountK4:
test al,7 ; test for unaligned columns
jz Output4x1Block
lea rsi,[rdx+rbx*2] ; compute matrix B plus 2 rows
vmaskmovps ymm1,ymm7,YMMWORD PTR [rcx]
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx]
vmulps ymm6,ymm1,ymm6
vaddps ymm2,ymm2,ymm6
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx+rbx]
vmulps ymm6,ymm1,ymm6
vaddps ymm3,ymm3,ymm6
vmaskmovps ymm6,ymm7,YMMWORD PTR [rsi]
vmulps ymm6,ymm1,ymm6
vaddps ymm4,ymm4,ymm6
vmaskmovps ymm6,ymm7,YMMWORD PTR [rsi+rbx]
vmulps ymm6,ymm1,ymm6
vaddps ymm5,ymm5,ymm6
;
; Reduce and output the row accumulators.
;
Output4x1Block:
vunpcklps ymm6,ymm2,ymm3 ; transpose row accumulators
vunpckhps ymm1,ymm2,ymm3
vunpcklps ymm2,ymm4,ymm5
vunpckhps ymm3,ymm4,ymm5
vunpcklpd ymm4,ymm6,ymm2
vunpckhpd ymm5,ymm6,ymm2
vaddps ymm4,ymm4,ymm5
vunpcklpd ymm6,ymm1,ymm3
vunpckhpd ymm2,ymm1,ymm3
vaddps ymm4,ymm4,ymm6
vaddps ymm4,ymm4,ymm2
vextractf128 xmm5,ymm4,1
vaddps xmm4,xmm4,xmm5
vandnps xmm6,xmm0,XMMWORD PTR [r8]
vaddps xmm4,xmm4,xmm6
vmovups XMMWORD PTR [r8],xmm4
add r8,4*4 ; advance matrix C by 4 columns
sub rbp,4
jae ProcessRowLoop4
ProcessRemainingCountN:
test ebp,2
jnz ProcessRowLoop2
test ebp,1
jnz ProcessRowLoop1
ExitKernel:
vzeroupper
vmovaps xmm6,SgemmKernelM1Frame.SavedXmm6[rsp]
vmovaps xmm7,SgemmKernelM1Frame.SavedXmm7[rsp]
add rsp,(SgemmKernelM1Frame.SavedRsi)
BEGIN_EPILOGUE
pop rsi
pop rbx
pop rbp
ret
;
; Process 2 rows of the matrices.
;
ProcessRowLoop2:
vxorps xmm2,xmm2,xmm2 ; clear row accumulators
vxorps xmm3,xmm3,xmm3
mov rcx,r10 ; reload matrix A
mov rdx,r11 ; reload matrix B
mov rax,r9 ; reload CountK
lea r11,[rdx+rbx*2] ; advance matrix B by 2 rows
sub rax,8
jb ProcessRemainingCountK2
ProcessColumnLoop2:
vmovups ymm1,YMMWORD PTR [rcx]
vmulps ymm6,ymm1,YMMWORD PTR [rdx]
vaddps ymm2,ymm2,ymm6
vmulps ymm6,ymm1,YMMWORD PTR [rdx+rbx]
vaddps ymm3,ymm3,ymm6
add rcx,8*4 ; advance matrix A by 8 columns
add rdx,8*4 ; advance matrix B by 8 columns
sub rax,8
jae ProcessColumnLoop2
ProcessRemainingCountK2:
test al,7 ; test for unaligned columns
jz Output2x1Block
vmaskmovps ymm1,ymm7,YMMWORD PTR [rcx]
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx]
vmulps ymm6,ymm1,ymm6
vaddps ymm2,ymm2,ymm6
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx+rbx]
vmulps ymm6,ymm1,ymm6
vaddps ymm3,ymm3,ymm6
;
; Reduce and output the row accumulators.
;
Output2x1Block:
vunpcklps ymm4,ymm2,ymm3 ; reduce row accumulators
vunpckhps ymm2,ymm2,ymm3
vaddps ymm2,ymm2,ymm4
vextractf128 xmm4,ymm2,1
vaddps xmm2,xmm2,xmm4
vmovhlps xmm4,xmm2,xmm2
vaddps xmm2,xmm2,xmm4
vmovsd xmm3,QWORD PTR [r8]
vandnps xmm3,xmm0,xmm3
vaddps xmm2,xmm2,xmm3
vmovsd QWORD PTR [r8],xmm2
add r8,2*4 ; advance matrix C by 2 columns
test ebp,1
jz ExitKernel
;
; Process 1 row of the matrices.
;
ProcessRowLoop1:
vxorps xmm2,xmm2,xmm2 ; clear row accumulators
mov rcx,r10 ; reload matrix A
mov rdx,r11 ; reload matrix B
mov rax,r9 ; reload CountK
sub rax,8
jb ProcessRemainingCountK1
ProcessColumnLoop1:
vmovups ymm1,YMMWORD PTR [rcx]
vmulps ymm6,ymm1,YMMWORD PTR [rdx]
vaddps ymm2,ymm2,ymm6
add rcx,8*4 ; advance matrix A by 8 columns
add rdx,8*4 ; advance matrix B by 8 columns
sub rax,8
jae ProcessColumnLoop1
ProcessRemainingCountK1:
test al,7 ; test for unaligned columns
jz Output1x1Block
vmaskmovps ymm1,ymm7,YMMWORD PTR [rcx]
vmaskmovps ymm6,ymm7,YMMWORD PTR [rdx]
vmulps ymm6,ymm1,ymm6
vaddps ymm2,ymm2,ymm6
;
; Reduce and output the row accumulators.
;
Output1x1Block:
vhaddps ymm2,ymm2,ymm2 ; reduce row accumulators
vhaddps ymm2,ymm2,ymm2
vextractf128 xmm4,ymm2,1
vaddss xmm2,xmm2,xmm4
vmovss xmm3,DWORD PTR [r8]
vandnps xmm3,xmm0,xmm3
vaddss xmm2,xmm2,xmm3
vmovss DWORD PTR [r8],xmm2
jmp ExitKernel
NESTED_END MlasSgemmKernelM1TransposeBAvx, _TEXT
END
|
; A152032: a(n) = 3/8+(3/8)*(-1)^n+((n+1)/4)*(-1)^(n+1)+((n+2)*(n+1)/4)*(-1)^(n+2).
; 1,-1,3,-4,7,-9,13,-16,21,-25,31,-36,43,-49,57,-64,73,-81,91,-100,111,-121,133,-144,157,-169,183,-196,211,-225,241,-256,273,-289,307,-324,343,-361,381,-400,421,-441,463,-484,507,-529,553,-576,601,-625,651
mov $3,$0
pow $0,2
add $0,1
mov $1,$0
sub $0,1
add $1,$3
lpb $0
sub $0,1
div $2,74
sub $2,1
div $1,$2
add $1,$0
lpe
sub $1,1
div $1,2
add $1,1
|
;
; Colour Genie EG2000 graphics routines
; Fast background restore
;
;
; $Id: bkrestore.asm $
;
SECTION code_clib
PUBLIC bkrestore
PUBLIC _bkrestore
EXTERN pixeladdress
EXTERN __graphics_end
.bkrestore
._bkrestore
; __FASTCALL__ : sprite ptr in HL
push ix ;save callers
push hl
pop ix
ld h,(ix+2) ; restore sprite position
ld l,(ix+3)
ld a,(ix+0)
ld b,(ix+1)
cp 9
jr nc,bkrestore
._sloop
push bc
push hl
ld a,(ix+4)
and @10101010
ld (hl),a
inc hl
ld a,(ix+4)
and @01010101
rla
ld (hl),a
inc hl
ld a,(ix+5)
and @10101010
ld (hl),a
inc hl
ld a,(ix+5)
and @01010101
rla
ld (hl),a
inc hl
inc ix
inc ix
pop hl
ld bc,40 ;Go to next line
add hl,bc
pop bc
djnz _sloop
jp __graphics_end
.bkrestorew
push bc
ld a,(ix+4)
and @10101010
ld (hl),a
inc hl
ld a,(ix+4)
and @01010101
rla
ld (hl),a
inc hl
ld a,(ix+5)
and @10101010
ld (hl),a
inc hl
ld a,(ix+5)
and @01010101
rla
ld (hl),a
inc hl
ld a,(ix+6)
and @10101010
ld (hl),a
inc hl
ld a,(ix+6)
and @01010101
rla
ld (hl),a
inc ix
inc ix
inc ix
pop hl
ld bc,40 ;Go to next line
add hl,bc
pop bc
djnz bkrestorew
jp __graphics_end
|
tilecoll WALL, WALL, WALL, WALL ; 00
tilecoll STAIRCASE, WALL, FLOOR, FLOOR ; 01
tilecoll WALL, STAIRCASE, FLOOR, FLOOR ; 02
tilecoll WALL, WALL, FLOOR, FLOOR ; 03
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 04
tilecoll STAIRCASE, WALL, FLOOR, FLOOR ; 05
tilecoll FLOOR, FLOOR, FLOOR, WARP_CARPET_DOWN ; 06
tilecoll WALL, FLOOR, WALL, FLOOR ; 07
tilecoll WALL, WALL, FLOOR, COUNTER ; 08
tilecoll WALL, WALL, FLOOR, FLOOR ; 09
tilecoll WALL, WALL, COUNTER, FLOOR ; 0a
tilecoll WALL, FLOOR, WALL, FLOOR ; 0b
tilecoll FLOOR, COUNTER, FLOOR, FLOOR ; 0c
tilecoll COUNTER, COUNTER, FLOOR, FLOOR ; 0d
tilecoll COUNTER, FLOOR, FLOOR, FLOOR ; 0e
tilecoll FLOOR, WALL, WALL, WALL ; 0f
tilecoll COUNTER, COUNTER, COUNTER, FLOOR ; 10
tilecoll COUNTER, COUNTER, FLOOR, FLOOR ; 11
tilecoll FLOOR, MART_SHELF, FLOOR, MART_SHELF ; 12
tilecoll WALL, WALL, MART_SHELF, MART_SHELF ; 13
tilecoll WALL, WALL, MART_SHELF, MART_SHELF ; 14
tilecoll WALL, WALL, MART_SHELF, MART_SHELF ; 15
tilecoll WALL, WALL, FLOOR, FLOOR ; 16
tilecoll WALL, WALL, FLOOR, COUNTER ; 17
tilecoll STAIRCASE, WALL, FLOOR, FLOOR ; 18
tilecoll WALL, STAIRCASE, FLOOR, FLOOR ; 19
tilecoll COUNTER, COUNTER, COUNTER, FLOOR ; 1a
tilecoll COUNTER, COUNTER, FLOOR, COUNTER ; 1b
tilecoll WALL, WALL, WALL, WALL ; 1c
tilecoll WALL, WALL, WALL, WALL ; 1d
tilecoll FLOOR, WARP_CARPET_RIGHT, FLOOR, WARP_CARPET_RIGHT ; 1e
tilecoll WARP_CARPET_LEFT, FLOOR, WARP_CARPET_LEFT, FLOOR ; 1f
tilecoll FLOOR, WALL, FLOOR, WALL ; 20
tilecoll WALL, WALL, WALL, WALL ; 21
tilecoll COUNTER, FLOOR, COUNTER, FLOOR ; 22
tilecoll FLOOR, MART_SHELF, FLOOR, MART_SHELF ; 23
tilecoll WALL, WALL, WALL, WALL ; 24
tilecoll FLOOR, FLOOR, WARP_CARPET_DOWN, FLOOR ; 25
tilecoll WALL, WALL, FLOOR, FLOOR ; 26
tilecoll WALL, WALL, COUNTER, MART_SHELF ; 27
tilecoll FLOOR, MART_SHELF, FLOOR, MART_SHELF ; 28
tilecoll WALL, FLOOR, FLOOR, FLOOR ; 29
tilecoll FLOOR, FLOOR, WARP_CARPET_DOWN, WARP_CARPET_DOWN ; 2a
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 2b
tilecoll COUNTER, COUNTER, FLOOR, MART_SHELF ; 2c
tilecoll FLOOR, MART_SHELF, COUNTER, COUNTER ; 2d
tilecoll COUNTER, FLOOR, COUNTER, COUNTER ; 2e
tilecoll WALL, STAIRCASE, FLOOR, FLOOR ; 2f
tilecoll WALL, WALL, WALL, WALL ; 30
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 31
tilecoll WALL, WALL, WALL, WALL ; 32
tilecoll WALL, FLOOR, WALL, WALL ; 33
tilecoll FLOOR, FLOOR, WALL, WALL ; 34
tilecoll FLOOR, WALL, WALL, WALL ; 35
tilecoll FLOOR, WALL, FLOOR, WALL ; 36
tilecoll FLOOR, WALL, FLOOR, WALL ; 37
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 38
tilecoll FLOOR, FLOOR, FLOOR, STAIRCASE ; 39
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 3a
tilecoll WALL, WALL, WALL, WALL ; 3b
tilecoll WALL, WALL, WALL, WALL ; 3c
tilecoll WALL, WALL, WALL, WALL ; 3d
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 3e
tilecoll WALL, WALL, WALL, WALL ; 3f
|
segment .text
align 4
global _main:function
_main:
align 4
xpl:
push ebp
mov ebp, esp
sub esp, 4
push dword 0
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
push dword 10
call printi
add esp, 4
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
pop eax
leave
ret
extern argc
extern argv
extern envp
extern readi
extern readd
extern printi
extern prints
extern printd
extern println
|
; A126900: Coordination sequence for 6-dimensional cyclotomic lattice Z[zeta_18].
; 1,18,144,702,2448,6786,15984,33390,63648,112914,189072,301950,463536,688194,992880,1397358,1924416,2600082,3453840,4518846,5832144,7434882,9372528,11695086,14457312,17718930,21544848,26005374,31176432,37139778,43983216
seq $0,60446 ; Number of ways to color vertices of a pentagon using <= n colors, allowing rotations and reflections.
mov $3,36
mul $3,$0
mov $0,$3
mov $3,2
sub $3,$0
pow $0,2
sub $2,$3
add $2,3
div $0,$2
div $0,2
add $0,1
|
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "tensorflow/c/eager/c_api.h"
#include <vector>
#include "tensorflow/c/c_api.h"
#include "tensorflow/c/eager/c_api_internal.h"
#ifdef TENSORFLOW_EAGER_USE_XLA
#include "tensorflow/compiler/jit/xla_device.h"
#endif // TENSORFLOW_EAGER_USE_XLA
using tensorflow::int64;
using tensorflow::string;
namespace {
std::vector<int64> TensorShapeAsVector(TFE_TensorHandle* handle,
TF_Status* status) {
std::vector<int64> shape;
int rank = TFE_TensorHandleNumDims(handle, status);
if (!status->status.ok()) {
return shape;
}
shape.reserve(rank);
for (int i = 0; i < rank; ++i) {
shape.push_back(TFE_TensorHandleDim(handle, i, status));
if (!status->status.ok()) {
return shape;
}
}
return shape;
}
} // namespace
extern "C" {
TF_CAPI_EXPORT extern TFE_TensorDebugInfo* TFE_TensorHandleTensorDebugInfo(
TFE_TensorHandle* handle, TF_Status* status) {
const tensorflow::Tensor* tensor;
status->status = handle->handle->Tensor(&tensor);
if (!status->status.ok()) {
return nullptr;
}
#ifdef TENSORFLOW_EAGER_USE_XLA
tensorflow::Device* device = handle->handle->device();
// If tensor resides on an XLA device, use XLA device's PaddedShapeFn.
tensorflow::XlaDevice* xla_device =
dynamic_cast<tensorflow::XlaDevice*>(device);
if (xla_device != nullptr) {
tensorflow::XlaDevice::PaddedShapeFn shape_fn =
xla_device->metadata().padded_shape_fn();
xla::Shape padded_shape;
status->status = shape_fn(*tensor, &padded_shape);
if (!status->status.ok()) {
return nullptr;
}
if (VLOG_IS_ON(3)) {
std::vector<int64> shape_to_log = TensorShapeAsVector(handle, status);
if (!status->status.ok()) {
// Ignore the status here as we are simply logging.
status->status = tensorflow::Status::OK();
} else {
VLOG(3) << "Fully padded shape of ["
<< tensorflow::str_util::Join(shape_to_log, ", ") << "] is "
<< padded_shape.DebugString();
}
}
if (padded_shape.IsTuple()) {
if (xla::ShapeUtil::TupleElementCount(padded_shape) != 2) {
// Currently, the only case of XlaTensor containing a tuple shape is to
// represent 64 bit ints, doubles, and complex numbers (we don't support
// 64bit complex numbers).
status->status = tensorflow::errors::InvalidArgument(
"XlaTensors should only contain tuples of size 2. Shape: ",
padded_shape.DebugString());
return nullptr;
}
// shape0 is not a const& because we will assign it to padded_shape below.
// It is illegal to assign a part of a message to itself.
xla::Shape shape0 = xla::ShapeUtil::GetTupleElementShape(padded_shape, 0);
const xla::Shape& shape1 =
xla::ShapeUtil::GetTupleElementShape(padded_shape, 1);
if (shape0.IsTuple() || shape1.IsTuple()) {
status->status = tensorflow::errors::InvalidArgument(
"XlaTensors should not contain nested tuples. Shape: ",
padded_shape.DebugString());
return nullptr;
}
if (!xla::ShapeUtil::Equal(shape0, shape1)) {
status->status = tensorflow::errors::InvalidArgument(
"Subshapes of XlaTensors should be the same. Shape: ",
padded_shape.DebugString());
return nullptr;
}
// Since the only case we handle here are two equal subshapes, we
// simply return one of them. The caller will interpret it as this
// shape directly storing the 64bit types. This approximation is good
// enough for this API's debugging use case.
padded_shape = shape0;
}
int rank = padded_shape.dimensions_size();
std::vector<int64> dev_dims;
dev_dims.reserve(rank);
if (rank == 1) {
// Rank 1 tensors might not have padded_shape.layout.minor_to_major set,
dev_dims.push_back(padded_shape.dimensions(0));
} else {
for (int i = rank - 1; i >= 0; --i) {
int64 dim_index = padded_shape.layout().minor_to_major(i);
dev_dims.push_back(padded_shape.dimensions(dim_index));
}
}
status->status = tensorflow::Status::OK();
return new TFE_TensorDebugInfo(dev_dims);
}
#endif // TENSORFLOW_EAGER_USE_XLA
// If the tensor is not an XLA tensor, the device shape is
// the same as regular tensor shape.
std::vector<int64> dev_dims = TensorShapeAsVector(handle, status);
if (!status->status.ok()) {
return nullptr;
}
return new TFE_TensorDebugInfo(dev_dims);
}
TF_CAPI_EXPORT extern void TFE_DeleteTensorDebugInfo(
TFE_TensorDebugInfo* debug_info) {
delete debug_info;
}
TF_CAPI_EXPORT extern int TFE_TensorDebugInfoOnDeviceNumDims(
TFE_TensorDebugInfo* debug_info) {
return debug_info->dev_dims.size();
}
TF_CAPI_EXPORT extern int64_t TFE_TensorDebugInfoOnDeviceDim(
TFE_TensorDebugInfo* debug_info, int dim_index) {
return debug_info->dev_dims[dim_index];
}
} // extern "C"
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x1c4d7, %rcx
nop
cmp %r9, %r9
movups (%rcx), %xmm6
vpextrq $1, %xmm6, %r8
nop
nop
nop
nop
and %r11, %r11
lea addresses_WC_ht+0x9117, %r13
nop
nop
nop
inc %rsi
movups (%r13), %xmm5
vpextrq $1, %xmm5, %rdi
nop
nop
nop
and $50962, %r11
lea addresses_WT_ht+0x1cce7, %rsi
lea addresses_WC_ht+0x1bd97, %rdi
clflush (%rsi)
nop
nop
lfence
mov $112, %rcx
rep movsw
and $57180, %r11
lea addresses_UC_ht+0x9517, %rsi
lea addresses_UC_ht+0xdc97, %rdi
clflush (%rsi)
nop
nop
cmp %r8, %r8
mov $77, %rcx
rep movsq
sub $25243, %r9
lea addresses_normal_ht+0x3297, %rsi
add $564, %rcx
mov (%rsi), %r8d
nop
nop
nop
nop
nop
xor $14338, %rcx
lea addresses_WT_ht+0x1e8d7, %rsi
lea addresses_WT_ht+0x19397, %rdi
clflush (%rdi)
nop
sub $11059, %rax
mov $102, %rcx
rep movsw
dec %rdi
lea addresses_UC_ht+0xdbc7, %rsi
lea addresses_A_ht+0xbb17, %rdi
clflush (%rsi)
nop
and $22789, %rax
mov $122, %rcx
rep movsq
nop
xor $6414, %rcx
lea addresses_WT_ht+0x16717, %rsi
nop
nop
and %r9, %r9
movups (%rsi), %xmm6
vpextrq $1, %xmm6, %rdi
add %r8, %r8
lea addresses_normal_ht+0x10967, %r11
nop
nop
cmp $2688, %rcx
mov $0x6162636465666768, %r13
movq %r13, %xmm6
and $0xffffffffffffffc0, %r11
movaps %xmm6, (%r11)
xor %rcx, %rcx
lea addresses_UC_ht+0x1eabf, %rax
nop
nop
nop
nop
xor $21277, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
vmovups %ymm3, (%rax)
nop
nop
nop
sub $5906, %r8
lea addresses_normal_ht+0x87e7, %rsi
lea addresses_A_ht+0x12297, %rdi
add %rax, %rax
mov $33, %rcx
rep movsw
nop
nop
sub $40272, %r13
lea addresses_WT_ht+0x917, %rsi
lea addresses_D_ht+0x1117, %rdi
nop
nop
nop
nop
nop
sub %rax, %rax
mov $10, %rcx
rep movsq
nop
nop
nop
nop
cmp $22441, %r11
lea addresses_normal_ht+0x1bfd7, %r8
nop
nop
nop
add $18160, %rsi
movl $0x61626364, (%r8)
nop
nop
nop
and %r8, %r8
lea addresses_A_ht+0x1e997, %r11
nop
nop
nop
dec %rax
movb $0x61, (%r11)
nop
nop
nop
cmp $2293, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r8
push %r9
push %rbx
push %rdx
push %rsi
// Store
lea addresses_UC+0x4af, %rbx
nop
nop
cmp %rdx, %rdx
movw $0x5152, (%rbx)
nop
xor $27435, %r15
// Faulty Load
mov $0x2db3b20000000117, %rsi
nop
nop
and $35799, %r8
vmovups (%rsi), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r15
lea oracles, %r8
and $0xff, %r15
shlq $12, %r15
mov (%r8,%r15,1), %r15
pop %rsi
pop %rdx
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 8, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_UC'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': True, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 1, 'NT': True, 'type': 'addresses_A_ht'}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
;===============================================================================
; Copyright 2020-2021 Intel Corporation
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;===============================================================================
%include "asmdefs.inc"
%include "ia_32e.inc"
%if (_IPP32E >= _IPP32E_K0)
%define GCM192_MODE 1
;; single buffer implementation
%include "gcm_vaes_avx512.inc"
%endif
|
; A130818: Decimal expansion of number whose Engel expansion is the sequence of squares, that is, 1, 4, 9, 16,...
; 1,2,7,9,5,8,5,3,0,2,3,3,6,0,6,7,2,6,7,4,3,7,2,0,4,4,4,0,8,1,1,5,3,3,3,5,3,2,8,5,8,4,1,1,0,2,7,8,5,4,5,9,0,5,4,0,7,0,8,3,9,7,5,1,6,6,4,3,0,5,3,4,3,2,3,2,6,7,6,3,4,2,7,2,9,5,1,7,0,8,8,5,5,6,4,8,5,8,9,8
mov $2,1
mov $3,$0
mul $3,5
mov $4,$0
lpb $3
mul $2,$3
mov $7,$3
cmp $7,0
add $3,$7
div $1,$3
add $1,$2
mov $5,$4
div $5,3
mov $7,$5
cmp $7,0
add $5,$7
div $1,$5
div $2,$5
sub $3,1
lpe
mov $6,10
pow $6,$0
div $2,$6
div $1,$2
add $1,$6
mod $1,10
mov $0,$1
|
org 100h
include "emu8086.inc"
.model small
.stack 100h
.data
.code
main proc
call multiplication
mov ah,4ch
int 21h
main endp
DEFINE_SCAN_NUM
DEFINE_PRINT_NUM
DEFINE_PRINT_NUM_UNS
DEFINE_PRINT_STRING
multiplication proc
print " First number : "
mov ah,1
int 21h
mov bl,al
sub bl,48
printn
print " Second Number : "
int 21h
mov cl,al
sub cl,48
printn
;multi
mov dl,0 ; to store sum
for:
cmp cl,0
je end_for
shr cl,1
jnc check
add dl,bl
check:
shl bl,1
jmp for
end_for:
;output
mov ah,2
int 21h
ret
multiplication endp
end main
ret |
; TITLE TTY - TTY output routine for MSHERC.
;***
;TTY
;
; Copyright <C> 1987, 1988, Microsoft Corporation
;
;Purpose:
; TTY output routine for MSHERC.
;
;******************************************************************************
include hgcdefs.inc
code segment para public 'code'
assume cs:code,ds:code
Extrn GScrollUp:near
Extrn WriteGrChar:near
Extrn SetCursor:near
Extrn Old_Int10h_Routine:dword ;Segment:Offset of previous INT 10H
Public WriteTTY
;-------------------------------------------------------------------------------
; E WRITE TELETYPE TO ACTIVE PAGE
; AL => Character
; BL => Color
;-------------------------------------------------------------------------------
WriteTTY proc near
mov cl,bl ;save attr
;------Fetch the current cursor position-------
xor bx,bx
mov bl,es:BIOSPAGE
shl bx,1
mov dx,es:BIOSCURS[bx]
;----- Check for special characters -------
cmp al,Bell ;Is char a bell?
jz ExecBell ;Yes, execute a Bell
cmp al,BackSpace ;Is char a backspace?
jz ExecBackSpace ;Yes, execute a BackSpace
cmp al,LineFeed ;Is char a line feed?
jz ExecLineFeed ;Yes, execute a LineFeed
cmp al,CarriageReturn ;Is char a carriage return?
jz ExecCarriageReturn ;Yes, execute a carriage return
;-----Not a special character so write it to screen-----
mov bl,cl ;use attr
mov cx,1 ;Char Cnt = 1
mov bh,es:BIOSPAGE ;use active page
Call WriteGrChar ;Write char at current cursor pos
;------Fetch the current cursor position-------
xor bx,bx
mov bl,es:BIOSPAGE
shl bx,1
mov dx,es:BIOSCURS[bx]
;----- Advance and Check Cursor Position-------
inc dl ;Increment the cursor column position
cmp dl,80 ;End of Row?
jge GotoNextLine ;Yes, go to next row
;----- Update the cursor and exit-------
SetCursorAndExit:
mov bh,es:BIOSPAGE
Call SetCursor ;set the cursor to new position
jmp FiniTTY ;exit
;----- Routines for special cases------
ExecBell:
mov ah,14 ;Write TTY request for orig INT 10
pushf ;so original INT 10 can IRET
Call Old_Int10h_Routine ;let it BEEP for us
jmp FiniTTY ;Finished
ExecBackSpace:
cmp dl,0 ;Beginning of line?
jz FiniTTY ;Yes, do nothing
dec dl ;No, set cursor to
jmp SetCursorAndExit ;previous column, then exit
ExecCarriageReturn:
xor dl,dl ;Set cursor at first column in line
jmp SetCursorAndExit ;and then exit
ExecLineFeed:
mov cx,25 ;Fetch # of rows on screen
dec cl
cmp dh,cl ;Is cursor on the last line?
jz ScrollTheScreen ;Yes, then scroll screen
inc dh ;No, set cursor to next line
jmp SetCursorAndExit ;and exit
;----- Set column to 0. Are we at the end of the screen?-----
GotoNextLine:
xor dl,dl ;Set cursor to first column on line
mov cx,25 ;Fetch screen width
dec cl
cmp dh,cl ;Is this the last row?
jge ScrollTheScreen ;Yes, scroll the screen
inc dh ;No, set cursor to next line
jmp SetCursorAndExit ;and exit routine
;----- Cursor is on last row of screen. Set cursor position then scroll-----
ScrollTheScreen:
mov bh,es:BIOSPAGE
Call SetCursor
;----- Set up parameters then scroll screen-------
mov ax,1 ;# of lines to scroll
xor cx,cx ;Upper Left corner of scroll
xor bh,bh ;blanking attribute??
mov dx,79+24 shl 8 ;lower right corner
Call GScrollUp ;Scroll up window
FiniTTY:
Ret ;Finished Text TTY Routine
WriteTTY endp
code ends
end
|
; A253655: Number of monic irreducible polynomials of degree 6 over GF(prime(n)).
; 9,116,2580,19544,295020,804076,4022064,7839780,24670536,99133020,147912160,427612404,791672280,1053546956,1796518224,3694034916,7030054140,8586690620,15076346164,21349986840,25222305336,40514492720,54489965796,82830096360,138828513824,176919851700,199008532216,250121519244,279516467340,346991716176,699311808384,842318479860,1101975610104,1202091118060,1823753876100,1975651353800,2496011322844,3125894203476,3615326151864,4468124687436,5482351279620,5860303727460,8091869878080,8613755553856
seq $0,40 ; The prime numbers.
seq $0,218130 ; Number of length 6 primitive (=aperiodic or period 6) n-ary words.
div $0,6
|
; A105163: a(n) = (n^3 - 7*n + 12)/6.
; 1,1,3,8,17,31,51,78,113,157,211,276,353,443,547,666,801,953,1123,1312,1521,1751,2003,2278,2577,2901,3251,3628,4033,4467,4931,5426,5953,6513,7107,7736,8401,9103,9843,10622,11441,12301,13203,14148,15137,16171,17251,18378,19553,20777,22051,23376,24753,26183,27667,29206,30801,32453,34163,35932,37761,39651,41603,43618,45697,47841,50051,52328,54673,57087,59571,62126,64753,67453,70227,73076,76001,79003,82083,85242,88481,91801,95203,98688,102257,105911,109651,113478,117393,121397,125491,129676,133953,138323,142787,147346,152001,156753,161603,166552,171601,176751,182003,187358,192817,198381,204051,209828,215713,221707,227811,234026,240353,246793,253347,260016,266801,273703,280723,287862,295121,302501,310003,317628,325377,333251,341251,349378,357633,366017,374531,383176,391953,400863,409907,419086,428401,437853,447443,457172,467041,477051,487203,497498,507937,518521,529251,540128,551153,562327,573651,585126,596753,608533,620467,632556,644801,657203,669763,682482,695361,708401,721603,734968,748497,762191,776051,790078,804273,818637,833171,847876,862753,877803,893027,908426,924001,939753,955683,971792,988081,1004551,1021203,1038038,1055057,1072261,1089651,1107228,1124993,1142947,1161091,1179426,1197953,1216673,1235587,1254696,1274001,1293503,1313203,1333102,1353201,1373501,1394003,1414708,1435617,1456731,1478051,1499578,1521313,1543257,1565411,1587776,1610353,1633143,1656147,1679366,1702801,1726453,1750323,1774412,1798721,1823251,1848003,1872978,1898177,1923601,1949251,1975128,2001233,2027567,2054131,2080926,2107953,2135213,2162707,2190436,2218401,2246603,2275043,2303722,2332641,2361801,2391203,2420848,2450737,2480871,2511251,2541878,2572753,2603877
mov $1,$0
bin $0,2
add $1,4
mul $1,$0
div $1,3
add $1,1
|
; void PSGRestoreVolumes(void)
SECTION code_clib
SECTION code_PSGlib
PUBLIC PSGRestoreVolumes
EXTERN asm_PSGlib_RestoreVolumes
defc PSGRestoreVolumes = asm_PSGlib_RestoreVolumes
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _PSGRestoreVolumes
defc _PSGRestoreVolumes = PSGRestoreVolumes
ENDIF
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rax
push %rsi
lea addresses_normal_ht+0xbd02, %rax
nop
nop
and %r11, %r11
movw $0x6162, (%rax)
nop
nop
nop
xor %rsi, %rsi
lea addresses_D_ht+0x6742, %r12
cmp %r15, %r15
mov (%r12), %r13d
nop
nop
nop
nop
nop
sub %r15, %r15
pop %rsi
pop %rax
pop %r15
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r8
push %rcx
push %rdx
push %rsi
// Faulty Load
lea addresses_PSE+0x13e42, %r8
nop
nop
nop
nop
nop
and $55631, %rsi
mov (%r8), %r15w
lea oracles, %rcx
and $0xff, %r15
shlq $12, %r15
mov (%rcx,%r15,1), %r15
pop %rsi
pop %rdx
pop %rcx
pop %r8
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
launchship_page_marker DB "LaunchShipPG65"
launchdraw_table DB $7E,$3F, $04,$02, $66 ; purple blue
launchdraw_rowsize equ $-launchdraw_table
DB $7C,$3E, $08,$04, $66
DB $7A,$3D, $0C,$06, $66
DB $78,$3C, $10,$08, $66
DB $76,$3B, $14,$0A, $66
DB $74,$3A, $18,$0C, $66
DB $70,$38, $20,$10, $66
DB $6C,$36, $28,$14, $05 ; Black Blue
DB $68,$34, $30,$18, $05
DB $64,$32, $38,$1C, $05
DB $60,$30, $40,$20, $05
DB $5C,$2E, $48,$24, $05 ; Dark Blue
DB $58,$2C, $50,$28, $02
DB $54,$2A, $58,$2C, $02
DB $50,$28, $60,$30, $02
DB $4C,$26, $68,$34, $02
DB $46,$23, $74,$3A, $02
DB $40,$20, $80,$40, $02
DB $38,$1C, $90,$48, $01 ;Very Dark Blue
DB $30,$18, $A0,$50, $01
DB $26,$13, $B4,$5A, $01
DB $1C,$0E, $C8,$64, $01
DB $10,$08, $E0,$70, $00 ;Black
DB $02,$01, $FC,$7E, $00
DB $FF
launchtablesize EQU ($ - launchdraw_table)/launchdraw_rowsize
dockingdraw_table DB $7E,$3F, $04,$02, $00 ; purple blue
dockingdraw_rowsize equ $-dockingdraw_table
DB $7C,$3E, $08,$04, $00
DB $7A,$3D, $0C,$06, $00
DB $78,$3C, $10,$08, $04
DB $76,$3B, $14,$0A, $04
DB $74,$3A, $18,$0C, $04
DB $70,$38, $20,$10, $21
DB $6C,$36, $28,$14, $21 ; Black Blue
DB $68,$34, $30,$18, $21
DB $64,$32, $38,$1C, $25
DB $60,$30, $40,$20, $25
DB $5C,$2E, $48,$24, $25 ; Dark Blue
DB $58,$2C, $50,$28, $25
DB $54,$2A, $58,$2C, $25
DB $50,$28, $60,$30, $4C
DB $4C,$26, $68,$34, $4C
DB $46,$23, $74,$3A, $4C
DB $40,$20, $80,$40, $4C
DB $38,$1C, $90,$48, $6D ;Very Dark Blue
DB $30,$18, $A0,$50, $6D
DB $26,$13, $B4,$5A, $6D
DB $1C,$0E, $C8,$64, $6D
DB $10,$08, $E0,$70, $92 ;Black
DB $02,$01, $FC,$7E, $92
DB $FF
dockingtablesize EQU ($ - dockingdraw_table)/dockingdraw_rowsize
init_countdown EQU $FF
launch_countdown DB $0000
launch_table_idx DW launchdraw_table
docking_table_idx DW dockingdraw_table
current_offsetX db 0
current_offsetY db 0
LaunchTubeEdges MMUSelectLayer2
ld bc,$0000
ld de,$0192
.drawLoop1 ld a,b
cp 128
jr z,.DoneEdge
push af
push bc,,de,,bc,,de
call l2_draw_horz_dma_bank ;"bc = left side row,col, d = length, e = color"
pop bc,,de
ld a,$FF
sub d
ld c,a
inc c
call l2_draw_horz_dma_bank
pop bc,,de
ld a,b
cp 64
jr nc,.ReduceLoop
inc d
inc d
pop af
inc b
jr .drawLoop1
.ReduceLoop: dec d
dec d
pop af
inc b
jr .drawLoop1
.DoneEdge: ld a,$80
ld bc,$0000 ; Top Left
ld de,$80FF ; Bottom Right
call l2_draw_diagonal
ld a,$80
ld bc,$8000 ; Botom Left
ld de,$00FF ; Top Right
call l2_draw_diagonal
ld bc,$0000
ld DE,$0080
ld h,$60
ld l,$55
ret
LaunchConsole: MMUSelectConsoleBank ; Draw Console
ld hl,ScreenL1Bottom
ld de,ConsoleImageData
ld bc, ScreenL1BottomLen
call memcopy_dma
ld hl,ScreenL1AttrBtm ; now the pointers are in Ubnk its easy to read
ld de,ConsoleAttributes
ld bc, ScreenL1AttrBtmLen
call memcopy_dma
ret
CoriloisStation equ 13
draw_launch_ship: MMUSelectLayer1
call l1_cls
call l1_attr_cls
MMUSelectSpriteBank
call sprite_cls_cursors
MMUSelectLayer2
call asm_l2_double_buffer_on
.CurrentBuffer: ld a,$FF ; Clear upper 2 thirds to white
ld (l2_cls_byte),a
call l2_set_color_upper2
ld a,COLOUR_TRANSPARENT ; Lower third transparent
ld (l2_cls_byte),a
call l2_cls_lower_third
call LaunchTubeEdges
call LaunchConsole
.NextBuffer: MMUSelectLayer2
call l2_flip_buffers
ld a,$FF ; Clear upper 2 thirds to white
ld (l2_cls_byte),a
call l2_set_color_upper2
ld a,COLOUR_TRANSPARENT ; Lower third transparent
ld (l2_cls_byte),a
call l2_cls_lower_third
call LaunchTubeEdges
call LaunchConsole
.SetUpTimers: ld a,init_countdown
ld (launch_countdown),a
ld hl,launchdraw_table
ld (launch_table_idx),hl
xor a
ld (current_offsetX),a
ld (current_offsetY),a
.SetupGalaxy: MaxThrottle
ZeroThrottle; DEBUG
; To launch we need to set docked flag to transition FE and at teh end of the transition set to FD to rebuild universe
ld a,$FE
ld (DockedFlag),a
ret
draw_docking_ship: MMUSelectLayer1
call l1_cls
call l1_attr_cls
MMUSelectSpriteBank
call sprite_cls_cursors
MMUSelectLayer2
call asm_l2_double_buffer_on
.CurrentBuffer: ld a,$FF ; Clear upper 2 thirds to white
ld (l2_cls_byte),a
call l2_set_color_upper2
ld a,COLOUR_TRANSPARENT ; Lower third transparent
ld (l2_cls_byte),a
call l2_cls_lower_third
call LaunchTubeEdges
call LaunchConsole
.NextBuffer: MMUSelectLayer2
call l2_flip_buffers
ld a,$FF ; Clear upper 2 thirds to white
ld (l2_cls_byte),a
call l2_set_color_upper2
ld a,COLOUR_TRANSPARENT ; Lower third transparent
ld (l2_cls_byte),a
call l2_cls_lower_third
call LaunchTubeEdges
call LaunchConsole
.SetUpTimers: ld a,init_countdown
ld (launch_countdown),a
ld hl,dockingdraw_table
ld (docking_table_idx),hl
xor a
ld (current_offsetX),a
ld (current_offsetY),a
.SetupGalaxy: xor a ; palcehodler as it would cause next macro to fail re initialise all universe banks
ZeroThrottle
ld a,$FF
ld (DockedFlag),a ; we don't kill off shipts as we kill them on launch
ret
loop_launch_ship: call LaunchTubeEdges
ld a,init_countdown
ld (launch_countdown),a
ld hl,(launch_table_idx)
ld c,(hl)
ld a,c
cp $FF
jr z,.FinishedLaunch
inc hl
ld b,(hl) ; bc = top left
inc hl
ld e,(hl)
inc hl
ld d,(hl) ;de = width and height
inc hl
ld a,(hl) ; a = colour
inc hl
ld (launch_table_idx),hl
ld h,a
push bc,,de
MMUSelectLayer2
call l2_draw_fill_box ; ; "l2_draw_fill_box bc=rowcol, de=heightwidth h=color"
pop bc,,de
ld a,$80
call l2_draw_box ; "l2_draw_box bc=rowcol, de=heightwidth a=color"
ret
.FinishedLaunch: ld a,$FD ; now seed that we need a universe rebuild post launch
ld (DockedFlag),a
ret
loop_docking_ship: call LaunchTubeEdges
ld a,init_countdown
ld (launch_countdown),a
ld hl,(docking_table_idx)
ld c,(hl)
ld a,c
cp $FF
jr z,.FinishedDocking
inc hl
ld b,(hl) ; bc = top left
inc hl
ld e,(hl)
inc hl
ld d,(hl) ;de = width and height
inc hl
ld a,(hl)
inc hl
ld (docking_table_idx),hl
ld h,a
push bc,,de
MMUSelectLayer2
call l2_draw_fill_box
pop bc,,de
ld a,$80
call l2_draw_box
ret
.FinishedDocking ForceTransition ScreenStatus ; Force move to status screen
ret
|
#include <common/DateLUTImpl.h>
#include <Common/StringUtils/StringUtils.h>
#include <IO/ReadBuffer.h>
#include <IO/ReadHelpers.h>
#include <IO/WriteHelpers.h>
#include <IO/parseDateTimeBestEffort.h>
namespace DB
{
namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
extern const int CANNOT_PARSE_DATETIME;
}
namespace
{
inline size_t readDigits(char * res, size_t max_chars, ReadBuffer & in)
{
size_t num_chars = 0;
while (!in.eof() && isNumericASCII(*in.position()) && num_chars < max_chars)
{
res[num_chars] = *in.position() - '0';
++num_chars;
++in.position();
}
return num_chars;
}
inline size_t readAlpha(char * res, size_t max_chars, ReadBuffer & in)
{
size_t num_chars = 0;
while (!in.eof() && isAlphaASCII(*in.position()) && num_chars < max_chars)
{
res[num_chars] = *in.position();
++num_chars;
++in.position();
}
return num_chars;
}
template <size_t digit, size_t power_of_ten, typename T>
inline void readDecimalNumberImpl(T & res, const char * src)
{
res += src[digit] * power_of_ten;
if constexpr (digit > 0)
readDecimalNumberImpl<digit - 1, power_of_ten * 10>(res, src);
}
template <size_t num_digits, typename T>
inline void readDecimalNumber(T & res, const char * src)
{
readDecimalNumberImpl<num_digits - 1, 1>(res, src);
}
template <typename ReturnType>
ReturnType parseDateTimeBestEffortImpl(time_t & res, ReadBuffer & in, const DateLUTImpl & local_time_zone, const DateLUTImpl & utc_time_zone)
{
auto on_error = [](const std::string & message [[maybe_unused]], int code [[maybe_unused]])
{
if constexpr (std::is_same_v<ReturnType, void>)
throw Exception(message, code);
else
return false;
};
UInt16 year = 0;
UInt8 month = 0;
UInt8 day_of_month = 0;
UInt8 hour = 0;
UInt8 minute = 0;
UInt8 second = 0;
bool has_time = false;
bool has_time_zone_offset = false;
bool time_zone_offset_negative = false;
UInt8 time_zone_offset_hour = 0;
UInt8 time_zone_offset_minute = 0;
bool is_pm = false;
while (!in.eof())
{
char digits[14];
size_t num_digits = 0;
if (!year || !has_time)
{
num_digits = readDigits(digits, sizeof(digits), in);
if (num_digits == 10 && !year && !has_time)
{
/// This is unix timestamp.
readDecimalNumber<10>(res, digits);
return ReturnType(true);
}
else if (num_digits == 9 && !year && !has_time)
{
/// This is unix timestamp.
readDecimalNumber<9>(res, digits);
return ReturnType(true);
}
else if (num_digits == 14 && !year && !has_time)
{
/// This is YYYYMMDDhhmmss
readDecimalNumber<4>(year, digits);
readDecimalNumber<2>(month, digits + 4);
readDecimalNumber<2>(day_of_month, digits + 6);
readDecimalNumber<2>(hour, digits + 8);
readDecimalNumber<2>(minute, digits + 10);
readDecimalNumber<2>(second, digits + 12);
has_time = true;
}
else if (num_digits == 8 && !year)
{
/// This is YYYYMMDD
readDecimalNumber<4>(year, digits);
readDecimalNumber<2>(month, digits + 4);
readDecimalNumber<2>(day_of_month, digits + 6);
}
else if (num_digits == 6)
{
/// This is YYYYMM
if (!year && !month)
{
readDecimalNumber<4>(year, digits);
readDecimalNumber<2>(month, digits + 4);
}
else if (!has_time)
{
readDecimalNumber<2>(hour, digits);
readDecimalNumber<2>(minute, digits + 2);
readDecimalNumber<2>(second, digits + 4);
has_time = true;
}
else
return on_error("Cannot read DateTime: ambiguous 6 digits, it can be YYYYMM or hhmmss", ErrorCodes::CANNOT_PARSE_DATETIME);
}
else if (num_digits == 4 && !year)
{
/// YYYY
/// YYYY*MM
/// YYYY*MM*DD
/// YYYY*M
/// YYYY*M*DD
/// YYYY*M*D
readDecimalNumber<4>(year, digits);
if (!in.eof())
{
char delimiter_after_year = *in.position();
if (delimiter_after_year < 0x20
|| delimiter_after_year == ','
|| delimiter_after_year == ';'
|| delimiter_after_year == '\''
|| delimiter_after_year == '"')
break;
if (month)
continue;
++in.position();
num_digits = readDigits(digits, sizeof(digits), in);
if (num_digits == 2)
readDecimalNumber<2>(month, digits);
else if (num_digits == 1)
readDecimalNumber<1>(month, digits);
else if (delimiter_after_year == ' ')
continue;
else
return on_error("Cannot read DateTime: unexpected number of decimal digits after year: " + toString(num_digits), ErrorCodes::CANNOT_PARSE_DATETIME);
/// Only the same delimiter.
if (!day_of_month && checkChar(delimiter_after_year, in))
{
num_digits = readDigits(digits, sizeof(digits), in);
if (num_digits == 2)
readDecimalNumber<2>(day_of_month, digits);
else if (num_digits == 1)
readDecimalNumber<1>(day_of_month, digits);
else if (delimiter_after_year == ' ')
continue;
else
return on_error("Cannot read DateTime: unexpected number of decimal digits after year and month: " + toString(num_digits), ErrorCodes::CANNOT_PARSE_DATETIME);
}
}
}
else if (num_digits == 2 || num_digits == 1)
{
/// hh:mm:ss
/// hh:mm
/// hh - only if already have day of month
/// DD/MM/YYYY
/// DD/MM/YY
/// DD
UInt8 hour_or_day_of_month = 0;
if (num_digits == 2)
readDecimalNumber<2>(hour_or_day_of_month, digits);
else if (num_digits == 1) //-V547
readDecimalNumber<1>(hour_or_day_of_month, digits);
else
return on_error("Cannot read DateTime: logical error, unexpected branch in code", ErrorCodes::LOGICAL_ERROR);
if (checkChar(':', in))
{
if (has_time)
return on_error("Cannot read DateTime: time component is duplicated", ErrorCodes::CANNOT_PARSE_DATETIME);
hour = hour_or_day_of_month;
has_time = true;
num_digits = readDigits(digits, sizeof(digits), in);
if (num_digits == 2)
readDecimalNumber<2>(minute, digits);
else if (num_digits == 1)
readDecimalNumber<1>(minute, digits);
else
return on_error("Cannot read DateTime: unexpected number of decimal digits after hour: " + toString(num_digits), ErrorCodes::CANNOT_PARSE_DATETIME);
if (checkChar(':', in))
{
num_digits = readDigits(digits, sizeof(digits), in);
if (num_digits == 2)
readDecimalNumber<2>(second, digits);
else if (num_digits == 1)
readDecimalNumber<1>(second, digits);
else
return on_error("Cannot read DateTime: unexpected number of decimal digits after hour and minute: " + toString(num_digits), ErrorCodes::CANNOT_PARSE_DATETIME);
}
}
else if (checkChar('/', in))
{
if (day_of_month)
return on_error("Cannot read DateTime: day of month is duplicated", ErrorCodes::CANNOT_PARSE_DATETIME);
if (month)
return on_error("Cannot read DateTime: month is duplicated", ErrorCodes::CANNOT_PARSE_DATETIME);
day_of_month = hour_or_day_of_month;
num_digits = readDigits(digits, sizeof(digits), in);
if (num_digits == 2)
readDecimalNumber<2>(month, digits);
else if (num_digits == 1)
readDecimalNumber<1>(month, digits);
else
return on_error("Cannot read DateTime: unexpected number of decimal digits after day of month: " + toString(num_digits), ErrorCodes::CANNOT_PARSE_DATETIME);
if (checkChar('/', in))
{
if (year)
return on_error("Cannot read DateTime: year component is duplicated", ErrorCodes::CANNOT_PARSE_DATETIME);
num_digits = readDigits(digits, sizeof(digits), in);
if (num_digits == 4)
readDecimalNumber<4>(year, digits);
else if (num_digits == 2)
{
readDecimalNumber<2>(year, digits);
if (year >= 70)
year += 1900;
else
year += 2000;
}
else
return on_error("Cannot read DateTime: unexpected number of decimal digits after day of month and month: " + toString(num_digits), ErrorCodes::CANNOT_PARSE_DATETIME);
}
}
else
{
if (day_of_month)
hour = hour_or_day_of_month;
else
day_of_month = hour_or_day_of_month;
}
}
else if (num_digits != 0)
return on_error("Cannot read DateTime: unexpected number of decimal digits: " + toString(num_digits), ErrorCodes::CANNOT_PARSE_DATETIME);
}
if (num_digits == 0)
{
char c = *in.position();
if (c == ' ' || c == 'T')
{
++in.position();
}
else if (c == 'Z')
{
++in.position();
has_time_zone_offset = true;
}
else if (c == '.') /// We don't support comma (ISO 8601:2004) for fractional part of second to not mess up with CSV separator.
{
if (!has_time)
return on_error("Cannot read DateTime: unexpected point symbol", ErrorCodes::CANNOT_PARSE_DATETIME);
++in.position();
/// Just ignore fractional part of second.
readDigits(digits, sizeof(digits), in);
}
else if (c == '+' || c == '-')
{
++in.position();
has_time_zone_offset = true;
if (c == '-')
time_zone_offset_negative = true;
num_digits = readDigits(digits, sizeof(digits), in);
if (num_digits == 4)
{
readDecimalNumber<2>(time_zone_offset_hour, digits);
readDecimalNumber<2>(time_zone_offset_minute, digits + 2);
}
else if (num_digits == 3)
{
readDecimalNumber<1>(time_zone_offset_hour, digits);
readDecimalNumber<2>(time_zone_offset_minute, digits + 1);
}
else if (num_digits == 2)
{
readDecimalNumber<2>(time_zone_offset_hour, digits);
}
else if (num_digits == 1)
{
readDecimalNumber<1>(time_zone_offset_hour, digits);
}
else
return on_error("Cannot read DateTime: unexpected number of decimal digits for time zone offset: " + toString(num_digits), ErrorCodes::CANNOT_PARSE_DATETIME);
if (num_digits < 3 && checkChar(':', in))
{
num_digits = readDigits(digits, sizeof(digits), in);
if (num_digits == 2)
{
readDecimalNumber<2>(time_zone_offset_minute, digits);
}
else if (num_digits == 1)
{
readDecimalNumber<1>(time_zone_offset_minute, digits);
}
else
return on_error("Cannot read DateTime: unexpected number of decimal digits for time zone offset in minutes: " + toString(num_digits), ErrorCodes::CANNOT_PARSE_DATETIME);
}
}
else
{
char alpha[3];
size_t num_alpha = readAlpha(alpha, sizeof(alpha), in);
if (!num_alpha)
{
break;
}
else if (num_alpha == 1)
{
return on_error("Cannot read DateTime: unexpected alphabetical character", ErrorCodes::CANNOT_PARSE_DATETIME);
}
else if (num_alpha == 2)
{
if (alpha[1] == 'M' || alpha[1] == 'm')
{
if (alpha[0] == 'A' || alpha[0] == 'a')
{
}
else if (alpha[0] == 'P' || alpha[0] == 'p')
{
is_pm = true;
}
else
return on_error("Cannot read DateTime: unexpected word", ErrorCodes::CANNOT_PARSE_DATETIME);
}
else
return on_error("Cannot read DateTime: unexpected word", ErrorCodes::CANNOT_PARSE_DATETIME);
}
else if (num_alpha == 3)
{
bool has_day_of_week = false;
if (0 == strncasecmp(alpha, "Jan", 3)) month = 1;
else if (0 == strncasecmp(alpha, "Feb", 3)) month = 2;
else if (0 == strncasecmp(alpha, "Mar", 3)) month = 3;
else if (0 == strncasecmp(alpha, "Apr", 3)) month = 4;
else if (0 == strncasecmp(alpha, "May", 3)) month = 5;
else if (0 == strncasecmp(alpha, "Jun", 3)) month = 6;
else if (0 == strncasecmp(alpha, "Jul", 3)) month = 7;
else if (0 == strncasecmp(alpha, "Aug", 3)) month = 8;
else if (0 == strncasecmp(alpha, "Sep", 3)) month = 9;
else if (0 == strncasecmp(alpha, "Oct", 3)) month = 10;
else if (0 == strncasecmp(alpha, "Nov", 3)) month = 11;
else if (0 == strncasecmp(alpha, "Dec", 3)) month = 12;
else if (0 == strncasecmp(alpha, "UTC", 3)) has_time_zone_offset = true;
else if (0 == strncasecmp(alpha, "GMT", 3)) has_time_zone_offset = true;
else if (0 == strncasecmp(alpha, "MSK", 3)) { has_time_zone_offset = true; time_zone_offset_hour = 3; }
else if (0 == strncasecmp(alpha, "MSD", 3)) { has_time_zone_offset = true; time_zone_offset_hour = 4; }
else if (0 == strncasecmp(alpha, "Mon", 3)) has_day_of_week = true;
else if (0 == strncasecmp(alpha, "Tue", 3)) has_day_of_week = true;
else if (0 == strncasecmp(alpha, "Wed", 3)) has_day_of_week = true;
else if (0 == strncasecmp(alpha, "Thu", 3)) has_day_of_week = true;
else if (0 == strncasecmp(alpha, "Fri", 3)) has_day_of_week = true;
else if (0 == strncasecmp(alpha, "Sat", 3)) has_day_of_week = true;
else if (0 == strncasecmp(alpha, "Sun", 3)) has_day_of_week = true;
else
return on_error("Cannot read DateTime: unexpected word", ErrorCodes::CANNOT_PARSE_DATETIME);
while (!in.eof() && isAlphaASCII(*in.position()))
++in.position();
/// For RFC 2822
if (has_day_of_week)
checkChar(',', in);
}
else
return on_error("Cannot read DateTime: logical error, unexpected branch in code", ErrorCodes::LOGICAL_ERROR);
}
}
}
if (!year)
year = 2000;
if (!month)
month = 1;
if (!day_of_month)
day_of_month = 1;
if (is_pm && hour < 12)
hour += 12;
auto adjust_time_zone = [&]
{
if (time_zone_offset_hour)
{
if (time_zone_offset_negative)
res += time_zone_offset_hour * 3600;
else
res -= time_zone_offset_hour * 3600;
}
if (time_zone_offset_minute)
{
if (time_zone_offset_negative)
res += time_zone_offset_minute * 60;
else
res -= time_zone_offset_minute * 60;
}
};
if (has_time_zone_offset)
{
res = utc_time_zone.makeDateTime(year, month, day_of_month, hour, minute, second);
adjust_time_zone();
}
else
{
res = local_time_zone.makeDateTime(year, month, day_of_month, hour, minute, second);
}
return ReturnType(true);
}
}
void parseDateTimeBestEffort(time_t & res, ReadBuffer & in, const DateLUTImpl & local_time_zone, const DateLUTImpl & utc_time_zone)
{
parseDateTimeBestEffortImpl<void>(res, in, local_time_zone, utc_time_zone);
}
bool tryParseDateTimeBestEffort(time_t & res, ReadBuffer & in, const DateLUTImpl & local_time_zone, const DateLUTImpl & utc_time_zone)
{
return parseDateTimeBestEffortImpl<bool>(res, in, local_time_zone, utc_time_zone);
}
}
|
; branch if carry
LDI #1 ; 00010000 00000001 0x1001
STA #0x01 ; 00100000 00000001 0x2001
BRC #0x0 ; 01010000 00000000 0x5000
LDI #0 ; 00010000 00000000 0x1000
SUB #0x01 ; 10100000 00000001 0xA001
BRC #0x0 ; 01010000 00000000 0x5000
|
; A085438: a(n) = Sum_{i=1..n} binomial(i+1,2)^3.
; 1,28,244,1244,4619,13880,35832,82488,173613,339988,627484,1102036,1855607,3013232,4741232,7256688,10838265,15838476,22697476,31958476,44284867,60479144,81503720,108503720,142831845,186075396,240085548,307008964,389321839,489866464,611890400,759088352,935646833,1146291708,1396338708,1691747004,2039175931,2446044952,2920596952,3471964952,4110242333,4846556660,5693147196,6663446196,7772164071,9035378512,10470627664,12097007440,13935273065,16007944940,18339418916,20956081068,23886427059,27161186184,30813450184,34878806920,39395478997,44404467428,49949700428,56078187428,62840178399,70289328576,78482868672,87481780672,97350979297,108159499228,119980688180,132892405916,146977229291,162322663416,179021359032,197171336184,216876214285,238245448660,261394573660,286445452436,313526533463,342773113904,374327609904,408339833904,444967279065,484375410892,526737966148,572237259148,621064495523,673420093544,729514013096,789566092392,853806392517,922475549892,995825136748,1074118029700,1157628786511,1246644031136,1341462847136,1442397179552,1549772245329,1663926952380,1785214327380,1914001952380,2050672410331,2195623739608,2349269897624,2512041233624,2684384970749,2866765697460,3059665868412,3263586314868,3479046764743,3706586372368,3946764258064,4200160057616,4467374481737,4749029885612,5045770848612,5358264764268,5687202440595,6033298710856,6397293054856,6779950230856,7182060918197,7604442370724,8047939081100,8513423456100,9001796502975,9513988526976,10050959840128,10613701481344,11203235947969,11820617938844,12466935108980,13143308835932,13850894997963,14590884764088,15364505396088,16173021062584,17017733665261,17899983677332,18821150994332,19782655797332,20785959428663,21832565280240,22924019694576,24061912878576,25247879830201,26483601278092,27770804634244,29111264959820,30506805944195,31959300897320,33470673755496,35042900100648,36678008193189,38378080018564,40145252347564,41981717810500,43889725985327,45871584499808,47929660147808,50066380019808,52284232647729,54585769164156,56973604476052,59450418453052,62018957130427,64682033926808,67442530876760,70303399878296,73267663955421,76338418535796,79518832743612,82812150707764,86221692885415,89750857401040,93403121401040,97182042424016,101091259786793,105134495986284,109315558117284,113638339306284,118106820161395,122725070238472,127497249523528,132427609931528,137520496821653,142780350529124,148211707913676,153819203924772,159607573183647,165581651582272,171746377899328,178106795433280,184668053652641,191435409863516,198414230894516,205609994799132,213028292575659,220674829904760,228555428904760,236676029904760,245042693235661,253661601039188,262539059095004,271681498666004,281095478361879,290787686021040,300764940610992,311034194147248,321602533630873,332477183004748,343665505128644,355175003773196,367013325632867,379188262357992,391707752605992,404579884111848,417812895777925,431415179783236,445395283712236,459761912703236,474523931616527,489690367222304,505270410408480,521273418408480,537708917049105,554586603018556,571916346154708,589708191753724,607972362899099,626719262811224,645959477217560,665703776743512,685963119324093,706748652636468,728071716553468,749943845618164,772376771539591,795382425709712,818972941741712,843160658029712,867958120329993,893378084363820,919433518441956,946137606110956,973503748821331,1001545568617672,1030276910850824,1059711846912200,1089864676990325,1120749932849700
mov $1,14
lpb $0
mov $2,$0
cal $2,59827 ; Cubes of triangular numbers: (n*(n+1)/2)^3.
sub $0,1
add $1,$2
lpe
sub $1,13
|
;
; z88dk GFX library
;
; Render the "stencil".
; The dithered horizontal lines base their pattern on the Y coordinate
; and on an 'intensity' parameter (0..11).
; Basic concept by Rafael de Oliveira Jannone
;
; Machine code version by Stefano Bodrato, 22/4/2009
;
; stencil_render(unsigned char *stencil, unsigned char intensity)
;
INCLUDE "graphics/grafix.inc"
SECTION code_clib
PUBLIC stencil_render
PUBLIC _stencil_render
EXTERN dither_pattern
;EXTERN l_cmp
EXTERN swapgfxbk
EXTERN w_pixeladdress
EXTERN leftbitmask, rightbitmask
EXTERN swapgfxbk1
;
; $Id: w_stencil_render.asm $
;
.stencil_render_exit
pop ix ;restore callers
jp swapgfxbk1
.stencil_render
._stencil_render
push ix ;save callers
ld ix,4
add ix,sp
call swapgfxbk
ld bc,maxy
push bc
.yloop pop bc
dec bc
ld a,b
and c
cp 255
jr z,stencil_render_exit
push bc
ld d,b
ld e,c
ld l,(ix+2) ; stencil
ld h,(ix+3)
add hl,bc
add hl,bc
ld e,(hl)
inc hl
ld d,(hl)
dec hl
;ex (sp),hl
ld a,d ; check left side for current Y position..
and e
cp 127
jr z,yloop ; ...loop if nothing to be drawn
ld bc,maxy*2
add hl,bc
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
pop bc
push bc
push hl
ld a,(ix+0) ; intensity
push de ; X1
call dither_pattern
pop hl ; X1
ld (pattern1+1),a
ld (pattern2+1),a
push bc
ld d,b
ld e,c
call w_pixeladdress ; bitpos0 = pixeladdress(x,y)
call leftbitmask ; LeftBitMask(bitpos0)
pop bc
ld h,d
ld l,e
call mask_pattern
ex (sp),hl ; X2 <-> adr0
push af ; mask
ld d,b
ld e,c
call w_pixeladdress ; bitpos1 = pixeladdress(x+width-1,y)
call rightbitmask ; RightBitMask(bitpos1)
ld (bitmaskr+1),a ; bitmask1 = LeftBitMask(bitpos0)
pop af ; pattern to be drawn (left-masked)
pop hl ; adr0
ld b,a
ld a,h
cp d
jr nz,noobt
ld a,l
cp e
jr z,onebyte
.noobt
ld a,b
ld (hl),a ; (offset) = (offset) AND bitmask0
inc hl
ld a,h
cp d
jr nz,pattern2
ld a,l
cp e
.pattern2 ld a,0
jr z,bitmaskr
ld b,a
.fill_row_loop ; do
ld a,b
ld (hl),a ; (offset) = pattern
inc hl
ld a,h
cp d
jr nz,fill_row_loop
ld a,l
cp e
jr nz,fill_row_loop ; while ( r-- != 0 )
.bitmaskr ld a,0
call mask_pattern
ld (hl),a
jp yloop
.onebyte
ld a,b
ld (pattern1+1),a
jr bitmaskr
; Prepare an edge byte, basing on the byte mask in A
; and on the pattern being set in (pattern1+1)
.mask_pattern
push de
ld d,a ; keep a copy of mask
and (hl) ; mask data on screen
ld e,a ; save masked data
ld a,d ; retrieve mask
cpl ; invert it
.pattern1 and 0 ; prepare fill pattern portion
or e ; mix with masked data
pop de
ret
|
; A245593: a(n) = (R_n)^n.
; Submitted by Christian Krause
; 1,121,1367631,1523548331041,169342410709747836551,1881665133128606900860142518161,2090750117762021873788017450039922462386871,232305712669729896500117628007183171975956078054818623681,2581174768482624149493549155062886015819364354785066837288515125486819591,2867971987924469323820403313431021627485478704243749999500499658223600043001340850612575601,318663554497440488261206948080474869219386052121245933611138694695948117306512713937854111674397140016598602711
mov $1,10
pow $1,$0
add $0,1
mul $1,10
div $1,9
pow $1,$0
mov $0,$1
|
1
1;JGT
1;JEQ
1;JGE
1;JLT
1;JNE
1;JLE
1;JMP
-1
-1;JGT
-1;JEQ
-1;JGE
-1;JLT
-1;JNE
-1;JLE
-1;JMP
D
D;JGT
D;JEQ
D;JGE
D;JLT
D;JNE
D;JLE
D;JMP
A
A;JGT
A;JEQ
A;JGE
A;JLT
A;JNE
A;JLE
A;JMP
!D
!D;JGT
!D;JEQ
!D;JGE
!D;JLT
!D;JNE
!D;JLE
!D;JMP
!A
!A;JGT
!A;JEQ
!A;JGE
!A;JLT
!A;JNE
!A;JLE
!A;JMP
-D
-D;JGT
-D;JEQ
-D;JGE
-D;JLT
-D;JNE
-D;JLE
-D;JMP
-A
-A;JGT
-A;JEQ
-A;JGE
-A;JLT
-A;JNE
-A;JLE
-A;JMP
D+1
D+1;JGT
D+1;JEQ
D+1;JGE
D+1;JLT
D+1;JNE
D+1;JLE
D+1;JMP
A+1
A+1;JGT
A+1;JEQ
A+1;JGE
A+1;JLT
A+1;JNE
A+1;JLE
A+1;JMP
D-1
D-1;JGT
D-1;JEQ
D-1;JGE
D-1;JLT
D-1;JNE
D-1;JLE
D-1;JMP
A-1
A-1;JGT
A-1;JEQ
A-1;JGE
A-1;JLT
A-1;JNE
A-1;JLE
A-1;JMP
D+A
D+A;JGT
D+A;JEQ
D+A;JGE
D+A;JLT
D+A;JNE
D+A;JLE
D+A;JMP
D-A
D-A;JGT
D-A;JEQ
D-A;JGE
D-A;JLT
D-A;JNE
D-A;JLE
D-A;JMP
A-D
A-D;JGT
A-D;JEQ
A-D;JGE
A-D;JLT
A-D;JNE
A-D;JLE
A-D;JMP
D&A
D&A;JGT
D&A;JEQ
D&A;JGE
D&A;JLT
D&A;JNE
D&A;JLE
D&A;JMP
D|A
D|A;JGT
D|A;JEQ
D|A;JGE
D|A;JLT
D|A;JNE
D|A;JLE
D|A;JMP
M
M;JGT
M;JEQ
M;JGE
M;JLT
M;JNE
M;JLE
M;JMP
!M
!M;JGT
!M;JEQ
!M;JGE
!M;JLT
!M;JNE
!M;JLE
!M;JMP
-M
-M;JGT
-M;JEQ
-M;JGE
-M;JLT
-M;JNE
-M;JLE
-M;JMP
M+1
M+1;JGT
M+1;JEQ
M+1;JGE
M+1;JLT
M+1;JNE
M+1;JLE
M+1;JMP
M-1
M-1;JGT
M-1;JEQ
M-1;JGE
M-1;JLT
M-1;JNE
M-1;JLE
M-1;JMP
D+M
D+M;JGT
D+M;JEQ
D+M;JGE
D+M;JLT
D+M;JNE
D+M;JLE
D+M;JMP
D-M
D-M;JGT
D-M;JEQ
D-M;JGE
D-M;JLT
D-M;JNE
D-M;JLE
D-M;JMP
M-D
M-D;JGT
M-D;JEQ
M-D;JGE
M-D;JLT
M-D;JNE
M-D;JLE
M-D;JMP
D&M
D&M;JGT
D&M;JEQ
D&M;JGE
D&M;JLT
D&M;JNE
D&M;JLE
D&M;JMP
D|M
D|M;JGT
D|M;JEQ
D|M;JGE
D|M;JLT
D|M;JNE
D|M;JLE
D|M;JMP
M=1
M=1;JGT
M=1;JEQ
M=1;JGE
M=1;JLT
M=1;JNE
M=1;JLE
M=1;JMP
M=-1
M=-1;JGT
M=-1;JEQ
M=-1;JGE
M=-1;JLT
M=-1;JNE
M=-1;JLE
M=-1;JMP
M=D
M=D;JGT
M=D;JEQ
M=D;JGE
M=D;JLT
M=D;JNE
M=D;JLE
M=D;JMP
M=A
M=A;JGT
M=A;JEQ
M=A;JGE
M=A;JLT
M=A;JNE
M=A;JLE
M=A;JMP
M=!D
M=!D;JGT
M=!D;JEQ
M=!D;JGE
M=!D;JLT
M=!D;JNE
M=!D;JLE
M=!D;JMP
M=!A
M=!A;JGT
M=!A;JEQ
M=!A;JGE
M=!A;JLT
M=!A;JNE
M=!A;JLE
M=!A;JMP
M=-D
M=-D;JGT
M=-D;JEQ
M=-D;JGE
M=-D;JLT
M=-D;JNE
M=-D;JLE
M=-D;JMP
M=-A
M=-A;JGT
M=-A;JEQ
M=-A;JGE
M=-A;JLT
M=-A;JNE
M=-A;JLE
M=-A;JMP
M=D+1
M=D+1;JGT
M=D+1;JEQ
M=D+1;JGE
M=D+1;JLT
M=D+1;JNE
M=D+1;JLE
M=D+1;JMP
M=A+1
M=A+1;JGT
M=A+1;JEQ
M=A+1;JGE
M=A+1;JLT
M=A+1;JNE
M=A+1;JLE
M=A+1;JMP
M=D-1
M=D-1;JGT
M=D-1;JEQ
M=D-1;JGE
M=D-1;JLT
M=D-1;JNE
M=D-1;JLE
M=D-1;JMP
M=A-1
M=A-1;JGT
M=A-1;JEQ
M=A-1;JGE
M=A-1;JLT
M=A-1;JNE
M=A-1;JLE
M=A-1;JMP
M=D+A
M=D+A;JGT
M=D+A;JEQ
M=D+A;JGE
M=D+A;JLT
M=D+A;JNE
M=D+A;JLE
M=D+A;JMP
M=D-A
M=D-A;JGT
M=D-A;JEQ
M=D-A;JGE
M=D-A;JLT
M=D-A;JNE
M=D-A;JLE
M=D-A;JMP
M=A-D
M=A-D;JGT
M=A-D;JEQ
M=A-D;JGE
M=A-D;JLT
M=A-D;JNE
M=A-D;JLE
M=A-D;JMP
M=D&A
M=D&A;JGT
M=D&A;JEQ
M=D&A;JGE
M=D&A;JLT
M=D&A;JNE
M=D&A;JLE
M=D&A;JMP
M=D|A
M=D|A;JGT
M=D|A;JEQ
M=D|A;JGE
M=D|A;JLT
M=D|A;JNE
M=D|A;JLE
M=D|A;JMP
M=M
M=M;JGT
M=M;JEQ
M=M;JGE
M=M;JLT
M=M;JNE
M=M;JLE
M=M;JMP
M=!M
M=!M;JGT
M=!M;JEQ
M=!M;JGE
M=!M;JLT
M=!M;JNE
M=!M;JLE
M=!M;JMP
M=-M
M=-M;JGT
M=-M;JEQ
M=-M;JGE
M=-M;JLT
M=-M;JNE
M=-M;JLE
M=-M;JMP
M=M+1
M=M+1;JGT
M=M+1;JEQ
M=M+1;JGE
M=M+1;JLT
M=M+1;JNE
M=M+1;JLE
M=M+1;JMP
M=M-1
M=M-1;JGT
M=M-1;JEQ
M=M-1;JGE
M=M-1;JLT
M=M-1;JNE
M=M-1;JLE
M=M-1;JMP
M=D+M
M=D+M;JGT
M=D+M;JEQ
M=D+M;JGE
M=D+M;JLT
M=D+M;JNE
M=D+M;JLE
M=D+M;JMP
M=D-M
M=D-M;JGT
M=D-M;JEQ
M=D-M;JGE
M=D-M;JLT
M=D-M;JNE
M=D-M;JLE
M=D-M;JMP
M=M-D
M=M-D;JGT
M=M-D;JEQ
M=M-D;JGE
M=M-D;JLT
M=M-D;JNE
M=M-D;JLE
M=M-D;JMP
M=D&M
M=D&M;JGT
M=D&M;JEQ
M=D&M;JGE
M=D&M;JLT
M=D&M;JNE
M=D&M;JLE
M=D&M;JMP
M=D|M
M=D|M;JGT
M=D|M;JEQ
M=D|M;JGE
M=D|M;JLT
M=D|M;JNE
M=D|M;JLE
M=D|M;JMP
D=1
D=1;JGT
D=1;JEQ
D=1;JGE
D=1;JLT
D=1;JNE
D=1;JLE
D=1;JMP
D=-1
D=-1;JGT
D=-1;JEQ
D=-1;JGE
D=-1;JLT
D=-1;JNE
D=-1;JLE
D=-1;JMP
D=D
D=D;JGT
D=D;JEQ
D=D;JGE
D=D;JLT
D=D;JNE
D=D;JLE
D=D;JMP
D=A
D=A;JGT
D=A;JEQ
D=A;JGE
D=A;JLT
D=A;JNE
D=A;JLE
D=A;JMP
D=!D
D=!D;JGT
D=!D;JEQ
D=!D;JGE
D=!D;JLT
D=!D;JNE
D=!D;JLE
D=!D;JMP
D=!A
D=!A;JGT
D=!A;JEQ
D=!A;JGE
D=!A;JLT
D=!A;JNE
D=!A;JLE
D=!A;JMP
D=-D
D=-D;JGT
D=-D;JEQ
D=-D;JGE
D=-D;JLT
D=-D;JNE
D=-D;JLE
D=-D;JMP
D=-A
D=-A;JGT
D=-A;JEQ
D=-A;JGE
D=-A;JLT
D=-A;JNE
D=-A;JLE
D=-A;JMP
D=D+1
D=D+1;JGT
D=D+1;JEQ
D=D+1;JGE
D=D+1;JLT
D=D+1;JNE
D=D+1;JLE
D=D+1;JMP
D=A+1
D=A+1;JGT
D=A+1;JEQ
D=A+1;JGE
D=A+1;JLT
D=A+1;JNE
D=A+1;JLE
D=A+1;JMP
D=D-1
D=D-1;JGT
D=D-1;JEQ
D=D-1;JGE
D=D-1;JLT
D=D-1;JNE
D=D-1;JLE
D=D-1;JMP
D=A-1
D=A-1;JGT
D=A-1;JEQ
D=A-1;JGE
D=A-1;JLT
D=A-1;JNE
D=A-1;JLE
D=A-1;JMP
D=D+A
D=D+A;JGT
D=D+A;JEQ
D=D+A;JGE
D=D+A;JLT
D=D+A;JNE
D=D+A;JLE
D=D+A;JMP
D=D-A
D=D-A;JGT
D=D-A;JEQ
D=D-A;JGE
D=D-A;JLT
D=D-A;JNE
D=D-A;JLE
D=D-A;JMP
D=A-D
D=A-D;JGT
D=A-D;JEQ
D=A-D;JGE
D=A-D;JLT
D=A-D;JNE
D=A-D;JLE
D=A-D;JMP
D=D&A
D=D&A;JGT
D=D&A;JEQ
D=D&A;JGE
D=D&A;JLT
D=D&A;JNE
D=D&A;JLE
D=D&A;JMP
D=D|A
D=D|A;JGT
D=D|A;JEQ
D=D|A;JGE
D=D|A;JLT
D=D|A;JNE
D=D|A;JLE
D=D|A;JMP
D=M
D=M;JGT
D=M;JEQ
D=M;JGE
D=M;JLT
D=M;JNE
D=M;JLE
D=M;JMP
D=!M
D=!M;JGT
D=!M;JEQ
D=!M;JGE
D=!M;JLT
D=!M;JNE
D=!M;JLE
D=!M;JMP
D=-M
D=-M;JGT
D=-M;JEQ
D=-M;JGE
D=-M;JLT
D=-M;JNE
D=-M;JLE
D=-M;JMP
D=M+1
D=M+1;JGT
D=M+1;JEQ
D=M+1;JGE
D=M+1;JLT
D=M+1;JNE
D=M+1;JLE
D=M+1;JMP
D=M-1
D=M-1;JGT
D=M-1;JEQ
D=M-1;JGE
D=M-1;JLT
D=M-1;JNE
D=M-1;JLE
D=M-1;JMP
D=D+M
D=D+M;JGT
D=D+M;JEQ
D=D+M;JGE
D=D+M;JLT
D=D+M;JNE
D=D+M;JLE
D=D+M;JMP
D=D-M
D=D-M;JGT
D=D-M;JEQ
D=D-M;JGE
D=D-M;JLT
D=D-M;JNE
D=D-M;JLE
D=D-M;JMP
D=M-D
D=M-D;JGT
D=M-D;JEQ
D=M-D;JGE
D=M-D;JLT
D=M-D;JNE
D=M-D;JLE
D=M-D;JMP
D=D&M
D=D&M;JGT
D=D&M;JEQ
D=D&M;JGE
D=D&M;JLT
D=D&M;JNE
D=D&M;JLE
D=D&M;JMP
D=D|M
D=D|M;JGT
D=D|M;JEQ
D=D|M;JGE
D=D|M;JLT
D=D|M;JNE
D=D|M;JLE
D=D|M;JMP
MD=1
MD=1;JGT
MD=1;JEQ
MD=1;JGE
MD=1;JLT
MD=1;JNE
MD=1;JLE
MD=1;JMP
MD=-1
MD=-1;JGT
MD=-1;JEQ
MD=-1;JGE
MD=-1;JLT
MD=-1;JNE
MD=-1;JLE
MD=-1;JMP
MD=D
MD=D;JGT
MD=D;JEQ
MD=D;JGE
MD=D;JLT
MD=D;JNE
MD=D;JLE
MD=D;JMP
MD=A
MD=A;JGT
MD=A;JEQ
MD=A;JGE
MD=A;JLT
MD=A;JNE
MD=A;JLE
MD=A;JMP
MD=!D
MD=!D;JGT
MD=!D;JEQ
MD=!D;JGE
MD=!D;JLT
MD=!D;JNE
MD=!D;JLE
MD=!D;JMP
MD=!A
MD=!A;JGT
MD=!A;JEQ
MD=!A;JGE
MD=!A;JLT
MD=!A;JNE
MD=!A;JLE
MD=!A;JMP
MD=-D
MD=-D;JGT
MD=-D;JEQ
MD=-D;JGE
MD=-D;JLT
MD=-D;JNE
MD=-D;JLE
MD=-D;JMP
MD=-A
MD=-A;JGT
MD=-A;JEQ
MD=-A;JGE
MD=-A;JLT
MD=-A;JNE
MD=-A;JLE
MD=-A;JMP
MD=D+1
MD=D+1;JGT
MD=D+1;JEQ
MD=D+1;JGE
MD=D+1;JLT
MD=D+1;JNE
MD=D+1;JLE
MD=D+1;JMP
MD=A+1
MD=A+1;JGT
MD=A+1;JEQ
MD=A+1;JGE
MD=A+1;JLT
MD=A+1;JNE
MD=A+1;JLE
MD=A+1;JMP
MD=D-1
MD=D-1;JGT
MD=D-1;JEQ
MD=D-1;JGE
MD=D-1;JLT
MD=D-1;JNE
MD=D-1;JLE
MD=D-1;JMP
MD=A-1
MD=A-1;JGT
MD=A-1;JEQ
MD=A-1;JGE
MD=A-1;JLT
MD=A-1;JNE
MD=A-1;JLE
MD=A-1;JMP
MD=D+A
MD=D+A;JGT
MD=D+A;JEQ
MD=D+A;JGE
MD=D+A;JLT
MD=D+A;JNE
MD=D+A;JLE
MD=D+A;JMP
MD=D-A
MD=D-A;JGT
MD=D-A;JEQ
MD=D-A;JGE
MD=D-A;JLT
MD=D-A;JNE
MD=D-A;JLE
MD=D-A;JMP
MD=A-D
MD=A-D;JGT
MD=A-D;JEQ
MD=A-D;JGE
MD=A-D;JLT
MD=A-D;JNE
MD=A-D;JLE
MD=A-D;JMP
MD=D&A
MD=D&A;JGT
MD=D&A;JEQ
MD=D&A;JGE
MD=D&A;JLT
MD=D&A;JNE
MD=D&A;JLE
MD=D&A;JMP
MD=D|A
MD=D|A;JGT
MD=D|A;JEQ
MD=D|A;JGE
MD=D|A;JLT
MD=D|A;JNE
MD=D|A;JLE
MD=D|A;JMP
MD=M
MD=M;JGT
MD=M;JEQ
MD=M;JGE
MD=M;JLT
MD=M;JNE
MD=M;JLE
MD=M;JMP
MD=!M
MD=!M;JGT
MD=!M;JEQ
MD=!M;JGE
MD=!M;JLT
MD=!M;JNE
MD=!M;JLE
MD=!M;JMP
MD=-M
MD=-M;JGT
MD=-M;JEQ
MD=-M;JGE
MD=-M;JLT
MD=-M;JNE
MD=-M;JLE
MD=-M;JMP
MD=M+1
MD=M+1;JGT
MD=M+1;JEQ
MD=M+1;JGE
MD=M+1;JLT
MD=M+1;JNE
MD=M+1;JLE
MD=M+1;JMP
MD=M-1
MD=M-1;JGT
MD=M-1;JEQ
MD=M-1;JGE
MD=M-1;JLT
MD=M-1;JNE
MD=M-1;JLE
MD=M-1;JMP
MD=D+M
MD=D+M;JGT
MD=D+M;JEQ
MD=D+M;JGE
MD=D+M;JLT
MD=D+M;JNE
MD=D+M;JLE
MD=D+M;JMP
MD=D-M
MD=D-M;JGT
MD=D-M;JEQ
MD=D-M;JGE
MD=D-M;JLT
MD=D-M;JNE
MD=D-M;JLE
MD=D-M;JMP
MD=M-D
MD=M-D;JGT
MD=M-D;JEQ
MD=M-D;JGE
MD=M-D;JLT
MD=M-D;JNE
MD=M-D;JLE
MD=M-D;JMP
MD=D&M
MD=D&M;JGT
MD=D&M;JEQ
MD=D&M;JGE
MD=D&M;JLT
MD=D&M;JNE
MD=D&M;JLE
MD=D&M;JMP
MD=D|M
MD=D|M;JGT
MD=D|M;JEQ
MD=D|M;JGE
MD=D|M;JLT
MD=D|M;JNE
MD=D|M;JLE
MD=D|M;JMP
A=1
A=1;JGT
A=1;JEQ
A=1;JGE
A=1;JLT
A=1;JNE
A=1;JLE
A=1;JMP
A=-1
A=-1;JGT
A=-1;JEQ
A=-1;JGE
A=-1;JLT
A=-1;JNE
A=-1;JLE
A=-1;JMP
A=D
A=D;JGT
A=D;JEQ
A=D;JGE
A=D;JLT
A=D;JNE
A=D;JLE
A=D;JMP
A=A
A=A;JGT
A=A;JEQ
A=A;JGE
A=A;JLT
A=A;JNE
A=A;JLE
A=A;JMP
A=!D
A=!D;JGT
A=!D;JEQ
A=!D;JGE
A=!D;JLT
A=!D;JNE
A=!D;JLE
A=!D;JMP
A=!A
A=!A;JGT
A=!A;JEQ
A=!A;JGE
A=!A;JLT
A=!A;JNE
A=!A;JLE
A=!A;JMP
A=-D
A=-D;JGT
A=-D;JEQ
A=-D;JGE
A=-D;JLT
A=-D;JNE
A=-D;JLE
A=-D;JMP
A=-A
A=-A;JGT
A=-A;JEQ
A=-A;JGE
A=-A;JLT
A=-A;JNE
A=-A;JLE
A=-A;JMP
A=D+1
A=D+1;JGT
A=D+1;JEQ
A=D+1;JGE
A=D+1;JLT
A=D+1;JNE
A=D+1;JLE
A=D+1;JMP
A=A+1
A=A+1;JGT
A=A+1;JEQ
A=A+1;JGE
A=A+1;JLT
A=A+1;JNE
A=A+1;JLE
A=A+1;JMP
A=D-1
A=D-1;JGT
A=D-1;JEQ
A=D-1;JGE
A=D-1;JLT
A=D-1;JNE
A=D-1;JLE
A=D-1;JMP
A=A-1
A=A-1;JGT
A=A-1;JEQ
A=A-1;JGE
A=A-1;JLT
A=A-1;JNE
A=A-1;JLE
A=A-1;JMP
A=D+A
A=D+A;JGT
A=D+A;JEQ
A=D+A;JGE
A=D+A;JLT
A=D+A;JNE
A=D+A;JLE
A=D+A;JMP
A=D-A
A=D-A;JGT
A=D-A;JEQ
A=D-A;JGE
A=D-A;JLT
A=D-A;JNE
A=D-A;JLE
A=D-A;JMP
A=A-D
A=A-D;JGT
A=A-D;JEQ
A=A-D;JGE
A=A-D;JLT
A=A-D;JNE
A=A-D;JLE
A=A-D;JMP
A=D&A
A=D&A;JGT
A=D&A;JEQ
A=D&A;JGE
A=D&A;JLT
A=D&A;JNE
A=D&A;JLE
A=D&A;JMP
A=D|A
A=D|A;JGT
A=D|A;JEQ
A=D|A;JGE
A=D|A;JLT
A=D|A;JNE
A=D|A;JLE
A=D|A;JMP
A=M
A=M;JGT
A=M;JEQ
A=M;JGE
A=M;JLT
A=M;JNE
A=M;JLE
A=M;JMP
A=!M
A=!M;JGT
A=!M;JEQ
A=!M;JGE
A=!M;JLT
A=!M;JNE
A=!M;JLE
A=!M;JMP
A=-M
A=-M;JGT
A=-M;JEQ
A=-M;JGE
A=-M;JLT
A=-M;JNE
A=-M;JLE
A=-M;JMP
A=M+1
A=M+1;JGT
A=M+1;JEQ
A=M+1;JGE
A=M+1;JLT
A=M+1;JNE
A=M+1;JLE
A=M+1;JMP
A=M-1
A=M-1;JGT
A=M-1;JEQ
A=M-1;JGE
A=M-1;JLT
A=M-1;JNE
A=M-1;JLE
A=M-1;JMP
A=D+M
A=D+M;JGT
A=D+M;JEQ
A=D+M;JGE
A=D+M;JLT
A=D+M;JNE
A=D+M;JLE
A=D+M;JMP
A=D-M
A=D-M;JGT
A=D-M;JEQ
A=D-M;JGE
A=D-M;JLT
A=D-M;JNE
A=D-M;JLE
A=D-M;JMP
A=M-D
A=M-D;JGT
A=M-D;JEQ
A=M-D;JGE
A=M-D;JLT
A=M-D;JNE
A=M-D;JLE
A=M-D;JMP
A=D&M
A=D&M;JGT
A=D&M;JEQ
A=D&M;JGE
A=D&M;JLT
A=D&M;JNE
A=D&M;JLE
A=D&M;JMP
A=D|M
A=D|M;JGT
A=D|M;JEQ
A=D|M;JGE
A=D|M;JLT
A=D|M;JNE
A=D|M;JLE
A=D|M;JMP
AM=1
AM=1;JGT
AM=1;JEQ
AM=1;JGE
AM=1;JLT
AM=1;JNE
AM=1;JLE
AM=1;JMP
AM=-1
AM=-1;JGT
AM=-1;JEQ
AM=-1;JGE
AM=-1;JLT
AM=-1;JNE
AM=-1;JLE
AM=-1;JMP
AM=D
AM=D;JGT
AM=D;JEQ
AM=D;JGE
AM=D;JLT
AM=D;JNE
AM=D;JLE
AM=D;JMP
AM=A
AM=A;JGT
AM=A;JEQ
AM=A;JGE
AM=A;JLT
AM=A;JNE
AM=A;JLE
AM=A;JMP
AM=!D
AM=!D;JGT
AM=!D;JEQ
AM=!D;JGE
AM=!D;JLT
AM=!D;JNE
AM=!D;JLE
AM=!D;JMP
AM=!A
AM=!A;JGT
AM=!A;JEQ
AM=!A;JGE
AM=!A;JLT
AM=!A;JNE
AM=!A;JLE
AM=!A;JMP
AM=-D
AM=-D;JGT
AM=-D;JEQ
AM=-D;JGE
AM=-D;JLT
AM=-D;JNE
AM=-D;JLE
AM=-D;JMP
AM=-A
AM=-A;JGT
AM=-A;JEQ
AM=-A;JGE
AM=-A;JLT
AM=-A;JNE
AM=-A;JLE
AM=-A;JMP
AM=D+1
AM=D+1;JGT
AM=D+1;JEQ
AM=D+1;JGE
AM=D+1;JLT
AM=D+1;JNE
AM=D+1;JLE
AM=D+1;JMP
AM=A+1
AM=A+1;JGT
AM=A+1;JEQ
AM=A+1;JGE
AM=A+1;JLT
AM=A+1;JNE
AM=A+1;JLE
AM=A+1;JMP
AM=D-1
AM=D-1;JGT
AM=D-1;JEQ
AM=D-1;JGE
AM=D-1;JLT
AM=D-1;JNE
AM=D-1;JLE
AM=D-1;JMP
AM=A-1
AM=A-1;JGT
AM=A-1;JEQ
AM=A-1;JGE
AM=A-1;JLT
AM=A-1;JNE
AM=A-1;JLE
AM=A-1;JMP
AM=D+A
AM=D+A;JGT
AM=D+A;JEQ
AM=D+A;JGE
AM=D+A;JLT
AM=D+A;JNE
AM=D+A;JLE
AM=D+A;JMP
AM=D-A
AM=D-A;JGT
AM=D-A;JEQ
AM=D-A;JGE
AM=D-A;JLT
AM=D-A;JNE
AM=D-A;JLE
AM=D-A;JMP
AM=A-D
AM=A-D;JGT
AM=A-D;JEQ
AM=A-D;JGE
AM=A-D;JLT
AM=A-D;JNE
AM=A-D;JLE
AM=A-D;JMP
AM=D&A
AM=D&A;JGT
AM=D&A;JEQ
AM=D&A;JGE
AM=D&A;JLT
AM=D&A;JNE
AM=D&A;JLE
AM=D&A;JMP
AM=D|A
AM=D|A;JGT
AM=D|A;JEQ
AM=D|A;JGE
AM=D|A;JLT
AM=D|A;JNE
AM=D|A;JLE
AM=D|A;JMP
AM=M
AM=M;JGT
AM=M;JEQ
AM=M;JGE
AM=M;JLT
AM=M;JNE
AM=M;JLE
AM=M;JMP
AM=!M
AM=!M;JGT
AM=!M;JEQ
AM=!M;JGE
AM=!M;JLT
AM=!M;JNE
AM=!M;JLE
AM=!M;JMP
AM=-M
AM=-M;JGT
AM=-M;JEQ
AM=-M;JGE
AM=-M;JLT
AM=-M;JNE
AM=-M;JLE
AM=-M;JMP
AM=M+1
AM=M+1;JGT
AM=M+1;JEQ
AM=M+1;JGE
AM=M+1;JLT
AM=M+1;JNE
AM=M+1;JLE
AM=M+1;JMP
AM=M-1
AM=M-1;JGT
AM=M-1;JEQ
AM=M-1;JGE
AM=M-1;JLT
AM=M-1;JNE
AM=M-1;JLE
AM=M-1;JMP
AM=D+M
AM=D+M;JGT
AM=D+M;JEQ
AM=D+M;JGE
AM=D+M;JLT
AM=D+M;JNE
AM=D+M;JLE
AM=D+M;JMP
AM=D-M
AM=D-M;JGT
AM=D-M;JEQ
AM=D-M;JGE
AM=D-M;JLT
AM=D-M;JNE
AM=D-M;JLE
AM=D-M;JMP
AM=M-D
AM=M-D;JGT
AM=M-D;JEQ
AM=M-D;JGE
AM=M-D;JLT
AM=M-D;JNE
AM=M-D;JLE
AM=M-D;JMP
AM=D&M
AM=D&M;JGT
AM=D&M;JEQ
AM=D&M;JGE
AM=D&M;JLT
AM=D&M;JNE
AM=D&M;JLE
AM=D&M;JMP
AM=D|M
AM=D|M;JGT
AM=D|M;JEQ
AM=D|M;JGE
AM=D|M;JLT
AM=D|M;JNE
AM=D|M;JLE
AM=D|M;JMP
AD=1
AD=1;JGT
AD=1;JEQ
AD=1;JGE
AD=1;JLT
AD=1;JNE
AD=1;JLE
AD=1;JMP
AD=-1
AD=-1;JGT
AD=-1;JEQ
AD=-1;JGE
AD=-1;JLT
AD=-1;JNE
AD=-1;JLE
AD=-1;JMP
AD=D
AD=D;JGT
AD=D;JEQ
AD=D;JGE
AD=D;JLT
AD=D;JNE
AD=D;JLE
AD=D;JMP
AD=A
AD=A;JGT
AD=A;JEQ
AD=A;JGE
AD=A;JLT
AD=A;JNE
AD=A;JLE
AD=A;JMP
AD=!D
AD=!D;JGT
AD=!D;JEQ
AD=!D;JGE
AD=!D;JLT
AD=!D;JNE
AD=!D;JLE
AD=!D;JMP
AD=!A
AD=!A;JGT
AD=!A;JEQ
AD=!A;JGE
AD=!A;JLT
AD=!A;JNE
AD=!A;JLE
AD=!A;JMP
AD=-D
AD=-D;JGT
AD=-D;JEQ
AD=-D;JGE
AD=-D;JLT
AD=-D;JNE
AD=-D;JLE
AD=-D;JMP
AD=-A
AD=-A;JGT
AD=-A;JEQ
AD=-A;JGE
AD=-A;JLT
AD=-A;JNE
AD=-A;JLE
AD=-A;JMP
AD=D+1
AD=D+1;JGT
AD=D+1;JEQ
AD=D+1;JGE
AD=D+1;JLT
AD=D+1;JNE
AD=D+1;JLE
AD=D+1;JMP
AD=A+1
AD=A+1;JGT
AD=A+1;JEQ
AD=A+1;JGE
AD=A+1;JLT
AD=A+1;JNE
AD=A+1;JLE
AD=A+1;JMP
AD=D-1
AD=D-1;JGT
AD=D-1;JEQ
AD=D-1;JGE
AD=D-1;JLT
AD=D-1;JNE
AD=D-1;JLE
AD=D-1;JMP
AD=A-1
AD=A-1;JGT
AD=A-1;JEQ
AD=A-1;JGE
AD=A-1;JLT
AD=A-1;JNE
AD=A-1;JLE
AD=A-1;JMP
AD=D+A
AD=D+A;JGT
AD=D+A;JEQ
AD=D+A;JGE
AD=D+A;JLT
AD=D+A;JNE
AD=D+A;JLE
AD=D+A;JMP
AD=D-A
AD=D-A;JGT
AD=D-A;JEQ
AD=D-A;JGE
AD=D-A;JLT
AD=D-A;JNE
AD=D-A;JLE
AD=D-A;JMP
AD=A-D
AD=A-D;JGT
AD=A-D;JEQ
AD=A-D;JGE
AD=A-D;JLT
AD=A-D;JNE
AD=A-D;JLE
AD=A-D;JMP
AD=D&A
AD=D&A;JGT
AD=D&A;JEQ
AD=D&A;JGE
AD=D&A;JLT
AD=D&A;JNE
AD=D&A;JLE
AD=D&A;JMP
AD=D|A
AD=D|A;JGT
AD=D|A;JEQ
AD=D|A;JGE
AD=D|A;JLT
AD=D|A;JNE
AD=D|A;JLE
AD=D|A;JMP
AD=M
AD=M;JGT
AD=M;JEQ
AD=M;JGE
AD=M;JLT
AD=M;JNE
AD=M;JLE
AD=M;JMP
AD=!M
AD=!M;JGT
AD=!M;JEQ
AD=!M;JGE
AD=!M;JLT
AD=!M;JNE
AD=!M;JLE
AD=!M;JMP
AD=-M
AD=-M;JGT
AD=-M;JEQ
AD=-M;JGE
AD=-M;JLT
AD=-M;JNE
AD=-M;JLE
AD=-M;JMP
AD=M+1
AD=M+1;JGT
AD=M+1;JEQ
AD=M+1;JGE
AD=M+1;JLT
AD=M+1;JNE
AD=M+1;JLE
AD=M+1;JMP
AD=M-1
AD=M-1;JGT
AD=M-1;JEQ
AD=M-1;JGE
AD=M-1;JLT
AD=M-1;JNE
AD=M-1;JLE
AD=M-1;JMP
AD=D+M
AD=D+M;JGT
AD=D+M;JEQ
AD=D+M;JGE
AD=D+M;JLT
AD=D+M;JNE
AD=D+M;JLE
AD=D+M;JMP
AD=D-M
AD=D-M;JGT
AD=D-M;JEQ
AD=D-M;JGE
AD=D-M;JLT
AD=D-M;JNE
AD=D-M;JLE
AD=D-M;JMP
AD=M-D
AD=M-D;JGT
AD=M-D;JEQ
AD=M-D;JGE
AD=M-D;JLT
AD=M-D;JNE
AD=M-D;JLE
AD=M-D;JMP
AD=D&M
AD=D&M;JGT
AD=D&M;JEQ
AD=D&M;JGE
AD=D&M;JLT
AD=D&M;JNE
AD=D&M;JLE
AD=D&M;JMP
AD=D|M
AD=D|M;JGT
AD=D|M;JEQ
AD=D|M;JGE
AD=D|M;JLT
AD=D|M;JNE
AD=D|M;JLE
AD=D|M;JMP
AMD=1
AMD=1;JGT
AMD=1;JEQ
AMD=1;JGE
AMD=1;JLT
AMD=1;JNE
AMD=1;JLE
AMD=1;JMP
AMD=-1
AMD=-1;JGT
AMD=-1;JEQ
AMD=-1;JGE
AMD=-1;JLT
AMD=-1;JNE
AMD=-1;JLE
AMD=-1;JMP
AMD=D
AMD=D;JGT
AMD=D;JEQ
AMD=D;JGE
AMD=D;JLT
AMD=D;JNE
AMD=D;JLE
AMD=D;JMP
AMD=A
AMD=A;JGT
AMD=A;JEQ
AMD=A;JGE
AMD=A;JLT
AMD=A;JNE
AMD=A;JLE
AMD=A;JMP
AMD=!D
AMD=!D;JGT
AMD=!D;JEQ
AMD=!D;JGE
AMD=!D;JLT
AMD=!D;JNE
AMD=!D;JLE
AMD=!D;JMP
AMD=!A
AMD=!A;JGT
AMD=!A;JEQ
AMD=!A;JGE
AMD=!A;JLT
AMD=!A;JNE
AMD=!A;JLE
AMD=!A;JMP
AMD=-D
AMD=-D;JGT
AMD=-D;JEQ
AMD=-D;JGE
AMD=-D;JLT
AMD=-D;JNE
AMD=-D;JLE
AMD=-D;JMP
AMD=-A
AMD=-A;JGT
AMD=-A;JEQ
AMD=-A;JGE
AMD=-A;JLT
AMD=-A;JNE
AMD=-A;JLE
AMD=-A;JMP
AMD=D+1
AMD=D+1;JGT
AMD=D+1;JEQ
AMD=D+1;JGE
AMD=D+1;JLT
AMD=D+1;JNE
AMD=D+1;JLE
AMD=D+1;JMP
AMD=A+1
AMD=A+1;JGT
AMD=A+1;JEQ
AMD=A+1;JGE
AMD=A+1;JLT
AMD=A+1;JNE
AMD=A+1;JLE
AMD=A+1;JMP
AMD=D-1
AMD=D-1;JGT
AMD=D-1;JEQ
AMD=D-1;JGE
AMD=D-1;JLT
AMD=D-1;JNE
AMD=D-1;JLE
AMD=D-1;JMP
AMD=A-1
AMD=A-1;JGT
AMD=A-1;JEQ
AMD=A-1;JGE
AMD=A-1;JLT
AMD=A-1;JNE
AMD=A-1;JLE
AMD=A-1;JMP
AMD=D+A
AMD=D+A;JGT
AMD=D+A;JEQ
AMD=D+A;JGE
AMD=D+A;JLT
AMD=D+A;JNE
AMD=D+A;JLE
AMD=D+A;JMP
AMD=D-A
AMD=D-A;JGT
AMD=D-A;JEQ
AMD=D-A;JGE
AMD=D-A;JLT
AMD=D-A;JNE
AMD=D-A;JLE
AMD=D-A;JMP
AMD=A-D
AMD=A-D;JGT
AMD=A-D;JEQ
AMD=A-D;JGE
AMD=A-D;JLT
AMD=A-D;JNE
AMD=A-D;JLE
AMD=A-D;JMP
AMD=D&A
AMD=D&A;JGT
AMD=D&A;JEQ
AMD=D&A;JGE
AMD=D&A;JLT
AMD=D&A;JNE
AMD=D&A;JLE
AMD=D&A;JMP
AMD=D|A
AMD=D|A;JGT
AMD=D|A;JEQ
AMD=D|A;JGE
AMD=D|A;JLT
AMD=D|A;JNE
AMD=D|A;JLE
AMD=D|A;JMP
AMD=M
AMD=M;JGT
AMD=M;JEQ
AMD=M;JGE
AMD=M;JLT
AMD=M;JNE
AMD=M;JLE
AMD=M;JMP
AMD=!M
AMD=!M;JGT
AMD=!M;JEQ
AMD=!M;JGE
AMD=!M;JLT
AMD=!M;JNE
AMD=!M;JLE
AMD=!M;JMP
AMD=-M
AMD=-M;JGT
AMD=-M;JEQ
AMD=-M;JGE
AMD=-M;JLT
AMD=-M;JNE
AMD=-M;JLE
AMD=-M;JMP
AMD=M+1
AMD=M+1;JGT
AMD=M+1;JEQ
AMD=M+1;JGE
AMD=M+1;JLT
AMD=M+1;JNE
AMD=M+1;JLE
AMD=M+1;JMP
AMD=M-1
AMD=M-1;JGT
AMD=M-1;JEQ
AMD=M-1;JGE
AMD=M-1;JLT
AMD=M-1;JNE
AMD=M-1;JLE
AMD=M-1;JMP
AMD=D+M
AMD=D+M;JGT
AMD=D+M;JEQ
AMD=D+M;JGE
AMD=D+M;JLT
AMD=D+M;JNE
AMD=D+M;JLE
AMD=D+M;JMP
AMD=D-M
AMD=D-M;JGT
AMD=D-M;JEQ
AMD=D-M;JGE
AMD=D-M;JLT
AMD=D-M;JNE
AMD=D-M;JLE
AMD=D-M;JMP
AMD=M-D
AMD=M-D;JGT
AMD=M-D;JEQ
AMD=M-D;JGE
AMD=M-D;JLT
AMD=M-D;JNE
AMD=M-D;JLE
AMD=M-D;JMP
AMD=D&M
AMD=D&M;JGT
AMD=D&M;JEQ
AMD=D&M;JGE
AMD=D&M;JLT
AMD=D&M;JNE
AMD=D&M;JLE
AMD=D&M;JMP
AMD=D|M
AMD=D|M;JGT
AMD=D|M;JEQ
AMD=D|M;JGE
AMD=D|M;JLT
AMD=D|M;JNE
AMD=D|M;JLE
AMD=D|M;JMP
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TSTArchives.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "TSTArchives.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
namespace TST {
namespace {
const ::google::protobuf::Descriptor* CellID_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
CellID_reflection_ = NULL;
const ::google::protobuf::Descriptor* TableSize_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableSize_reflection_ = NULL;
const ::google::protobuf::Descriptor* CellRange_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
CellRange_reflection_ = NULL;
const ::google::protobuf::Descriptor* TableSelection_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableSelection_reflection_ = NULL;
const ::google::protobuf::Descriptor* TileRowInfo_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TileRowInfo_reflection_ = NULL;
const ::google::protobuf::Descriptor* Tile_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Tile_reflection_ = NULL;
const ::google::protobuf::Descriptor* TileStorage_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TileStorage_reflection_ = NULL;
const ::google::protobuf::Descriptor* TileStorage_Tile_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TileStorage_Tile_reflection_ = NULL;
const ::google::protobuf::Descriptor* PopUpMenuModel_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PopUpMenuModel_reflection_ = NULL;
const ::google::protobuf::Descriptor* PopUpMenuModel_CellValue_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PopUpMenuModel_CellValue_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* PopUpMenuModel_CellValueType_descriptor_ = NULL;
const ::google::protobuf::Descriptor* TableDataList_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableDataList_reflection_ = NULL;
const ::google::protobuf::Descriptor* TableDataList_ListEntry_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableDataList_ListEntry_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* TableDataList_ListType_descriptor_ = NULL;
const ::google::protobuf::Descriptor* TableRBTree_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableRBTree_reflection_ = NULL;
const ::google::protobuf::Descriptor* TableRBTree_Node_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableRBTree_Node_reflection_ = NULL;
const ::google::protobuf::Descriptor* HeaderStorageBucket_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
HeaderStorageBucket_reflection_ = NULL;
const ::google::protobuf::Descriptor* HeaderStorageBucket_Header_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
HeaderStorageBucket_Header_reflection_ = NULL;
const ::google::protobuf::Descriptor* HeaderStorage_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
HeaderStorage_reflection_ = NULL;
const ::google::protobuf::Descriptor* DataStore_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
DataStore_reflection_ = NULL;
const ::google::protobuf::Descriptor* TableInfoArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableInfoArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* EditingStateArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
EditingStateArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* WPTableInfoArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
WPTableInfoArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* TableStyleNetworkArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableStyleNetworkArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* TableModelArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableModelArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* DurationWrapperArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
DurationWrapperArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* Cell_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Cell_reflection_ = NULL;
const ::google::protobuf::Descriptor* MergeRegionMapArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
MergeRegionMapArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* CellMapArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
CellMapArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* CellMapArchive_CellMapEntry_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
CellMapArchive_CellMapEntry_reflection_ = NULL;
const ::google::protobuf::Descriptor* DoubleStyleMapArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
DoubleStyleMapArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* DoubleStyleMapArchive_DoubleStyleMapEntryArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
DoubleStyleMapArchive_DoubleStyleMapEntryArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* StyleTableMapArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
StyleTableMapArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* StyleTableMapArchive_StyleTableMapEntryArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
StyleTableMapArchive_StyleTableMapEntryArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* SelectionArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
SelectionArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* FilterRuleArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
FilterRuleArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* TableStyleArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TableStyleArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* CellStyleArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
CellStyleArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* FormulaPredicateArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
FormulaPredicateArchive_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* FormulaPredicateArchive_FormulaPredicateType_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* FormulaPredicateArchive_QualifierType_descriptor_ = NULL;
const ::google::protobuf::Descriptor* ConditionalStyleSetArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ConditionalStyleSetArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* ConditionalStyleSetArchive_ConditionalStyleRule_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ConditionalStyleSetArchive_ConditionalStyleRule_reflection_ = NULL;
const ::google::protobuf::Descriptor* FilterSetArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
FilterSetArchive_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* FilterSetArchive_FilterSetType_descriptor_ = NULL;
const ::google::protobuf::Descriptor* TokenAttachmentArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
TokenAttachmentArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* FormulaArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
FormulaArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* ExpressionNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ExpressionNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* BooleanNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
BooleanNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* NumberNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
NumberNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* StringNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
StringNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* IdentifierNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
IdentifierNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* ArrayNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ArrayNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* ListNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ListNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* OperatorNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
OperatorNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* PostfixOperatorNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PostfixOperatorNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* PrefixOperatorNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PrefixOperatorNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* FunctionNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
FunctionNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* FunctionEndNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
FunctionEndNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* DateNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
DateNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* ReferenceNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ReferenceNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* DurationNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
DurationNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* ArgumentPlaceholderNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ArgumentPlaceholderNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* EmptyExpressionNodeArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
EmptyExpressionNodeArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* LayoutHintArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
LayoutHintArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* CompletionTokenAttachmentArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
CompletionTokenAttachmentArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* HiddenStateFormulaOwnerArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
HiddenStateFormulaOwnerArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* RichTextPayloadArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
RichTextPayloadArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* FormulaEqualsTokenAttachmentArchive_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
FormulaEqualsTokenAttachmentArchive_reflection_ = NULL;
const ::google::protobuf::Descriptor* CellRegion_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
CellRegion_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* CellType_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* CellValueType_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* SelectionTypeArchive_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* FillDirectionArchive_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* MergeActionArchive_descriptor_ = NULL;
const ::google::protobuf::EnumDescriptor* HideShowActionArchive_descriptor_ = NULL;
} // namespace
void protobuf_AssignDesc_TSTArchives_2eproto() {
protobuf_AddDesc_TSTArchives_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"TSTArchives.proto");
GOOGLE_CHECK(file != NULL);
CellID_descriptor_ = file->message_type(0);
static const int CellID_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellID, packeddata_),
};
CellID_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
CellID_descriptor_,
CellID::default_instance_,
CellID_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellID, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellID, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(CellID));
TableSize_descriptor_ = file->message_type(1);
static const int TableSize_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSize, packeddata_),
};
TableSize_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableSize_descriptor_,
TableSize::default_instance_,
TableSize_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSize, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSize, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableSize));
CellRange_descriptor_ = file->message_type(2);
static const int CellRange_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellRange, origin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellRange, size_),
};
CellRange_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
CellRange_descriptor_,
CellRange::default_instance_,
CellRange_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellRange, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellRange, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(CellRange));
TableSelection_descriptor_ = file->message_type(3);
static const int TableSelection_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSelection, cellrange_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSelection, extendedcellrange_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSelection, extendedcellrangevalid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSelection, selection_type_),
};
TableSelection_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableSelection_descriptor_,
TableSelection::default_instance_,
TableSelection_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSelection, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableSelection, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableSelection));
TileRowInfo_descriptor_ = file->message_type(4);
static const int TileRowInfo_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileRowInfo, storage_version_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileRowInfo, tilerowindex_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileRowInfo, cellcount_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileRowInfo, cellstoragebuffer_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileRowInfo, celloffsets_),
};
TileRowInfo_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TileRowInfo_descriptor_,
TileRowInfo::default_instance_,
TileRowInfo_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileRowInfo, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileRowInfo, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TileRowInfo));
Tile_descriptor_ = file->message_type(5);
static const int Tile_offsets_[6] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Tile, maxcolumn_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Tile, maxrow_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Tile, numcells_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Tile, numrows_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Tile, storage_version_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Tile, rowinfos_),
};
Tile_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Tile_descriptor_,
Tile::default_instance_,
Tile_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Tile, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Tile, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Tile));
TileStorage_descriptor_ = file->message_type(6);
static const int TileStorage_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileStorage, tiles_),
};
TileStorage_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TileStorage_descriptor_,
TileStorage::default_instance_,
TileStorage_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileStorage, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileStorage, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TileStorage));
TileStorage_Tile_descriptor_ = TileStorage_descriptor_->nested_type(0);
static const int TileStorage_Tile_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileStorage_Tile, tileid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileStorage_Tile, tile_),
};
TileStorage_Tile_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TileStorage_Tile_descriptor_,
TileStorage_Tile::default_instance_,
TileStorage_Tile_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileStorage_Tile, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TileStorage_Tile, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TileStorage_Tile));
PopUpMenuModel_descriptor_ = file->message_type(7);
static const int PopUpMenuModel_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel, item_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel, tsce_item_),
};
PopUpMenuModel_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PopUpMenuModel_descriptor_,
PopUpMenuModel::default_instance_,
PopUpMenuModel_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PopUpMenuModel));
PopUpMenuModel_CellValue_descriptor_ = PopUpMenuModel_descriptor_->nested_type(0);
static const int PopUpMenuModel_CellValue_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel_CellValue, cell_value_type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel_CellValue, boolean_value_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel_CellValue, date_value_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel_CellValue, number_value_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel_CellValue, string_value_),
};
PopUpMenuModel_CellValue_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PopUpMenuModel_CellValue_descriptor_,
PopUpMenuModel_CellValue::default_instance_,
PopUpMenuModel_CellValue_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel_CellValue, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PopUpMenuModel_CellValue, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PopUpMenuModel_CellValue));
PopUpMenuModel_CellValueType_descriptor_ = PopUpMenuModel_descriptor_->enum_type(0);
TableDataList_descriptor_ = file->message_type(8);
static const int TableDataList_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList, listtype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList, nextlistid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList, entries_),
};
TableDataList_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableDataList_descriptor_,
TableDataList::default_instance_,
TableDataList_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableDataList));
TableDataList_ListEntry_descriptor_ = TableDataList_descriptor_->nested_type(0);
static const int TableDataList_ListEntry_offsets_[10] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, key_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, refcount_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, string_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, reference_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, formula_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, region_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, custom_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, richtextpayload_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, comment_storage_),
};
TableDataList_ListEntry_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableDataList_ListEntry_descriptor_,
TableDataList_ListEntry::default_instance_,
TableDataList_ListEntry_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableDataList_ListEntry, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableDataList_ListEntry));
TableDataList_ListType_descriptor_ = TableDataList_descriptor_->enum_type(0);
TableRBTree_descriptor_ = file->message_type(9);
static const int TableRBTree_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableRBTree, nodes_),
};
TableRBTree_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableRBTree_descriptor_,
TableRBTree::default_instance_,
TableRBTree_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableRBTree, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableRBTree, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableRBTree));
TableRBTree_Node_descriptor_ = TableRBTree_descriptor_->nested_type(0);
static const int TableRBTree_Node_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableRBTree_Node, key_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableRBTree_Node, value_),
};
TableRBTree_Node_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableRBTree_Node_descriptor_,
TableRBTree_Node::default_instance_,
TableRBTree_Node_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableRBTree_Node, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableRBTree_Node, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableRBTree_Node));
HeaderStorageBucket_descriptor_ = file->message_type(10);
static const int HeaderStorageBucket_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket, buckethashfunction_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket, headers_),
};
HeaderStorageBucket_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
HeaderStorageBucket_descriptor_,
HeaderStorageBucket::default_instance_,
HeaderStorageBucket_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(HeaderStorageBucket));
HeaderStorageBucket_Header_descriptor_ = HeaderStorageBucket_descriptor_->nested_type(0);
static const int HeaderStorageBucket_Header_offsets_[6] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket_Header, index_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket_Header, size_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket_Header, hidingstate_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket_Header, numberofcells_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket_Header, cell_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket_Header, text_style_),
};
HeaderStorageBucket_Header_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
HeaderStorageBucket_Header_descriptor_,
HeaderStorageBucket_Header::default_instance_,
HeaderStorageBucket_Header_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket_Header, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorageBucket_Header, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(HeaderStorageBucket_Header));
HeaderStorage_descriptor_ = file->message_type(11);
static const int HeaderStorage_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorage, buckethashfunction_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorage, buckets_),
};
HeaderStorage_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
HeaderStorage_descriptor_,
HeaderStorage::default_instance_,
HeaderStorage_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorage, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderStorage, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(HeaderStorage));
DataStore_descriptor_ = file->message_type(12);
static const int DataStore_offsets_[19] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, rowheaders_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, columnheaders_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, tiles_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, stringtable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, styletable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, formulatable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, formulaerrortable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, formattable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, multiplechoicelistformattable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, merge_region_map_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, customformattable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, nextrowstripid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, nextcolumnstripid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, rowtiletree_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, columntiletree_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, storage_version_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, richtextpayloadtable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, conditionalstyletable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, commentstoragetable_),
};
DataStore_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
DataStore_descriptor_,
DataStore::default_instance_,
DataStore_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DataStore, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(DataStore));
TableInfoArchive_descriptor_ = file->message_type(13);
static const int TableInfoArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableInfoArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableInfoArchive, tablemodel_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableInfoArchive, editingstate_),
};
TableInfoArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableInfoArchive_descriptor_,
TableInfoArchive::default_instance_,
TableInfoArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableInfoArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableInfoArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableInfoArchive));
EditingStateArchive_descriptor_ = file->message_type(14);
static const int EditingStateArchive_offsets_[7] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EditingStateArchive, editingstorage_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EditingStateArchive, editingcell_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EditingStateArchive, selection_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EditingStateArchive, lasteditingcellid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EditingStateArchive, editingcellid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EditingStateArchive, deprecated_setup_textundoredotransaction_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EditingStateArchive, cell_was_edited_in_current_session_),
};
EditingStateArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
EditingStateArchive_descriptor_,
EditingStateArchive::default_instance_,
EditingStateArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EditingStateArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EditingStateArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(EditingStateArchive));
WPTableInfoArchive_descriptor_ = file->message_type(15);
static const int WPTableInfoArchive_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WPTableInfoArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WPTableInfoArchive, storage_),
};
WPTableInfoArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
WPTableInfoArchive_descriptor_,
WPTableInfoArchive::default_instance_,
WPTableInfoArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WPTableInfoArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WPTableInfoArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(WPTableInfoArchive));
TableStyleNetworkArchive_descriptor_ = file->message_type(16);
static const int TableStyleNetworkArchive_offsets_[12] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, table_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, body_text_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, header_row_text_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, header_column_text_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, footer_row_text_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, body_cell_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, header_row_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, header_column_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, footer_row_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, table_name_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, table_name_shape_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, preset_index_),
};
TableStyleNetworkArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableStyleNetworkArchive_descriptor_,
TableStyleNetworkArchive::default_instance_,
TableStyleNetworkArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleNetworkArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableStyleNetworkArchive));
TableModelArchive_descriptor_ = file->message_type(17);
static const int TableModelArchive_offsets_[42] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, table_id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, from_table_id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, table_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, body_text_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, header_row_text_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, header_column_text_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, footer_row_text_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, body_cell_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, header_row_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, header_column_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, footer_row_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, table_name_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, table_name_shape_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, data_store_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, provider_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_rows_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_columns_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, table_name_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, table_name_enabled_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, table_name_height_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, table_name_border_enabled_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_header_rows_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_header_columns_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_footer_rows_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, header_rows_frozen_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, header_columns_frozen_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_hidden_rows_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_hidden_columns_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_user_hidden_rows_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_user_hidden_columns_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, number_of_filtered_rows_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, default_row_height_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, default_column_width_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, origin_offset_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, preset_index_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, repeating_header_rows_enabled_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, repeating_header_columns_enabled_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, style_apply_clears_all_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, hidden_state_formula_owner_for_columns_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, hidden_state_formula_owner_for_rows_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, filter_set_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, conditional_style_formula_owner_id_),
};
TableModelArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableModelArchive_descriptor_,
TableModelArchive::default_instance_,
TableModelArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableModelArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableModelArchive));
DurationWrapperArchive_descriptor_ = file->message_type(18);
static const int DurationWrapperArchive_offsets_[1] = {
};
DurationWrapperArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
DurationWrapperArchive_descriptor_,
DurationWrapperArchive::default_instance_,
DurationWrapperArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DurationWrapperArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DurationWrapperArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(DurationWrapperArchive));
Cell_descriptor_ = file->message_type(19);
static const int Cell_offsets_[23] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, valuetype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, numbervalue_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, stringvalue_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, boolvalue_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, cell_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, text_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, formula_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, formulaerror_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, current_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, number_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, currency_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, duration_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, date_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, control_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, custom_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, base_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, multiple_choice_list_format_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, explicit_format_flags_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, richtextpayload_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, conditional_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, multiple_choice_list_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, comment_storage_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, conditional_style_applied_rule_),
};
Cell_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Cell_descriptor_,
Cell::default_instance_,
Cell_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Cell, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Cell));
MergeRegionMapArchive_descriptor_ = file->message_type(20);
static const int MergeRegionMapArchive_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionMapArchive, cell_range_),
};
MergeRegionMapArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
MergeRegionMapArchive_descriptor_,
MergeRegionMapArchive::default_instance_,
MergeRegionMapArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionMapArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MergeRegionMapArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(MergeRegionMapArchive));
CellMapArchive_descriptor_ = file->message_type(21);
static const int CellMapArchive_offsets_[6] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive, capacity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive, count_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive, cellmapentry_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive, may_modify_formulas_in_cells_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive, may_modify_values_referenced_by_formulas_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive, applies_to_hidden_),
};
CellMapArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
CellMapArchive_descriptor_,
CellMapArchive::default_instance_,
CellMapArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(CellMapArchive));
CellMapArchive_CellMapEntry_descriptor_ = CellMapArchive_descriptor_->nested_type(0);
static const int CellMapArchive_CellMapEntry_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive_CellMapEntry, cellid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive_CellMapEntry, cell_),
};
CellMapArchive_CellMapEntry_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
CellMapArchive_CellMapEntry_descriptor_,
CellMapArchive_CellMapEntry::default_instance_,
CellMapArchive_CellMapEntry_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive_CellMapEntry, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellMapArchive_CellMapEntry, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(CellMapArchive_CellMapEntry));
DoubleStyleMapArchive_descriptor_ = file->message_type(22);
static const int DoubleStyleMapArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive, capacity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive, count_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive, cell_map_entry_),
};
DoubleStyleMapArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
DoubleStyleMapArchive_descriptor_,
DoubleStyleMapArchive::default_instance_,
DoubleStyleMapArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(DoubleStyleMapArchive));
DoubleStyleMapArchive_DoubleStyleMapEntryArchive_descriptor_ = DoubleStyleMapArchive_descriptor_->nested_type(0);
static const int DoubleStyleMapArchive_DoubleStyleMapEntryArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive_DoubleStyleMapEntryArchive, cell_id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive_DoubleStyleMapEntryArchive, old_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive_DoubleStyleMapEntryArchive, new_style_),
};
DoubleStyleMapArchive_DoubleStyleMapEntryArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
DoubleStyleMapArchive_DoubleStyleMapEntryArchive_descriptor_,
DoubleStyleMapArchive_DoubleStyleMapEntryArchive::default_instance_,
DoubleStyleMapArchive_DoubleStyleMapEntryArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive_DoubleStyleMapEntryArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleStyleMapArchive_DoubleStyleMapEntryArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(DoubleStyleMapArchive_DoubleStyleMapEntryArchive));
StyleTableMapArchive_descriptor_ = file->message_type(23);
static const int StyleTableMapArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive, capacity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive, count_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive, map_entry_),
};
StyleTableMapArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
StyleTableMapArchive_descriptor_,
StyleTableMapArchive::default_instance_,
StyleTableMapArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(StyleTableMapArchive));
StyleTableMapArchive_StyleTableMapEntryArchive_descriptor_ = StyleTableMapArchive_descriptor_->nested_type(0);
static const int StyleTableMapArchive_StyleTableMapEntryArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive_StyleTableMapEntryArchive, key_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive_StyleTableMapEntryArchive, old_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive_StyleTableMapEntryArchive, new_style_),
};
StyleTableMapArchive_StyleTableMapEntryArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
StyleTableMapArchive_StyleTableMapEntryArchive_descriptor_,
StyleTableMapArchive_StyleTableMapEntryArchive::default_instance_,
StyleTableMapArchive_StyleTableMapEntryArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive_StyleTableMapEntryArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StyleTableMapArchive_StyleTableMapEntryArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(StyleTableMapArchive_StyleTableMapEntryArchive));
SelectionArchive_descriptor_ = file->message_type(24);
static const int SelectionArchive_offsets_[6] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectionArchive, tablemodel_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectionArchive, selection_type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectionArchive, anchor_cell_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectionArchive, cell_ranges_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectionArchive, base_ranges_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectionArchive, cursor_cell_),
};
SelectionArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
SelectionArchive_descriptor_,
SelectionArchive::default_instance_,
SelectionArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectionArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SelectionArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(SelectionArchive));
FilterRuleArchive_descriptor_ = file->message_type(25);
static const int FilterRuleArchive_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterRuleArchive, predicate_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterRuleArchive, disabled_),
};
FilterRuleArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
FilterRuleArchive_descriptor_,
FilterRuleArchive::default_instance_,
FilterRuleArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterRuleArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterRuleArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(FilterRuleArchive));
TableStyleArchive_descriptor_ = file->message_type(26);
static const int TableStyleArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleArchive, override_count_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleArchive, table_properties_),
};
TableStyleArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TableStyleArchive_descriptor_,
TableStyleArchive::default_instance_,
TableStyleArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TableStyleArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TableStyleArchive));
CellStyleArchive_descriptor_ = file->message_type(27);
static const int CellStyleArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellStyleArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellStyleArchive, override_count_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellStyleArchive, cell_properties_),
};
CellStyleArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
CellStyleArchive_descriptor_,
CellStyleArchive::default_instance_,
CellStyleArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellStyleArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellStyleArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(CellStyleArchive));
FormulaPredicateArchive_descriptor_ = file->message_type(28);
static const int FormulaPredicateArchive_offsets_[7] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaPredicateArchive, formula_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaPredicateArchive, predicate_type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaPredicateArchive, qualifier1_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaPredicateArchive, qualifier2_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaPredicateArchive, param_index1_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaPredicateArchive, param_index2_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaPredicateArchive, param_index0_),
};
FormulaPredicateArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
FormulaPredicateArchive_descriptor_,
FormulaPredicateArchive::default_instance_,
FormulaPredicateArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaPredicateArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaPredicateArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(FormulaPredicateArchive));
FormulaPredicateArchive_FormulaPredicateType_descriptor_ = FormulaPredicateArchive_descriptor_->enum_type(0);
FormulaPredicateArchive_QualifierType_descriptor_ = FormulaPredicateArchive_descriptor_->enum_type(1);
ConditionalStyleSetArchive_descriptor_ = file->message_type(29);
static const int ConditionalStyleSetArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive, rulecount_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive, rules_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive, cellid_),
};
ConditionalStyleSetArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ConditionalStyleSetArchive_descriptor_,
ConditionalStyleSetArchive::default_instance_,
ConditionalStyleSetArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ConditionalStyleSetArchive));
ConditionalStyleSetArchive_ConditionalStyleRule_descriptor_ = ConditionalStyleSetArchive_descriptor_->nested_type(0);
static const int ConditionalStyleSetArchive_ConditionalStyleRule_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive_ConditionalStyleRule, predicate_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive_ConditionalStyleRule, cell_style_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive_ConditionalStyleRule, text_style_),
};
ConditionalStyleSetArchive_ConditionalStyleRule_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ConditionalStyleSetArchive_ConditionalStyleRule_descriptor_,
ConditionalStyleSetArchive_ConditionalStyleRule::default_instance_,
ConditionalStyleSetArchive_ConditionalStyleRule_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive_ConditionalStyleRule, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConditionalStyleSetArchive_ConditionalStyleRule, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ConditionalStyleSetArchive_ConditionalStyleRule));
FilterSetArchive_descriptor_ = file->message_type(30);
static const int FilterSetArchive_offsets_[6] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterSetArchive, type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterSetArchive, is_enabled_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterSetArchive, filter_rules_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterSetArchive, needs_formula_rewrite_for_import_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterSetArchive, filter_offsets_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterSetArchive, filter_enabled_),
};
FilterSetArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
FilterSetArchive_descriptor_,
FilterSetArchive::default_instance_,
FilterSetArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterSetArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FilterSetArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(FilterSetArchive));
FilterSetArchive_FilterSetType_descriptor_ = FilterSetArchive_descriptor_->enum_type(0);
TokenAttachmentArchive_descriptor_ = file->message_type(31);
static const int TokenAttachmentArchive_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenAttachmentArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenAttachmentArchive, expressionnode_),
};
TokenAttachmentArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
TokenAttachmentArchive_descriptor_,
TokenAttachmentArchive::default_instance_,
TokenAttachmentArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenAttachmentArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TokenAttachmentArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(TokenAttachmentArchive));
FormulaArchive_descriptor_ = file->message_type(32);
static const int FormulaArchive_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaArchive, expressiontree_),
};
FormulaArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
FormulaArchive_descriptor_,
FormulaArchive::default_instance_,
FormulaArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(FormulaArchive));
ExpressionNodeArchive_descriptor_ = file->message_type(33);
static const int ExpressionNodeArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpressionNodeArchive, children_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpressionNodeArchive, first_index_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpressionNodeArchive, last_index_),
};
ExpressionNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ExpressionNodeArchive_descriptor_,
ExpressionNodeArchive::default_instance_,
ExpressionNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpressionNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ExpressionNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ExpressionNodeArchive));
BooleanNodeArchive_descriptor_ = file->message_type(34);
static const int BooleanNodeArchive_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanNodeArchive, value_),
};
BooleanNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
BooleanNodeArchive_descriptor_,
BooleanNodeArchive::default_instance_,
BooleanNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BooleanNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(BooleanNodeArchive));
NumberNodeArchive_descriptor_ = file->message_type(35);
static const int NumberNodeArchive_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NumberNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NumberNodeArchive, number_),
};
NumberNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
NumberNodeArchive_descriptor_,
NumberNodeArchive::default_instance_,
NumberNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NumberNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NumberNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(NumberNodeArchive));
StringNodeArchive_descriptor_ = file->message_type(36);
static const int StringNodeArchive_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringNodeArchive, value_),
};
StringNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
StringNodeArchive_descriptor_,
StringNodeArchive::default_instance_,
StringNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(StringNodeArchive));
IdentifierNodeArchive_descriptor_ = file->message_type(37);
static const int IdentifierNodeArchive_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IdentifierNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IdentifierNodeArchive, identifier_),
};
IdentifierNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
IdentifierNodeArchive_descriptor_,
IdentifierNodeArchive::default_instance_,
IdentifierNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IdentifierNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(IdentifierNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(IdentifierNodeArchive));
ArrayNodeArchive_descriptor_ = file->message_type(38);
static const int ArrayNodeArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArrayNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArrayNodeArchive, columns_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArrayNodeArchive, rows_),
};
ArrayNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ArrayNodeArchive_descriptor_,
ArrayNodeArchive::default_instance_,
ArrayNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArrayNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArrayNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ArrayNodeArchive));
ListNodeArchive_descriptor_ = file->message_type(39);
static const int ListNodeArchive_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListNodeArchive, super_),
};
ListNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ListNodeArchive_descriptor_,
ListNodeArchive::default_instance_,
ListNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ListNodeArchive));
OperatorNodeArchive_descriptor_ = file->message_type(40);
static const int OperatorNodeArchive_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorNodeArchive, operatorchar_),
};
OperatorNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
OperatorNodeArchive_descriptor_,
OperatorNodeArchive::default_instance_,
OperatorNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(OperatorNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(OperatorNodeArchive));
PostfixOperatorNodeArchive_descriptor_ = file->message_type(41);
static const int PostfixOperatorNodeArchive_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PostfixOperatorNodeArchive, super_),
};
PostfixOperatorNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PostfixOperatorNodeArchive_descriptor_,
PostfixOperatorNodeArchive::default_instance_,
PostfixOperatorNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PostfixOperatorNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PostfixOperatorNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PostfixOperatorNodeArchive));
PrefixOperatorNodeArchive_descriptor_ = file->message_type(42);
static const int PrefixOperatorNodeArchive_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrefixOperatorNodeArchive, super_),
};
PrefixOperatorNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PrefixOperatorNodeArchive_descriptor_,
PrefixOperatorNodeArchive::default_instance_,
PrefixOperatorNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrefixOperatorNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrefixOperatorNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PrefixOperatorNodeArchive));
FunctionNodeArchive_descriptor_ = file->message_type(43);
static const int FunctionNodeArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionNodeArchive, functionindex_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionNodeArchive, invalidfunctionname_),
};
FunctionNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
FunctionNodeArchive_descriptor_,
FunctionNodeArchive::default_instance_,
FunctionNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(FunctionNodeArchive));
FunctionEndNodeArchive_descriptor_ = file->message_type(44);
static const int FunctionEndNodeArchive_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionEndNodeArchive, super_),
};
FunctionEndNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
FunctionEndNodeArchive_descriptor_,
FunctionEndNodeArchive::default_instance_,
FunctionEndNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionEndNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FunctionEndNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(FunctionEndNodeArchive));
DateNodeArchive_descriptor_ = file->message_type(45);
static const int DateNodeArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DateNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DateNodeArchive, value_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DateNodeArchive, format_),
};
DateNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
DateNodeArchive_descriptor_,
DateNodeArchive::default_instance_,
DateNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DateNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DateNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(DateNodeArchive));
ReferenceNodeArchive_descriptor_ = file->message_type(46);
static const int ReferenceNodeArchive_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceNodeArchive, rangereference_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceNodeArchive, stickybits_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceNodeArchive, hosttableid_),
};
ReferenceNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ReferenceNodeArchive_descriptor_,
ReferenceNodeArchive::default_instance_,
ReferenceNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReferenceNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ReferenceNodeArchive));
DurationNodeArchive_descriptor_ = file->message_type(47);
static const int DurationNodeArchive_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DurationNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DurationNodeArchive, timeinterval_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DurationNodeArchive, smallest_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DurationNodeArchive, largest_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DurationNodeArchive, style_),
};
DurationNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
DurationNodeArchive_descriptor_,
DurationNodeArchive::default_instance_,
DurationNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DurationNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DurationNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(DurationNodeArchive));
ArgumentPlaceholderNodeArchive_descriptor_ = file->message_type(48);
static const int ArgumentPlaceholderNodeArchive_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgumentPlaceholderNodeArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgumentPlaceholderNodeArchive, functionindex_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgumentPlaceholderNodeArchive, argumentindex_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgumentPlaceholderNodeArchive, mode_),
};
ArgumentPlaceholderNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ArgumentPlaceholderNodeArchive_descriptor_,
ArgumentPlaceholderNodeArchive::default_instance_,
ArgumentPlaceholderNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgumentPlaceholderNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArgumentPlaceholderNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ArgumentPlaceholderNodeArchive));
EmptyExpressionNodeArchive_descriptor_ = file->message_type(49);
static const int EmptyExpressionNodeArchive_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmptyExpressionNodeArchive, super_),
};
EmptyExpressionNodeArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
EmptyExpressionNodeArchive_descriptor_,
EmptyExpressionNodeArchive::default_instance_,
EmptyExpressionNodeArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmptyExpressionNodeArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EmptyExpressionNodeArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(EmptyExpressionNodeArchive));
LayoutHintArchive_descriptor_ = file->message_type(50);
static const int LayoutHintArchive_offsets_[8] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, isvalid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, cellrange_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, hintid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, maximumsize_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, partitionposition_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, horizontal_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, effectivesize_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, partitioningpass_),
};
LayoutHintArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
LayoutHintArchive_descriptor_,
LayoutHintArchive::default_instance_,
LayoutHintArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LayoutHintArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(LayoutHintArchive));
CompletionTokenAttachmentArchive_descriptor_ = file->message_type(51);
static const int CompletionTokenAttachmentArchive_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompletionTokenAttachmentArchive, super_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompletionTokenAttachmentArchive, completiontext_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompletionTokenAttachmentArchive, caretposition_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompletionTokenAttachmentArchive, prefixstart_),
};
CompletionTokenAttachmentArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
CompletionTokenAttachmentArchive_descriptor_,
CompletionTokenAttachmentArchive::default_instance_,
CompletionTokenAttachmentArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompletionTokenAttachmentArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CompletionTokenAttachmentArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(CompletionTokenAttachmentArchive));
HiddenStateFormulaOwnerArchive_descriptor_ = file->message_type(52);
static const int HiddenStateFormulaOwnerArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HiddenStateFormulaOwnerArchive, owner_id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HiddenStateFormulaOwnerArchive, threshold_value_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HiddenStateFormulaOwnerArchive, needs_to_update_filter_set_for_import_),
};
HiddenStateFormulaOwnerArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
HiddenStateFormulaOwnerArchive_descriptor_,
HiddenStateFormulaOwnerArchive::default_instance_,
HiddenStateFormulaOwnerArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HiddenStateFormulaOwnerArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HiddenStateFormulaOwnerArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(HiddenStateFormulaOwnerArchive));
RichTextPayloadArchive_descriptor_ = file->message_type(53);
static const int RichTextPayloadArchive_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichTextPayloadArchive, storage_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichTextPayloadArchive, range_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichTextPayloadArchive, cellid_),
};
RichTextPayloadArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
RichTextPayloadArchive_descriptor_,
RichTextPayloadArchive::default_instance_,
RichTextPayloadArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichTextPayloadArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RichTextPayloadArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(RichTextPayloadArchive));
FormulaEqualsTokenAttachmentArchive_descriptor_ = file->message_type(54);
static const int FormulaEqualsTokenAttachmentArchive_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaEqualsTokenAttachmentArchive, super_),
};
FormulaEqualsTokenAttachmentArchive_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
FormulaEqualsTokenAttachmentArchive_descriptor_,
FormulaEqualsTokenAttachmentArchive::default_instance_,
FormulaEqualsTokenAttachmentArchive_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaEqualsTokenAttachmentArchive, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormulaEqualsTokenAttachmentArchive, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(FormulaEqualsTokenAttachmentArchive));
CellRegion_descriptor_ = file->message_type(55);
static const int CellRegion_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellRegion, cell_ranges_),
};
CellRegion_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
CellRegion_descriptor_,
CellRegion::default_instance_,
CellRegion_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellRegion, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CellRegion, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(CellRegion));
CellType_descriptor_ = file->enum_type(0);
CellValueType_descriptor_ = file->enum_type(1);
SelectionTypeArchive_descriptor_ = file->enum_type(2);
FillDirectionArchive_descriptor_ = file->enum_type(3);
MergeActionArchive_descriptor_ = file->enum_type(4);
HideShowActionArchive_descriptor_ = file->enum_type(5);
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_TSTArchives_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
CellID_descriptor_, &CellID::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableSize_descriptor_, &TableSize::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
CellRange_descriptor_, &CellRange::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableSelection_descriptor_, &TableSelection::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TileRowInfo_descriptor_, &TileRowInfo::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Tile_descriptor_, &Tile::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TileStorage_descriptor_, &TileStorage::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TileStorage_Tile_descriptor_, &TileStorage_Tile::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PopUpMenuModel_descriptor_, &PopUpMenuModel::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PopUpMenuModel_CellValue_descriptor_, &PopUpMenuModel_CellValue::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableDataList_descriptor_, &TableDataList::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableDataList_ListEntry_descriptor_, &TableDataList_ListEntry::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableRBTree_descriptor_, &TableRBTree::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableRBTree_Node_descriptor_, &TableRBTree_Node::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HeaderStorageBucket_descriptor_, &HeaderStorageBucket::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HeaderStorageBucket_Header_descriptor_, &HeaderStorageBucket_Header::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HeaderStorage_descriptor_, &HeaderStorage::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
DataStore_descriptor_, &DataStore::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableInfoArchive_descriptor_, &TableInfoArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
EditingStateArchive_descriptor_, &EditingStateArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
WPTableInfoArchive_descriptor_, &WPTableInfoArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableStyleNetworkArchive_descriptor_, &TableStyleNetworkArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableModelArchive_descriptor_, &TableModelArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
DurationWrapperArchive_descriptor_, &DurationWrapperArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Cell_descriptor_, &Cell::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
MergeRegionMapArchive_descriptor_, &MergeRegionMapArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
CellMapArchive_descriptor_, &CellMapArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
CellMapArchive_CellMapEntry_descriptor_, &CellMapArchive_CellMapEntry::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
DoubleStyleMapArchive_descriptor_, &DoubleStyleMapArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
DoubleStyleMapArchive_DoubleStyleMapEntryArchive_descriptor_, &DoubleStyleMapArchive_DoubleStyleMapEntryArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
StyleTableMapArchive_descriptor_, &StyleTableMapArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
StyleTableMapArchive_StyleTableMapEntryArchive_descriptor_, &StyleTableMapArchive_StyleTableMapEntryArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
SelectionArchive_descriptor_, &SelectionArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
FilterRuleArchive_descriptor_, &FilterRuleArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TableStyleArchive_descriptor_, &TableStyleArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
CellStyleArchive_descriptor_, &CellStyleArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
FormulaPredicateArchive_descriptor_, &FormulaPredicateArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ConditionalStyleSetArchive_descriptor_, &ConditionalStyleSetArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ConditionalStyleSetArchive_ConditionalStyleRule_descriptor_, &ConditionalStyleSetArchive_ConditionalStyleRule::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
FilterSetArchive_descriptor_, &FilterSetArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
TokenAttachmentArchive_descriptor_, &TokenAttachmentArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
FormulaArchive_descriptor_, &FormulaArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ExpressionNodeArchive_descriptor_, &ExpressionNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
BooleanNodeArchive_descriptor_, &BooleanNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
NumberNodeArchive_descriptor_, &NumberNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
StringNodeArchive_descriptor_, &StringNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
IdentifierNodeArchive_descriptor_, &IdentifierNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ArrayNodeArchive_descriptor_, &ArrayNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ListNodeArchive_descriptor_, &ListNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
OperatorNodeArchive_descriptor_, &OperatorNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PostfixOperatorNodeArchive_descriptor_, &PostfixOperatorNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PrefixOperatorNodeArchive_descriptor_, &PrefixOperatorNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
FunctionNodeArchive_descriptor_, &FunctionNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
FunctionEndNodeArchive_descriptor_, &FunctionEndNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
DateNodeArchive_descriptor_, &DateNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ReferenceNodeArchive_descriptor_, &ReferenceNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
DurationNodeArchive_descriptor_, &DurationNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ArgumentPlaceholderNodeArchive_descriptor_, &ArgumentPlaceholderNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
EmptyExpressionNodeArchive_descriptor_, &EmptyExpressionNodeArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
LayoutHintArchive_descriptor_, &LayoutHintArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
CompletionTokenAttachmentArchive_descriptor_, &CompletionTokenAttachmentArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HiddenStateFormulaOwnerArchive_descriptor_, &HiddenStateFormulaOwnerArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
RichTextPayloadArchive_descriptor_, &RichTextPayloadArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
FormulaEqualsTokenAttachmentArchive_descriptor_, &FormulaEqualsTokenAttachmentArchive::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
CellRegion_descriptor_, &CellRegion::default_instance());
}
} // namespace
void protobuf_ShutdownFile_TSTArchives_2eproto() {
delete CellID::default_instance_;
delete CellID_reflection_;
delete TableSize::default_instance_;
delete TableSize_reflection_;
delete CellRange::default_instance_;
delete CellRange_reflection_;
delete TableSelection::default_instance_;
delete TableSelection_reflection_;
delete TileRowInfo::default_instance_;
delete TileRowInfo_reflection_;
delete Tile::default_instance_;
delete Tile_reflection_;
delete TileStorage::default_instance_;
delete TileStorage_reflection_;
delete TileStorage_Tile::default_instance_;
delete TileStorage_Tile_reflection_;
delete PopUpMenuModel::default_instance_;
delete PopUpMenuModel_reflection_;
delete PopUpMenuModel_CellValue::default_instance_;
delete PopUpMenuModel_CellValue_reflection_;
delete TableDataList::default_instance_;
delete TableDataList_reflection_;
delete TableDataList_ListEntry::default_instance_;
delete TableDataList_ListEntry_reflection_;
delete TableRBTree::default_instance_;
delete TableRBTree_reflection_;
delete TableRBTree_Node::default_instance_;
delete TableRBTree_Node_reflection_;
delete HeaderStorageBucket::default_instance_;
delete HeaderStorageBucket_reflection_;
delete HeaderStorageBucket_Header::default_instance_;
delete HeaderStorageBucket_Header_reflection_;
delete HeaderStorage::default_instance_;
delete HeaderStorage_reflection_;
delete DataStore::default_instance_;
delete DataStore_reflection_;
delete TableInfoArchive::default_instance_;
delete TableInfoArchive_reflection_;
delete EditingStateArchive::default_instance_;
delete EditingStateArchive_reflection_;
delete WPTableInfoArchive::default_instance_;
delete WPTableInfoArchive_reflection_;
delete TableStyleNetworkArchive::default_instance_;
delete TableStyleNetworkArchive_reflection_;
delete TableModelArchive::default_instance_;
delete TableModelArchive_reflection_;
delete DurationWrapperArchive::default_instance_;
delete DurationWrapperArchive_reflection_;
delete Cell::default_instance_;
delete Cell_reflection_;
delete MergeRegionMapArchive::default_instance_;
delete MergeRegionMapArchive_reflection_;
delete CellMapArchive::default_instance_;
delete CellMapArchive_reflection_;
delete CellMapArchive_CellMapEntry::default_instance_;
delete CellMapArchive_CellMapEntry_reflection_;
delete DoubleStyleMapArchive::default_instance_;
delete DoubleStyleMapArchive_reflection_;
delete DoubleStyleMapArchive_DoubleStyleMapEntryArchive::default_instance_;
delete DoubleStyleMapArchive_DoubleStyleMapEntryArchive_reflection_;
delete StyleTableMapArchive::default_instance_;
delete StyleTableMapArchive_reflection_;
delete StyleTableMapArchive_StyleTableMapEntryArchive::default_instance_;
delete StyleTableMapArchive_StyleTableMapEntryArchive_reflection_;
delete SelectionArchive::default_instance_;
delete SelectionArchive_reflection_;
delete FilterRuleArchive::default_instance_;
delete FilterRuleArchive_reflection_;
delete TableStyleArchive::default_instance_;
delete TableStyleArchive_reflection_;
delete CellStyleArchive::default_instance_;
delete CellStyleArchive_reflection_;
delete FormulaPredicateArchive::default_instance_;
delete FormulaPredicateArchive_reflection_;
delete ConditionalStyleSetArchive::default_instance_;
delete ConditionalStyleSetArchive_reflection_;
delete ConditionalStyleSetArchive_ConditionalStyleRule::default_instance_;
delete ConditionalStyleSetArchive_ConditionalStyleRule_reflection_;
delete FilterSetArchive::default_instance_;
delete FilterSetArchive_reflection_;
delete TokenAttachmentArchive::default_instance_;
delete TokenAttachmentArchive_reflection_;
delete FormulaArchive::default_instance_;
delete FormulaArchive_reflection_;
delete ExpressionNodeArchive::default_instance_;
delete ExpressionNodeArchive_reflection_;
delete BooleanNodeArchive::default_instance_;
delete BooleanNodeArchive_reflection_;
delete NumberNodeArchive::default_instance_;
delete NumberNodeArchive_reflection_;
delete StringNodeArchive::default_instance_;
delete StringNodeArchive_reflection_;
delete IdentifierNodeArchive::default_instance_;
delete IdentifierNodeArchive_reflection_;
delete ArrayNodeArchive::default_instance_;
delete ArrayNodeArchive_reflection_;
delete ListNodeArchive::default_instance_;
delete ListNodeArchive_reflection_;
delete OperatorNodeArchive::default_instance_;
delete OperatorNodeArchive_reflection_;
delete PostfixOperatorNodeArchive::default_instance_;
delete PostfixOperatorNodeArchive_reflection_;
delete PrefixOperatorNodeArchive::default_instance_;
delete PrefixOperatorNodeArchive_reflection_;
delete FunctionNodeArchive::default_instance_;
delete FunctionNodeArchive_reflection_;
delete FunctionEndNodeArchive::default_instance_;
delete FunctionEndNodeArchive_reflection_;
delete DateNodeArchive::default_instance_;
delete DateNodeArchive_reflection_;
delete ReferenceNodeArchive::default_instance_;
delete ReferenceNodeArchive_reflection_;
delete DurationNodeArchive::default_instance_;
delete DurationNodeArchive_reflection_;
delete ArgumentPlaceholderNodeArchive::default_instance_;
delete ArgumentPlaceholderNodeArchive_reflection_;
delete EmptyExpressionNodeArchive::default_instance_;
delete EmptyExpressionNodeArchive_reflection_;
delete LayoutHintArchive::default_instance_;
delete LayoutHintArchive_reflection_;
delete CompletionTokenAttachmentArchive::default_instance_;
delete CompletionTokenAttachmentArchive_reflection_;
delete HiddenStateFormulaOwnerArchive::default_instance_;
delete HiddenStateFormulaOwnerArchive_reflection_;
delete RichTextPayloadArchive::default_instance_;
delete RichTextPayloadArchive_reflection_;
delete FormulaEqualsTokenAttachmentArchive::default_instance_;
delete FormulaEqualsTokenAttachmentArchive_reflection_;
delete CellRegion::default_instance_;
delete CellRegion_reflection_;
}
void protobuf_AddDesc_TSTArchives_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::TSP::protobuf_AddDesc_TSPMessages_2eproto();
::TSD::protobuf_AddDesc_TSDArchives_2eproto();
::TSK::protobuf_AddDesc_TSKArchives_2eproto();
::TSS::protobuf_AddDesc_TSSArchives_2eproto();
::TSCE::protobuf_AddDesc_TSCEArchives_2eproto();
::TSWP::protobuf_AddDesc_TSWPArchives_2eproto();
::TST::protobuf_AddDesc_TSTStylePropertyArchiving_2eproto();
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\021TSTArchives.proto\022\003TST\032\021TSPMessages.pr"
"oto\032\021TSDArchives.proto\032\021TSKArchives.prot"
"o\032\021TSSArchives.proto\032\022TSCEArchives.proto"
"\032\022TSWPArchives.proto\032\037TSTStylePropertyAr"
"chiving.proto\"\034\n\006CellID\022\022\n\npackedData\030\001 "
"\002(\007\"\037\n\tTableSize\022\022\n\npackedData\030\001 \002(\007\"F\n\t"
"CellRange\022\033\n\006origin\030\001 \002(\0132\013.TST.CellID\022\034"
"\n\004size\030\002 \002(\0132\016.TST.TableSize\"\261\001\n\016TableSe"
"lection\022!\n\tcellRange\030\001 \002(\0132\016.TST.CellRan"
"ge\022)\n\021extendedCellRange\030\002 \002(\0132\016.TST.Cell"
"Range\022\036\n\026extendedCellRangeValid\030\003 \002(\010\0221\n"
"\016selection_type\030\004 \002(\0162\031.TST.SelectionTyp"
"eArchive\"\177\n\013TileRowInfo\022\027\n\017storage_versi"
"on\030\005 \001(\r\022\024\n\014tileRowIndex\030\001 \002(\r\022\021\n\tcellCo"
"unt\030\002 \002(\r\022\031\n\021cellStorageBuffer\030\003 \002(\014\022\023\n\013"
"cellOffsets\030\004 \002(\014\"\211\001\n\004Tile\022\021\n\tmaxColumn\030"
"\001 \002(\r\022\016\n\006maxRow\030\002 \002(\r\022\020\n\010numCells\030\003 \002(\r\022"
"\017\n\007numrows\030\004 \002(\r\022\027\n\017storage_version\030\006 \001("
"\r\022\"\n\010rowInfos\030\005 \003(\0132\020.TST.TileRowInfo\"i\n"
"\013TileStorage\022$\n\005tiles\030\001 \003(\0132\025.TST.TileSt"
"orage.Tile\0324\n\004Tile\022\016\n\006tileid\030\001 \002(\r\022\034\n\004ti"
"le\030\002 \002(\0132\016.TSP.Reference\"\346\003\n\016PopUpMenuMo"
"del\022/\n\004item\030\001 \003(\0132\035.TST.PopUpMenuModel.C"
"ellValueB\002\030\001\022)\n\ttsce_item\030\002 \003(\0132\026.TSCE.C"
"ellValueArchive\032\225\002\n\tCellValue\022:\n\017cell_va"
"lue_type\030\001 \002(\0162!.TST.PopUpMenuModel.Cell"
"ValueType\0224\n\rboolean_value\030\002 \001(\0132\035.TSCE."
"BooleanCellValueArchive\022.\n\ndate_value\030\003 "
"\001(\0132\032.TSCE.DateCellValueArchive\0222\n\014numbe"
"r_value\030\004 \001(\0132\034.TSCE.NumberCellValueArch"
"ive\0222\n\014string_value\030\005 \001(\0132\034.TSCE.StringC"
"ellValueArchive\"`\n\rCellValueType\022\014\n\010NIL_"
"TYPE\020\001\022\020\n\014BOOLEAN_TYPE\020\002\022\r\n\tDATE_TYPE\020\003\022"
"\017\n\013NUMBER_TYPE\020\004\022\017\n\013STRING_TYPE\020\005\"\234\005\n\rTa"
"bleDataList\022-\n\010listType\030\001 \002(\0162\033.TST.Tabl"
"eDataList.ListType\022\022\n\nnextListID\030\002 \002(\r\022-"
"\n\007entries\030\003 \003(\0132\034.TST.TableDataList.List"
"Entry\032\321\002\n\tListEntry\022\013\n\003key\030\001 \002(\r\022\020\n\010refc"
"ount\030\002 \002(\r\022\016\n\006string\030\003 \001(\t\022!\n\treference\030"
"\004 \001(\0132\016.TSP.Reference\022%\n\007formula\030\005 \001(\0132\024"
".TSCE.FormulaArchive\022(\n\006format\030\006 \001(\0132\030.T"
"SK.FormatStructArchive\022\036\n\006region\030\007 \001(\0132\016"
".TST.CellRange\022/\n\rcustom_format\030\010 \001(\0132\030."
"TSK.CustomFormatArchive\022\'\n\017richTextPaylo"
"ad\030\t \001(\0132\016.TSP.Reference\022\'\n\017comment_stor"
"age\030\n \001(\0132\016.TSP.Reference\"\304\001\n\010ListType\022\n"
"\n\006STRING\020\001\022\n\n\006FORMAT\020\002\022\013\n\007FORMULA\020\003\022\t\n\005S"
"TYLE\020\004\022\021\n\rFORMULA_ERROR\020\005\022\021\n\rCUSTOM_FORM"
"AT\020\006\022\037\n\033MULTIPLE_CHOICE_LIST_FORMAT\020\007\022\025\n"
"\021RICH_TEXT_PAYLOAD\020\010\022\025\n\021CONDITIONAL_STYL"
"E\020\t\022\023\n\017COMMENT_STORAGE\020\n\"W\n\013TableRBTree\022"
"$\n\005nodes\030\001 \003(\0132\025.TST.TableRBTree.Node\032\"\n"
"\004Node\022\013\n\003key\030\001 \002(\r\022\r\n\005value\030\002 \002(\r\"\377\001\n\023He"
"aderStorageBucket\022\032\n\022bucketHashFunction\030"
"\001 \002(\r\0220\n\007headers\030\002 \003(\0132\037.TST.HeaderStora"
"geBucket.Header\032\231\001\n\006Header\022\r\n\005index\030\001 \002("
"\r\022\014\n\004size\030\002 \002(\002\022\023\n\013hidingState\030\003 \002(\r\022\025\n\r"
"numberOfCells\030\004 \002(\r\022\"\n\ncell_style\030\005 \001(\0132"
"\016.TSP.Reference\022\"\n\ntext_style\030\006 \001(\0132\016.TS"
"P.Reference\"L\n\rHeaderStorage\022\032\n\022bucketHa"
"shFunction\030\001 \002(\r\022\037\n\007buckets\030\002 \003(\0132\016.TSP."
"Reference\"\355\005\n\tDataStore\022&\n\nrowHeaders\030\001 "
"\002(\0132\022.TST.HeaderStorage\022%\n\rcolumnHeaders"
"\030\002 \002(\0132\016.TSP.Reference\022\037\n\005tiles\030\003 \002(\0132\020."
"TST.TileStorage\022#\n\013stringTable\030\004 \002(\0132\016.T"
"SP.Reference\022\"\n\nstyleTable\030\005 \002(\0132\016.TSP.R"
"eference\022$\n\014formulaTable\030\006 \002(\0132\016.TSP.Ref"
"erence\022)\n\021formulaErrorTable\030\014 \001(\0132\016.TSP."
"Reference\022#\n\013formatTable\030\013 \002(\0132\016.TSP.Ref"
"erence\0225\n\035multipleChoiceListFormatTable\030"
"\020 \001(\0132\016.TSP.Reference\022(\n\020merge_region_ma"
"p\030\r \001(\0132\016.TSP.Reference\022)\n\021customFormatT"
"able\030\017 \001(\0132\016.TSP.Reference\022\026\n\016nextRowStr"
"ipID\030\007 \002(\r\022\031\n\021nextColumnStripID\030\010 \002(\r\022%\n"
"\013rowTileTree\030\t \002(\0132\020.TST.TableRBTree\022(\n\016"
"columnTileTree\030\n \002(\0132\020.TST.TableRBTree\022\027"
"\n\017storage_version\030\016 \001(\r\022,\n\024richTextPaylo"
"adTable\030\021 \001(\0132\016.TSP.Reference\022-\n\025conditi"
"onalstyletable\030\022 \001(\0132\016.TSP.Reference\022+\n\023"
"commentStorageTable\030\023 \001(\0132\016.TSP.Referenc"
"e\"\201\001\n\020TableInfoArchive\022#\n\005super\030\001 \002(\0132\024."
"TSD.DrawableArchive\022\"\n\ntableModel\030\002 \002(\0132"
"\016.TSP.Reference\022$\n\014editingState\030\003 \001(\0132\016."
"TSP.Reference\"\310\002\n\023EditingStateArchive\022&\n"
"\016editingStorage\030\001 \001(\0132\016.TSP.Reference\022\036\n"
"\013editingCell\030\002 \002(\0132\t.TST.Cell\022(\n\tselecti"
"on\030\003 \001(\0132\025.TST.SelectionArchive\022&\n\021laste"
"ditingcellid\030\004 \001(\0132\013.TST.CellID\022\"\n\rediti"
"ngcellid\030\005 \001(\0132\013.TST.CellID\022G\n(deprecate"
"d_setup_textUndoRedoTransaction\030\006 \001(\0132\025."
"TSWP.UndoTransaction\022*\n\"cell_was_edited_"
"in_current_session\030\007 \001(\010\"[\n\022WPTableInfoA"
"rchive\022$\n\005super\030\001 \002(\0132\025.TST.TableInfoArc"
"hive\022\037\n\007storage\030\002 \001(\0132\016.TSP.Reference\"\222\004"
"\n\030TableStyleNetworkArchive\022#\n\013table_styl"
"e\030\t \002(\0132\016.TSP.Reference\022\'\n\017body_text_sty"
"le\030\001 \002(\0132\016.TSP.Reference\022-\n\025header_row_t"
"ext_style\030\002 \002(\0132\016.TSP.Reference\0220\n\030heade"
"r_column_text_style\030\003 \002(\0132\016.TSP.Referenc"
"e\022-\n\025footer_row_text_style\030\004 \002(\0132\016.TSP.R"
"eference\022\'\n\017body_cell_style\030\005 \002(\0132\016.TSP."
"Reference\022(\n\020header_row_style\030\006 \002(\0132\016.TS"
"P.Reference\022+\n\023header_column_style\030\007 \002(\013"
"2\016.TSP.Reference\022(\n\020footer_row_style\030\010 \002"
"(\0132\016.TSP.Reference\022(\n\020table_name_style\030\n"
" \001(\0132\016.TSP.Reference\022.\n\026table_name_shape"
"_style\030\013 \001(\0132\016.TSP.Reference\022\024\n\014preset_i"
"ndex\030\014 \001(\r\"\230\014\n\021TableModelArchive\022\020\n\010tabl"
"e_id\030\001 \002(\t\022\025\n\rfrom_table_id\030+ \001(\t\022#\n\013tab"
"le_style\030\003 \002(\0132\016.TSP.Reference\022\'\n\017body_t"
"ext_style\030\030 \002(\0132\016.TSP.Reference\022-\n\025heade"
"r_row_text_style\030\031 \002(\0132\016.TSP.Reference\0220"
"\n\030header_column_text_style\030\032 \002(\0132\016.TSP.R"
"eference\022-\n\025footer_row_text_style\030\033 \002(\0132"
"\016.TSP.Reference\022\'\n\017body_cell_style\030\022 \002(\013"
"2\016.TSP.Reference\022(\n\020header_row_style\030\023 \002"
"(\0132\016.TSP.Reference\022+\n\023header_column_styl"
"e\030\024 \002(\0132\016.TSP.Reference\022(\n\020footer_row_st"
"yle\030\025 \002(\0132\016.TSP.Reference\022(\n\020table_name_"
"style\030\036 \001(\0132\016.TSP.Reference\022.\n\026table_nam"
"e_shape_style\030$ \001(\0132\016.TSP.Reference\022\"\n\nd"
"ata_store\030\004 \002(\0132\016.TST.DataStore\022 \n\010provi"
"der\030\005 \001(\0132\016.TSP.Reference\022\026\n\016number_of_r"
"ows\030\006 \002(\r\022\031\n\021number_of_columns\030\007 \002(\r\022\022\n\n"
"table_name\030\010 \002(\t\022\032\n\022table_name_enabled\030\026"
" \001(\010\022\031\n\021table_name_height\030! \001(\001\022!\n\031table"
"_name_border_enabled\030% \001(\010\022\035\n\025number_of_"
"header_rows\030\t \001(\r\022 \n\030number_of_header_co"
"lumns\030\n \001(\r\022\035\n\025number_of_footer_rows\030\013 \001"
"(\r\022\032\n\022header_rows_frozen\030\014 \001(\010\022\035\n\025header"
"_columns_frozen\030\r \001(\010\022\035\n\025number_of_hidde"
"n_rows\030\016 \001(\r\022 \n\030number_of_hidden_columns"
"\030\017 \001(\r\022\"\n\032number_of_user_hidden_rows\030) \001"
"(\r\022%\n\035number_of_user_hidden_columns\030* \001("
"\r\022\037\n\027number_of_filtered_rows\030( \001(\r\022\032\n\022de"
"fault_row_height\030\020 \002(\001\022\034\n\024default_column"
"_width\030\021 \002(\001\022&\n\rorigin_offset\030\027 \001(\0132\013.TS"
"T.CellIDB\002\030\001\022\024\n\014preset_index\030\034 \002(\r\022%\n\035re"
"peating_header_rows_enabled\030\035 \001(\010\022(\n rep"
"eating_header_columns_enabled\030 \001(\010\022\036\n\026s"
"tyle_apply_clears_all\030\037 \001(\010\022>\n&hidden_st"
"ate_formula_owner_for_columns\030\" \001(\0132\016.TS"
"P.Reference\022;\n#hidden_state_formula_owne"
"r_for_rows\030# \001(\0132\016.TSP.Reference\022\"\n\nfilt"
"er_set\030& \001(\0132\016.TSP.Reference\022\?\n\"conditio"
"nal_style_formula_owner_id\030\' \001(\0132\023.TSCE."
"CFUUIDArchive\"\030\n\026DurationWrapperArchive\""
"\272\007\n\004Cell\022%\n\tvalueType\030\002 \002(\0162\022.TST.CellVa"
"lueType\022\023\n\013numberValue\030\005 \001(\001\022\023\n\013stringVa"
"lue\030\006 \001(\t\022\021\n\tboolValue\030\007 \001(\010\022\"\n\ncell_sty"
"le\030\003 \001(\0132\016.TSP.Reference\022\"\n\ntext_style\030\004"
" \001(\0132\016.TSP.Reference\022%\n\007formula\030\010 \001(\0132\024."
"TSCE.FormulaArchive\022$\n\014formulaError\030\n \001("
"\0132\016.TSP.Reference\0220\n\016current_format\030\t \001("
"\0132\030.TSK.FormatStructArchive\022/\n\rnumber_fo"
"rmat\030\013 \001(\0132\030.TSK.FormatStructArchive\0221\n\017"
"currency_format\030\014 \001(\0132\030.TSK.FormatStruct"
"Archive\0221\n\017duration_format\030\r \001(\0132\030.TSK.F"
"ormatStructArchive\022-\n\013date_format\030\016 \001(\0132"
"\030.TSK.FormatStructArchive\0220\n\016control_for"
"mat\030\017 \001(\0132\030.TSK.FormatStructArchive\022/\n\rc"
"ustom_format\030\020 \001(\0132\030.TSK.FormatStructArc"
"hive\022-\n\013base_format\030\021 \001(\0132\030.TSK.FormatSt"
"ructArchive\022=\n\033multiple_choice_list_form"
"at\030\022 \001(\0132\030.TSK.FormatStructArchive\022\035\n\025ex"
"plicit_format_flags\030\023 \001(\r\022\'\n\017richTextPay"
"load\030\024 \001(\0132\016.TSP.Reference\022)\n\021conditiona"
"l_style\030\025 \001(\0132\016.TSP.Reference\022,\n\024multipl"
"e_choice_list\030\026 \001(\0132\016.TSP.Reference\022\'\n\017c"
"omment_storage\030\027 \001(\0132\016.TSP.Reference\022&\n\036"
"conditional_style_applied_rule\030\030 \001(\r\";\n\025"
"MergeRegionMapArchive\022\"\n\ncell_range\030\001 \003("
"\0132\016.TST.CellRange\"\265\002\n\016CellMapArchive\022\020\n\010"
"capacity\030\001 \002(\r\022\r\n\005count\030\002 \002(\r\0226\n\014cellMap"
"Entry\030\003 \003(\0132 .TST.CellMapArchive.CellMap"
"Entry\022*\n\034may_modify_formulas_in_cells\030\004 "
"\001(\010:\004true\0226\n(may_modify_values_reference"
"d_by_formulas\030\005 \001(\010:\004true\022 \n\021applies_to_"
"hidden\030\006 \001(\010:\005false\032D\n\014CellMapEntry\022\033\n\006c"
"ellID\030\001 \002(\0132\013.TST.CellID\022\027\n\004cell\030\002 \001(\0132\t"
".TST.Cell\"\212\002\n\025DoubleStyleMapArchive\022\020\n\010c"
"apacity\030\001 \002(\r\022\r\n\005count\030\002 \002(\r\022M\n\016cell_map"
"_entry\030\003 \003(\01325.TST.DoubleStyleMapArchive"
".DoubleStyleMapEntryArchive\032\200\001\n\032DoubleSt"
"yleMapEntryArchive\022\034\n\007cell_id\030\001 \002(\0132\013.TS"
"T.CellID\022!\n\told_style\030\002 \002(\0132\016.TSP.Refere"
"nce\022!\n\tnew_style\030\003 \002(\0132\016.TSP.Reference\"\357"
"\001\n\024StyleTableMapArchive\022\020\n\010capacity\030\001 \002("
"\r\022\r\n\005count\030\002 \002(\r\022F\n\tmap_entry\030\003 \003(\01323.TS"
"T.StyleTableMapArchive.StyleTableMapEntr"
"yArchive\032n\n\031StyleTableMapEntryArchive\022\013\n"
"\003key\030\001 \002(\r\022!\n\told_style\030\002 \002(\0132\016.TSP.Refe"
"rence\022!\n\tnew_style\030\003 \002(\0132\016.TSP.Reference"
"\"\373\001\n\020SelectionArchive\022&\n\ntableModel\030\001 \001("
"\0132\016.TSP.ReferenceB\002\030\001\0221\n\016selection_type\030"
"\004 \002(\0162\031.TST.SelectionTypeArchive\022 \n\013anch"
"or_cell\030\005 \001(\0132\013.TST.CellID\022#\n\013cell_range"
"s\030\006 \003(\0132\016.TST.CellRange\022#\n\013base_ranges\030\007"
" \003(\0132\016.TST.CellRange\022 \n\013cursor_cell\030\010 \001("
"\0132\013.TST.CellID\"V\n\021FilterRuleArchive\022/\n\tp"
"redicate\030\001 \002(\0132\034.TST.FormulaPredicateArc"
"hive\022\020\n\010disabled\030\002 \001(\010\"\214\001\n\021TableStyleArc"
"hive\022 \n\005super\030\001 \002(\0132\021.TSS.StyleArchive\022\031"
"\n\016override_count\030\n \001(\r:\0010\022:\n\020table_prope"
"rties\030\013 \001(\0132 .TST.TableStylePropertiesAr"
"chive\"\211\001\n\020CellStyleArchive\022 \n\005super\030\001 \002("
"\0132\021.TSS.StyleArchive\022\031\n\016override_count\030\n"
" \001(\r:\0010\0228\n\017cell_properties\030\013 \001(\0132\037.TST.C"
"ellStylePropertiesArchive\"\342\013\n\027FormulaPre"
"dicateArchive\022%\n\007formula\030\001 \002(\0132\024.TSCE.Fo"
"rmulaArchive\022I\n\016predicate_type\030\002 \002(\01621.T"
"ST.FormulaPredicateArchive.FormulaPredic"
"ateType\022>\n\nqualifier1\030\003 \002(\0162*.TST.Formul"
"aPredicateArchive.QualifierType\022>\n\nquali"
"fier2\030\004 \002(\0162*.TST.FormulaPredicateArchiv"
"e.QualifierType\022\024\n\014param_index1\030\005 \002(\005\022\024\n"
"\014param_index2\030\006 \002(\005\022\024\n\014param_index0\030\007 \002("
"\005\"\211\010\n\024FormulaPredicateType\022\014\n\010PredNone\020\000"
"\022\022\n\016TextStartsWith\020\001\022\020\n\014TextEndsWith\020\002\022\020"
"\n\014TextContains\020\003\022\026\n\022TextDoesNotContain\020\004"
"\022\016\n\nValueEqual\020\005\022\021\n\rValueNotEqual\020\006\022\024\n\020V"
"alueGreaterThan\020\007\022\033\n\027ValueGreaterThanOrE"
"qual\020\010\022\021\n\rValueLessThan\020\t\022\030\n\024ValueLessTh"
"anOrEqual\020\n\022\025\n\021ValueAboveAverage\020\013\022\025\n\021Va"
"lueBelowAverage\020\014\022\020\n\014ValueBetween\020\r\022\013\n\007F"
"ormula\020\016\022\016\n\nDuplicates\020\017\022\013\n\007Uniques\020\020\022\017\n"
"\013DateIsToday\020\021\022\023\n\017DateIsYesterday\020\022\022\022\n\016D"
"ateIsTomorrow\020\023\022\021\n\rDateIsTheDate\020\024\022\025\n\021Da"
"teBeforeTheDate\020\025\022\024\n\020DateAfterTheDate\020\026\022"
"\024\n\020DateIsInTheRange\020\027\022\021\n\rDateInTheNext\020\030"
"\022\021\n\rDateInTheLast\020\031\022\021\n\rDateIsExactly\020\032\022\026"
"\n\022DateBeforeRelative\020\033\022\025\n\021DateAfterRelat"
"ive\020\034\022\027\n\023DateBetweenRelative\020\035\022\014\n\010ValueT"
"op\020\036\022\017\n\013ValueBottom\020\037\022\023\n\017ValueNotBetween"
"\020 \022\016\n\nDateInThis\020!\022\013\n\007IsBlank\020\"\022\016\n\nIsNot"
"Blank\020#\022\n\n\006TextIs\020$\022\r\n\tTextIsNot\020%\022\021\n\rDu"
"rationEqual\020&\022\024\n\020DurationNotEqual\020\'\022\027\n\023D"
"urationGreaterThan\020(\022\036\n\032DurationGreaterT"
"hanOrEqual\020)\022\024\n\020DurationLessThan\020*\022\033\n\027Du"
"rationLessThanOrEqual\020+\022\023\n\017DurationBetwe"
"en\020,\022\026\n\022DurationNotBetween\020-\022\030\n\024Duration"
"AboveAverage\020.\022\030\n\024DurationBelowAverage\020/"
"\022\017\n\013DurationTop\0200\022\022\n\016DurationBottom\0201\"\206\001"
"\n\rQualifierType\022\014\n\010QualNone\020\000\022\010\n\004Days\020\002\022"
"\t\n\005Weeks\020\003\022\n\n\006Months\020\004\022\t\n\005Years\020\005\022\007\n\003Ago"
"\020\006\022\013\n\007FromNow\020\007\022\014\n\010Quarters\020\010\022\013\n\007Percent"
"\020\t\022\n\n\006Values\020\n\"\243\002\n\032ConditionalStyleSetAr"
"chive\022\021\n\truleCount\030\001 \002(\r\022C\n\005rules\030\002 \003(\0132"
"4.TST.ConditionalStyleSetArchive.Conditi"
"onalStyleRule\022\033\n\006cellID\030\003 \001(\0132\013.TST.Cell"
"ID\032\217\001\n\024ConditionalStyleRule\022/\n\tpredicate"
"\030\001 \002(\0132\034.TST.FormulaPredicateArchive\022\"\n\n"
"cell_style\030\002 \002(\0132\016.TSP.Reference\022\"\n\ntext"
"_style\030\003 \002(\0132\016.TSP.Reference\"\322\002\n\020FilterS"
"etArchive\022J\n\004type\030\001 \001(\0162#.TST.FilterSetA"
"rchive.FilterSetType:\027FilterSetArchiveTy"
"peAll\022\030\n\nis_enabled\030\002 \001(\010:\004true\022,\n\014filte"
"r_rules\030\003 \003(\0132\026.TST.FilterRuleArchive\022/\n"
" needs_formula_rewrite_for_import\030\004 \001(\010:"
"\005false\022\026\n\016filter_offsets\030\005 \003(\r\022\026\n\016filter"
"_enabled\030\006 \003(\010\"I\n\rFilterSetType\022\033\n\027Filte"
"rSetArchiveTypeAll\020\000\022\033\n\027FilterSetArchive"
"TypeAny\020\001\"l\n\026TokenAttachmentArchive\022*\n\005s"
"uper\030\001 \002(\0132\033.TSWP.UIGraphicalAttachment\022"
"&\n\016expressionNode\030\002 \001(\0132\016.TSP.Reference\""
"8\n\016FormulaArchive\022&\n\016expressionTree\030\001 \001("
"\0132\016.TSP.Reference\"h\n\025ExpressionNodeArchi"
"ve\022 \n\010children\030\001 \003(\0132\016.TSP.Reference\022\026\n\013"
"first_index\030\002 \001(\004:\0010\022\025\n\nlast_index\030\003 \001(\004"
":\0010\"N\n\022BooleanNodeArchive\022)\n\005super\030\001 \002(\013"
"2\032.TST.ExpressionNodeArchive\022\r\n\005value\030\002 "
"\002(\010\"N\n\021NumberNodeArchive\022)\n\005super\030\001 \002(\0132"
"\032.TST.ExpressionNodeArchive\022\016\n\006number\030\002 "
"\002(\001\"M\n\021StringNodeArchive\022)\n\005super\030\001 \002(\0132"
"\032.TST.ExpressionNodeArchive\022\r\n\005value\030\002 \002"
"(\t\"V\n\025IdentifierNodeArchive\022)\n\005super\030\001 \002"
"(\0132\032.TST.ExpressionNodeArchive\022\022\n\nidenti"
"fier\030\002 \001(\t\"\\\n\020ArrayNodeArchive\022)\n\005super\030"
"\001 \002(\0132\032.TST.ExpressionNodeArchive\022\017\n\007col"
"umns\030\002 \001(\r\022\014\n\004rows\030\003 \001(\r\"<\n\017ListNodeArch"
"ive\022)\n\005super\030\001 \002(\0132\032.TST.ExpressionNodeA"
"rchive\"V\n\023OperatorNodeArchive\022)\n\005super\030\001"
" \002(\0132\032.TST.ExpressionNodeArchive\022\024\n\014oper"
"atorChar\030\002 \002(\r\"E\n\032PostfixOperatorNodeArc"
"hive\022\'\n\005super\030\001 \002(\0132\030.TST.OperatorNodeAr"
"chive\"D\n\031PrefixOperatorNodeArchive\022\'\n\005su"
"per\030\001 \002(\0132\030.TST.OperatorNodeArchive\"t\n\023F"
"unctionNodeArchive\022)\n\005super\030\001 \002(\0132\032.TST."
"ExpressionNodeArchive\022\025\n\rfunctionIndex\030\002"
" \002(\r\022\033\n\023invalidFunctionName\030\003 \001(\t\"C\n\026Fun"
"ctionEndNodeArchive\022)\n\005super\030\001 \002(\0132\032.TST"
".ExpressionNodeArchive\"[\n\017DateNodeArchiv"
"e\022)\n\005super\030\001 \002(\0132\032.TST.ExpressionNodeArc"
"hive\022\r\n\005value\030\002 \002(\t\022\016\n\006format\030\003 \001(\t\"\237\001\n\024"
"ReferenceNodeArchive\022)\n\005super\030\001 \002(\0132\032.TS"
"T.ExpressionNodeArchive\0223\n\016rangeReferenc"
"e\030\002 \002(\0132\033.TSCE.RangeReferenceArchive\022\022\n\n"
"stickyBits\030\003 \002(\r\022\023\n\013hostTableID\030\004 \001(\t\"\210\001"
"\n\023DurationNodeArchive\022)\n\005super\030\001 \002(\0132\032.T"
"ST.ExpressionNodeArchive\022\024\n\014timeinterval"
"\030\002 \002(\001\022\020\n\010smallest\030\003 \002(\r\022\017\n\007largest\030\004 \002("
"\r\022\r\n\005style\030\005 \002(\r\"\207\001\n\036ArgumentPlaceholder"
"NodeArchive\022)\n\005super\030\001 \002(\0132\032.TST.Express"
"ionNodeArchive\022\025\n\rfunctionIndex\030\002 \002(\r\022\025\n"
"\rargumentIndex\030\003 \002(\r\022\014\n\004mode\030\004 \001(\r\"G\n\032Em"
"ptyExpressionNodeArchive\022)\n\005super\030\001 \002(\0132"
"\032.TST.ExpressionNodeArchive\"\357\001\n\021LayoutHi"
"ntArchive\022\017\n\007isValid\030\001 \002(\010\022!\n\tcellRange\030"
"\002 \002(\0132\016.TST.CellRange\022\033\n\006hintID\030\003 \002(\0132\013."
"TST.CellID\022\036\n\013maximumSize\030\004 \002(\0132\t.TSP.Si"
"ze\022\031\n\021partitionPosition\030\005 \002(\r\022\022\n\nhorizon"
"tal\030\006 \002(\010\022 \n\reffectiveSize\030\007 \001(\0132\t.TSP.S"
"ize\022\030\n\020partitioningPass\030\010 \001(\r\"\222\001\n Comple"
"tionTokenAttachmentArchive\022*\n\005super\030\001 \002("
"\0132\033.TST.TokenAttachmentArchive\022\026\n\016comple"
"tionText\030\002 \001(\t\022\025\n\rcaretPosition\030\003 \001(\r\022\023\n"
"\013prefixStart\030\004 \001(\r\"\256\001\n\036HiddenStateFormul"
"aOwnerArchive\022%\n\010owner_id\030\001 \001(\0132\023.TSCE.C"
"FUUIDArchive\022/\n\017threshold_value\030\002 \003(\0132\026."
"TSCE.CellValueArchive\0224\n%needs_to_update"
"_filter_set_for_import\030\003 \001(\010:\005false\"q\n\026R"
"ichTextPayloadArchive\022\037\n\007storage\030\001 \002(\0132\016"
".TSP.Reference\022\031\n\005range\030\002 \001(\0132\n.TSP.Rang"
"e\022\033\n\006cellid\030\003 \002(\0132\013.TST.CellID\"Q\n#Formul"
"aEqualsTokenAttachmentArchive\022*\n\005super\030\001"
" \002(\0132\033.TSWP.UIGraphicalAttachment\"1\n\nCel"
"lRegion\022#\n\013cell_ranges\030\001 \003(\0132\016.TST.CellR"
"ange*\327\001\n\010CellType\022\023\n\017genericCellType\020\000\022\020"
"\n\014spanCellType\020\001\022\022\n\016numberCellType\020\002\022\020\n\014"
"textCellType\020\003\022\023\n\017formulaCellType\020\004\022\020\n\014d"
"ateCellType\020\005\022\020\n\014boolCellType\020\006\022\024\n\020durat"
"ionCellType\020\007\022\030\n\024formulaErrorCellType\020\010\022"
"\025\n\021automaticCellType\020\t*\353\001\n\rCellValueType"
"\022\026\n\022emptyCellValueType\020\000\022\027\n\023numberCellVa"
"lueType\020\001\022\027\n\023stringCellValueType\020\002\022\031\n\025pr"
"ovidedCellValueType\020\003\022\025\n\021dateCellValueTy"
"pe\020\004\022\025\n\021boolCellValueType\020\005\022\031\n\025durationC"
"ellValueType\020\006\022\026\n\022errorCellValueType\020\007\022\024"
"\n\020richTextCellType\020\010*\256\001\n\024SelectionTypeAr"
"chive\022\025\n\021cellSelectionType\020\000\022\024\n\020rowSelec"
"tionType\020\001\022\027\n\023columnSelectionType\020\002\022\034\n\030c"
"ellEditingSelectionType\020\003\022\032\n\026tableNameSe"
"lectionType\020\004\022\026\n\022tableSelectionType\020\005*y\n"
"\024FillDirectionArchive\022\027\n\023kTSTFillDownArc"
"hive\020\001\022\025\n\021kTSTFillUpArchive\020\002\022\030\n\024kTSTFil"
"lRightArchive\020\003\022\027\n\023kTSTFillLeftArchive\020\004"
"*B\n\022MergeActionArchive\022\024\n\020mergeActionMer"
"ge\020\000\022\026\n\022mergeActionUnmerge\020\001*G\n\025HideShow"
"ActionArchive\022\026\n\022hideShowActionHide\020\000\022\026\n"
"\022hideShowActionShow\020\001", 13981);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"TSTArchives.proto", &protobuf_RegisterTypes);
CellID::default_instance_ = new CellID();
TableSize::default_instance_ = new TableSize();
CellRange::default_instance_ = new CellRange();
TableSelection::default_instance_ = new TableSelection();
TileRowInfo::default_instance_ = new TileRowInfo();
Tile::default_instance_ = new Tile();
TileStorage::default_instance_ = new TileStorage();
TileStorage_Tile::default_instance_ = new TileStorage_Tile();
PopUpMenuModel::default_instance_ = new PopUpMenuModel();
PopUpMenuModel_CellValue::default_instance_ = new PopUpMenuModel_CellValue();
TableDataList::default_instance_ = new TableDataList();
TableDataList_ListEntry::default_instance_ = new TableDataList_ListEntry();
TableRBTree::default_instance_ = new TableRBTree();
TableRBTree_Node::default_instance_ = new TableRBTree_Node();
HeaderStorageBucket::default_instance_ = new HeaderStorageBucket();
HeaderStorageBucket_Header::default_instance_ = new HeaderStorageBucket_Header();
HeaderStorage::default_instance_ = new HeaderStorage();
DataStore::default_instance_ = new DataStore();
TableInfoArchive::default_instance_ = new TableInfoArchive();
EditingStateArchive::default_instance_ = new EditingStateArchive();
WPTableInfoArchive::default_instance_ = new WPTableInfoArchive();
TableStyleNetworkArchive::default_instance_ = new TableStyleNetworkArchive();
TableModelArchive::default_instance_ = new TableModelArchive();
DurationWrapperArchive::default_instance_ = new DurationWrapperArchive();
Cell::default_instance_ = new Cell();
MergeRegionMapArchive::default_instance_ = new MergeRegionMapArchive();
CellMapArchive::default_instance_ = new CellMapArchive();
CellMapArchive_CellMapEntry::default_instance_ = new CellMapArchive_CellMapEntry();
DoubleStyleMapArchive::default_instance_ = new DoubleStyleMapArchive();
DoubleStyleMapArchive_DoubleStyleMapEntryArchive::default_instance_ = new DoubleStyleMapArchive_DoubleStyleMapEntryArchive();
StyleTableMapArchive::default_instance_ = new StyleTableMapArchive();
StyleTableMapArchive_StyleTableMapEntryArchive::default_instance_ = new StyleTableMapArchive_StyleTableMapEntryArchive();
SelectionArchive::default_instance_ = new SelectionArchive();
FilterRuleArchive::default_instance_ = new FilterRuleArchive();
TableStyleArchive::default_instance_ = new TableStyleArchive();
CellStyleArchive::default_instance_ = new CellStyleArchive();
FormulaPredicateArchive::default_instance_ = new FormulaPredicateArchive();
ConditionalStyleSetArchive::default_instance_ = new ConditionalStyleSetArchive();
ConditionalStyleSetArchive_ConditionalStyleRule::default_instance_ = new ConditionalStyleSetArchive_ConditionalStyleRule();
FilterSetArchive::default_instance_ = new FilterSetArchive();
TokenAttachmentArchive::default_instance_ = new TokenAttachmentArchive();
FormulaArchive::default_instance_ = new FormulaArchive();
ExpressionNodeArchive::default_instance_ = new ExpressionNodeArchive();
BooleanNodeArchive::default_instance_ = new BooleanNodeArchive();
NumberNodeArchive::default_instance_ = new NumberNodeArchive();
StringNodeArchive::default_instance_ = new StringNodeArchive();
IdentifierNodeArchive::default_instance_ = new IdentifierNodeArchive();
ArrayNodeArchive::default_instance_ = new ArrayNodeArchive();
ListNodeArchive::default_instance_ = new ListNodeArchive();
OperatorNodeArchive::default_instance_ = new OperatorNodeArchive();
PostfixOperatorNodeArchive::default_instance_ = new PostfixOperatorNodeArchive();
PrefixOperatorNodeArchive::default_instance_ = new PrefixOperatorNodeArchive();
FunctionNodeArchive::default_instance_ = new FunctionNodeArchive();
FunctionEndNodeArchive::default_instance_ = new FunctionEndNodeArchive();
DateNodeArchive::default_instance_ = new DateNodeArchive();
ReferenceNodeArchive::default_instance_ = new ReferenceNodeArchive();
DurationNodeArchive::default_instance_ = new DurationNodeArchive();
ArgumentPlaceholderNodeArchive::default_instance_ = new ArgumentPlaceholderNodeArchive();
EmptyExpressionNodeArchive::default_instance_ = new EmptyExpressionNodeArchive();
LayoutHintArchive::default_instance_ = new LayoutHintArchive();
CompletionTokenAttachmentArchive::default_instance_ = new CompletionTokenAttachmentArchive();
HiddenStateFormulaOwnerArchive::default_instance_ = new HiddenStateFormulaOwnerArchive();
RichTextPayloadArchive::default_instance_ = new RichTextPayloadArchive();
FormulaEqualsTokenAttachmentArchive::default_instance_ = new FormulaEqualsTokenAttachmentArchive();
CellRegion::default_instance_ = new CellRegion();
CellID::default_instance_->InitAsDefaultInstance();
TableSize::default_instance_->InitAsDefaultInstance();
CellRange::default_instance_->InitAsDefaultInstance();
TableSelection::default_instance_->InitAsDefaultInstance();
TileRowInfo::default_instance_->InitAsDefaultInstance();
Tile::default_instance_->InitAsDefaultInstance();
TileStorage::default_instance_->InitAsDefaultInstance();
TileStorage_Tile::default_instance_->InitAsDefaultInstance();
PopUpMenuModel::default_instance_->InitAsDefaultInstance();
PopUpMenuModel_CellValue::default_instance_->InitAsDefaultInstance();
TableDataList::default_instance_->InitAsDefaultInstance();
TableDataList_ListEntry::default_instance_->InitAsDefaultInstance();
TableRBTree::default_instance_->InitAsDefaultInstance();
TableRBTree_Node::default_instance_->InitAsDefaultInstance();
HeaderStorageBucket::default_instance_->InitAsDefaultInstance();
HeaderStorageBucket_Header::default_instance_->InitAsDefaultInstance();
HeaderStorage::default_instance_->InitAsDefaultInstance();
DataStore::default_instance_->InitAsDefaultInstance();
TableInfoArchive::default_instance_->InitAsDefaultInstance();
EditingStateArchive::default_instance_->InitAsDefaultInstance();
WPTableInfoArchive::default_instance_->InitAsDefaultInstance();
TableStyleNetworkArchive::default_instance_->InitAsDefaultInstance();
TableModelArchive::default_instance_->InitAsDefaultInstance();
DurationWrapperArchive::default_instance_->InitAsDefaultInstance();
Cell::default_instance_->InitAsDefaultInstance();
MergeRegionMapArchive::default_instance_->InitAsDefaultInstance();
CellMapArchive::default_instance_->InitAsDefaultInstance();
CellMapArchive_CellMapEntry::default_instance_->InitAsDefaultInstance();
DoubleStyleMapArchive::default_instance_->InitAsDefaultInstance();
DoubleStyleMapArchive_DoubleStyleMapEntryArchive::default_instance_->InitAsDefaultInstance();
StyleTableMapArchive::default_instance_->InitAsDefaultInstance();
StyleTableMapArchive_StyleTableMapEntryArchive::default_instance_->InitAsDefaultInstance();
SelectionArchive::default_instance_->InitAsDefaultInstance();
FilterRuleArchive::default_instance_->InitAsDefaultInstance();
TableStyleArchive::default_instance_->InitAsDefaultInstance();
CellStyleArchive::default_instance_->InitAsDefaultInstance();
FormulaPredicateArchive::default_instance_->InitAsDefaultInstance();
ConditionalStyleSetArchive::default_instance_->InitAsDefaultInstance();
ConditionalStyleSetArchive_ConditionalStyleRule::default_instance_->InitAsDefaultInstance();
FilterSetArchive::default_instance_->InitAsDefaultInstance();
TokenAttachmentArchive::default_instance_->InitAsDefaultInstance();
FormulaArchive::default_instance_->InitAsDefaultInstance();
ExpressionNodeArchive::default_instance_->InitAsDefaultInstance();
BooleanNodeArchive::default_instance_->InitAsDefaultInstance();
NumberNodeArchive::default_instance_->InitAsDefaultInstance();
StringNodeArchive::default_instance_->InitAsDefaultInstance();
IdentifierNodeArchive::default_instance_->InitAsDefaultInstance();
ArrayNodeArchive::default_instance_->InitAsDefaultInstance();
ListNodeArchive::default_instance_->InitAsDefaultInstance();
OperatorNodeArchive::default_instance_->InitAsDefaultInstance();
PostfixOperatorNodeArchive::default_instance_->InitAsDefaultInstance();
PrefixOperatorNodeArchive::default_instance_->InitAsDefaultInstance();
FunctionNodeArchive::default_instance_->InitAsDefaultInstance();
FunctionEndNodeArchive::default_instance_->InitAsDefaultInstance();
DateNodeArchive::default_instance_->InitAsDefaultInstance();
ReferenceNodeArchive::default_instance_->InitAsDefaultInstance();
DurationNodeArchive::default_instance_->InitAsDefaultInstance();
ArgumentPlaceholderNodeArchive::default_instance_->InitAsDefaultInstance();
EmptyExpressionNodeArchive::default_instance_->InitAsDefaultInstance();
LayoutHintArchive::default_instance_->InitAsDefaultInstance();
CompletionTokenAttachmentArchive::default_instance_->InitAsDefaultInstance();
HiddenStateFormulaOwnerArchive::default_instance_->InitAsDefaultInstance();
RichTextPayloadArchive::default_instance_->InitAsDefaultInstance();
FormulaEqualsTokenAttachmentArchive::default_instance_->InitAsDefaultInstance();
CellRegion::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_TSTArchives_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_TSTArchives_2eproto {
StaticDescriptorInitializer_TSTArchives_2eproto() {
protobuf_AddDesc_TSTArchives_2eproto();
}
} static_descriptor_initializer_TSTArchives_2eproto_;
const ::google::protobuf::EnumDescriptor* CellType_descriptor() {
protobuf_AssignDescriptorsOnce();
return CellType_descriptor_;
}
bool CellType_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
return true;
default:
return false;
}
}
const ::google::protobuf::EnumDescriptor* CellValueType_descriptor() {
protobuf_AssignDescriptorsOnce();
return CellValueType_descriptor_;
}
bool CellValueType_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
return true;
default:
return false;
}
}
const ::google::protobuf::EnumDescriptor* SelectionTypeArchive_descriptor() {
protobuf_AssignDescriptorsOnce();
return SelectionTypeArchive_descriptor_;
}
bool SelectionTypeArchive_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
return true;
default:
return false;
}
}
const ::google::protobuf::EnumDescriptor* FillDirectionArchive_descriptor() {
protobuf_AssignDescriptorsOnce();
return FillDirectionArchive_descriptor_;
}
bool FillDirectionArchive_IsValid(int value) {
switch(value) {
case 1:
case 2:
case 3:
case 4:
return true;
default:
return false;
}
}
const ::google::protobuf::EnumDescriptor* MergeActionArchive_descriptor() {
protobuf_AssignDescriptorsOnce();
return MergeActionArchive_descriptor_;
}
bool MergeActionArchive_IsValid(int value) {
switch(value) {
case 0:
case 1:
return true;
default:
return false;
}
}
const ::google::protobuf::EnumDescriptor* HideShowActionArchive_descriptor() {
protobuf_AssignDescriptorsOnce();
return HideShowActionArchive_descriptor_;
}
bool HideShowActionArchive_IsValid(int value) {
switch(value) {
case 0:
case 1:
return true;
default:
return false;
}
}
// ===================================================================
#ifndef _MSC_VER
const int CellID::kPackedDataFieldNumber;
#endif // !_MSC_VER
CellID::CellID()
: ::google::protobuf::Message() {
SharedCtor();
}
void CellID::InitAsDefaultInstance() {
}
CellID::CellID(const CellID& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void CellID::SharedCtor() {
_cached_size_ = 0;
packeddata_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
CellID::~CellID() {
SharedDtor();
}
void CellID::SharedDtor() {
if (this != default_instance_) {
}
}
void CellID::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CellID::descriptor() {
protobuf_AssignDescriptorsOnce();
return CellID_descriptor_;
}
const CellID& CellID::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
CellID* CellID::default_instance_ = NULL;
CellID* CellID::New() const {
return new CellID;
}
void CellID::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
packeddata_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool CellID::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required fixed32 packedData = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
input, &packeddata_)));
set_has_packeddata();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void CellID::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required fixed32 packedData = 1;
if (has_packeddata()) {
::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->packeddata(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* CellID::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required fixed32 packedData = 1;
if (has_packeddata()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->packeddata(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int CellID::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required fixed32 packedData = 1;
if (has_packeddata()) {
total_size += 1 + 4;
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void CellID::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const CellID* source =
::google::protobuf::internal::dynamic_cast_if_available<const CellID*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void CellID::MergeFrom(const CellID& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_packeddata()) {
set_packeddata(from.packeddata());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CellID::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CellID::CopyFrom(const CellID& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CellID::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void CellID::Swap(CellID* other) {
if (other != this) {
std::swap(packeddata_, other->packeddata_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata CellID::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = CellID_descriptor_;
metadata.reflection = CellID_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TableSize::kPackedDataFieldNumber;
#endif // !_MSC_VER
TableSize::TableSize()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableSize::InitAsDefaultInstance() {
}
TableSize::TableSize(const TableSize& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableSize::SharedCtor() {
_cached_size_ = 0;
packeddata_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableSize::~TableSize() {
SharedDtor();
}
void TableSize::SharedDtor() {
if (this != default_instance_) {
}
}
void TableSize::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableSize::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableSize_descriptor_;
}
const TableSize& TableSize::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableSize* TableSize::default_instance_ = NULL;
TableSize* TableSize::New() const {
return new TableSize;
}
void TableSize::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
packeddata_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableSize::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required fixed32 packedData = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
input, &packeddata_)));
set_has_packeddata();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableSize::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required fixed32 packedData = 1;
if (has_packeddata()) {
::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->packeddata(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableSize::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required fixed32 packedData = 1;
if (has_packeddata()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->packeddata(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableSize::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required fixed32 packedData = 1;
if (has_packeddata()) {
total_size += 1 + 4;
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableSize::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableSize* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableSize*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableSize::MergeFrom(const TableSize& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_packeddata()) {
set_packeddata(from.packeddata());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableSize::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableSize::CopyFrom(const TableSize& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableSize::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void TableSize::Swap(TableSize* other) {
if (other != this) {
std::swap(packeddata_, other->packeddata_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableSize::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableSize_descriptor_;
metadata.reflection = TableSize_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int CellRange::kOriginFieldNumber;
const int CellRange::kSizeFieldNumber;
#endif // !_MSC_VER
CellRange::CellRange()
: ::google::protobuf::Message() {
SharedCtor();
}
void CellRange::InitAsDefaultInstance() {
origin_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
size_ = const_cast< ::TST::TableSize*>(&::TST::TableSize::default_instance());
}
CellRange::CellRange(const CellRange& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void CellRange::SharedCtor() {
_cached_size_ = 0;
origin_ = NULL;
size_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
CellRange::~CellRange() {
SharedDtor();
}
void CellRange::SharedDtor() {
if (this != default_instance_) {
delete origin_;
delete size_;
}
}
void CellRange::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CellRange::descriptor() {
protobuf_AssignDescriptorsOnce();
return CellRange_descriptor_;
}
const CellRange& CellRange::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
CellRange* CellRange::default_instance_ = NULL;
CellRange* CellRange::New() const {
return new CellRange;
}
void CellRange::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_origin()) {
if (origin_ != NULL) origin_->::TST::CellID::Clear();
}
if (has_size()) {
if (size_ != NULL) size_->::TST::TableSize::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool CellRange::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.CellID origin = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_origin()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_size;
break;
}
// required .TST.TableSize size = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_size:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_size()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void CellRange::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.CellID origin = 1;
if (has_origin()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->origin(), output);
}
// required .TST.TableSize size = 2;
if (has_size()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->size(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* CellRange::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.CellID origin = 1;
if (has_origin()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->origin(), target);
}
// required .TST.TableSize size = 2;
if (has_size()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->size(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int CellRange::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.CellID origin = 1;
if (has_origin()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->origin());
}
// required .TST.TableSize size = 2;
if (has_size()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->size());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void CellRange::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const CellRange* source =
::google::protobuf::internal::dynamic_cast_if_available<const CellRange*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void CellRange::MergeFrom(const CellRange& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_origin()) {
mutable_origin()->::TST::CellID::MergeFrom(from.origin());
}
if (from.has_size()) {
mutable_size()->::TST::TableSize::MergeFrom(from.size());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CellRange::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CellRange::CopyFrom(const CellRange& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CellRange::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_origin()) {
if (!this->origin().IsInitialized()) return false;
}
if (has_size()) {
if (!this->size().IsInitialized()) return false;
}
return true;
}
void CellRange::Swap(CellRange* other) {
if (other != this) {
std::swap(origin_, other->origin_);
std::swap(size_, other->size_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata CellRange::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = CellRange_descriptor_;
metadata.reflection = CellRange_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TableSelection::kCellRangeFieldNumber;
const int TableSelection::kExtendedCellRangeFieldNumber;
const int TableSelection::kExtendedCellRangeValidFieldNumber;
const int TableSelection::kSelectionTypeFieldNumber;
#endif // !_MSC_VER
TableSelection::TableSelection()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableSelection::InitAsDefaultInstance() {
cellrange_ = const_cast< ::TST::CellRange*>(&::TST::CellRange::default_instance());
extendedcellrange_ = const_cast< ::TST::CellRange*>(&::TST::CellRange::default_instance());
}
TableSelection::TableSelection(const TableSelection& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableSelection::SharedCtor() {
_cached_size_ = 0;
cellrange_ = NULL;
extendedcellrange_ = NULL;
extendedcellrangevalid_ = false;
selection_type_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableSelection::~TableSelection() {
SharedDtor();
}
void TableSelection::SharedDtor() {
if (this != default_instance_) {
delete cellrange_;
delete extendedcellrange_;
}
}
void TableSelection::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableSelection::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableSelection_descriptor_;
}
const TableSelection& TableSelection::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableSelection* TableSelection::default_instance_ = NULL;
TableSelection* TableSelection::New() const {
return new TableSelection;
}
void TableSelection::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_cellrange()) {
if (cellrange_ != NULL) cellrange_->::TST::CellRange::Clear();
}
if (has_extendedcellrange()) {
if (extendedcellrange_ != NULL) extendedcellrange_->::TST::CellRange::Clear();
}
extendedcellrangevalid_ = false;
selection_type_ = 0;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableSelection::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.CellRange cellRange = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cellrange()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_extendedCellRange;
break;
}
// required .TST.CellRange extendedCellRange = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_extendedCellRange:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_extendedcellrange()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_extendedCellRangeValid;
break;
}
// required bool extendedCellRangeValid = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_extendedCellRangeValid:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &extendedcellrangevalid_)));
set_has_extendedcellrangevalid();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_selection_type;
break;
}
// required .TST.SelectionTypeArchive selection_type = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_selection_type:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::TST::SelectionTypeArchive_IsValid(value)) {
set_selection_type(static_cast< ::TST::SelectionTypeArchive >(value));
} else {
mutable_unknown_fields()->AddVarint(4, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableSelection::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.CellRange cellRange = 1;
if (has_cellrange()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->cellrange(), output);
}
// required .TST.CellRange extendedCellRange = 2;
if (has_extendedcellrange()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->extendedcellrange(), output);
}
// required bool extendedCellRangeValid = 3;
if (has_extendedcellrangevalid()) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->extendedcellrangevalid(), output);
}
// required .TST.SelectionTypeArchive selection_type = 4;
if (has_selection_type()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
4, this->selection_type(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableSelection::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.CellRange cellRange = 1;
if (has_cellrange()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->cellrange(), target);
}
// required .TST.CellRange extendedCellRange = 2;
if (has_extendedcellrange()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->extendedcellrange(), target);
}
// required bool extendedCellRangeValid = 3;
if (has_extendedcellrangevalid()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->extendedcellrangevalid(), target);
}
// required .TST.SelectionTypeArchive selection_type = 4;
if (has_selection_type()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4, this->selection_type(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableSelection::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.CellRange cellRange = 1;
if (has_cellrange()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cellrange());
}
// required .TST.CellRange extendedCellRange = 2;
if (has_extendedcellrange()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->extendedcellrange());
}
// required bool extendedCellRangeValid = 3;
if (has_extendedcellrangevalid()) {
total_size += 1 + 1;
}
// required .TST.SelectionTypeArchive selection_type = 4;
if (has_selection_type()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->selection_type());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableSelection::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableSelection* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableSelection*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableSelection::MergeFrom(const TableSelection& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_cellrange()) {
mutable_cellrange()->::TST::CellRange::MergeFrom(from.cellrange());
}
if (from.has_extendedcellrange()) {
mutable_extendedcellrange()->::TST::CellRange::MergeFrom(from.extendedcellrange());
}
if (from.has_extendedcellrangevalid()) {
set_extendedcellrangevalid(from.extendedcellrangevalid());
}
if (from.has_selection_type()) {
set_selection_type(from.selection_type());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableSelection::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableSelection::CopyFrom(const TableSelection& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableSelection::IsInitialized() const {
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
if (has_cellrange()) {
if (!this->cellrange().IsInitialized()) return false;
}
if (has_extendedcellrange()) {
if (!this->extendedcellrange().IsInitialized()) return false;
}
return true;
}
void TableSelection::Swap(TableSelection* other) {
if (other != this) {
std::swap(cellrange_, other->cellrange_);
std::swap(extendedcellrange_, other->extendedcellrange_);
std::swap(extendedcellrangevalid_, other->extendedcellrangevalid_);
std::swap(selection_type_, other->selection_type_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableSelection::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableSelection_descriptor_;
metadata.reflection = TableSelection_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TileRowInfo::kStorageVersionFieldNumber;
const int TileRowInfo::kTileRowIndexFieldNumber;
const int TileRowInfo::kCellCountFieldNumber;
const int TileRowInfo::kCellStorageBufferFieldNumber;
const int TileRowInfo::kCellOffsetsFieldNumber;
#endif // !_MSC_VER
TileRowInfo::TileRowInfo()
: ::google::protobuf::Message() {
SharedCtor();
}
void TileRowInfo::InitAsDefaultInstance() {
}
TileRowInfo::TileRowInfo(const TileRowInfo& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TileRowInfo::SharedCtor() {
_cached_size_ = 0;
storage_version_ = 0u;
tilerowindex_ = 0u;
cellcount_ = 0u;
cellstoragebuffer_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
celloffsets_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TileRowInfo::~TileRowInfo() {
SharedDtor();
}
void TileRowInfo::SharedDtor() {
if (cellstoragebuffer_ != &::google::protobuf::internal::kEmptyString) {
delete cellstoragebuffer_;
}
if (celloffsets_ != &::google::protobuf::internal::kEmptyString) {
delete celloffsets_;
}
if (this != default_instance_) {
}
}
void TileRowInfo::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TileRowInfo::descriptor() {
protobuf_AssignDescriptorsOnce();
return TileRowInfo_descriptor_;
}
const TileRowInfo& TileRowInfo::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TileRowInfo* TileRowInfo::default_instance_ = NULL;
TileRowInfo* TileRowInfo::New() const {
return new TileRowInfo;
}
void TileRowInfo::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
storage_version_ = 0u;
tilerowindex_ = 0u;
cellcount_ = 0u;
if (has_cellstoragebuffer()) {
if (cellstoragebuffer_ != &::google::protobuf::internal::kEmptyString) {
cellstoragebuffer_->clear();
}
}
if (has_celloffsets()) {
if (celloffsets_ != &::google::protobuf::internal::kEmptyString) {
celloffsets_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TileRowInfo::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 tileRowIndex = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &tilerowindex_)));
set_has_tilerowindex();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_cellCount;
break;
}
// required uint32 cellCount = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_cellCount:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &cellcount_)));
set_has_cellcount();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_cellStorageBuffer;
break;
}
// required bytes cellStorageBuffer = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cellStorageBuffer:
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_cellstoragebuffer()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_cellOffsets;
break;
}
// required bytes cellOffsets = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cellOffsets:
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_celloffsets()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_storage_version;
break;
}
// optional uint32 storage_version = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_storage_version:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &storage_version_)));
set_has_storage_version();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TileRowInfo::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 tileRowIndex = 1;
if (has_tilerowindex()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->tilerowindex(), output);
}
// required uint32 cellCount = 2;
if (has_cellcount()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->cellcount(), output);
}
// required bytes cellStorageBuffer = 3;
if (has_cellstoragebuffer()) {
::google::protobuf::internal::WireFormatLite::WriteBytes(
3, this->cellstoragebuffer(), output);
}
// required bytes cellOffsets = 4;
if (has_celloffsets()) {
::google::protobuf::internal::WireFormatLite::WriteBytes(
4, this->celloffsets(), output);
}
// optional uint32 storage_version = 5;
if (has_storage_version()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->storage_version(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TileRowInfo::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 tileRowIndex = 1;
if (has_tilerowindex()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->tilerowindex(), target);
}
// required uint32 cellCount = 2;
if (has_cellcount()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->cellcount(), target);
}
// required bytes cellStorageBuffer = 3;
if (has_cellstoragebuffer()) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3, this->cellstoragebuffer(), target);
}
// required bytes cellOffsets = 4;
if (has_celloffsets()) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
4, this->celloffsets(), target);
}
// optional uint32 storage_version = 5;
if (has_storage_version()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->storage_version(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TileRowInfo::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional uint32 storage_version = 5;
if (has_storage_version()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->storage_version());
}
// required uint32 tileRowIndex = 1;
if (has_tilerowindex()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->tilerowindex());
}
// required uint32 cellCount = 2;
if (has_cellcount()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->cellcount());
}
// required bytes cellStorageBuffer = 3;
if (has_cellstoragebuffer()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->cellstoragebuffer());
}
// required bytes cellOffsets = 4;
if (has_celloffsets()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->celloffsets());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TileRowInfo::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TileRowInfo* source =
::google::protobuf::internal::dynamic_cast_if_available<const TileRowInfo*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TileRowInfo::MergeFrom(const TileRowInfo& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_storage_version()) {
set_storage_version(from.storage_version());
}
if (from.has_tilerowindex()) {
set_tilerowindex(from.tilerowindex());
}
if (from.has_cellcount()) {
set_cellcount(from.cellcount());
}
if (from.has_cellstoragebuffer()) {
set_cellstoragebuffer(from.cellstoragebuffer());
}
if (from.has_celloffsets()) {
set_celloffsets(from.celloffsets());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TileRowInfo::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TileRowInfo::CopyFrom(const TileRowInfo& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TileRowInfo::IsInitialized() const {
if ((_has_bits_[0] & 0x0000001e) != 0x0000001e) return false;
return true;
}
void TileRowInfo::Swap(TileRowInfo* other) {
if (other != this) {
std::swap(storage_version_, other->storage_version_);
std::swap(tilerowindex_, other->tilerowindex_);
std::swap(cellcount_, other->cellcount_);
std::swap(cellstoragebuffer_, other->cellstoragebuffer_);
std::swap(celloffsets_, other->celloffsets_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TileRowInfo::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TileRowInfo_descriptor_;
metadata.reflection = TileRowInfo_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int Tile::kMaxColumnFieldNumber;
const int Tile::kMaxRowFieldNumber;
const int Tile::kNumCellsFieldNumber;
const int Tile::kNumrowsFieldNumber;
const int Tile::kStorageVersionFieldNumber;
const int Tile::kRowInfosFieldNumber;
#endif // !_MSC_VER
Tile::Tile()
: ::google::protobuf::Message() {
SharedCtor();
}
void Tile::InitAsDefaultInstance() {
}
Tile::Tile(const Tile& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Tile::SharedCtor() {
_cached_size_ = 0;
maxcolumn_ = 0u;
maxrow_ = 0u;
numcells_ = 0u;
numrows_ = 0u;
storage_version_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Tile::~Tile() {
SharedDtor();
}
void Tile::SharedDtor() {
if (this != default_instance_) {
}
}
void Tile::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Tile::descriptor() {
protobuf_AssignDescriptorsOnce();
return Tile_descriptor_;
}
const Tile& Tile::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
Tile* Tile::default_instance_ = NULL;
Tile* Tile::New() const {
return new Tile;
}
void Tile::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
maxcolumn_ = 0u;
maxrow_ = 0u;
numcells_ = 0u;
numrows_ = 0u;
storage_version_ = 0u;
}
rowinfos_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Tile::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 maxColumn = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &maxcolumn_)));
set_has_maxcolumn();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_maxRow;
break;
}
// required uint32 maxRow = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_maxRow:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &maxrow_)));
set_has_maxrow();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_numCells;
break;
}
// required uint32 numCells = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_numCells:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &numcells_)));
set_has_numcells();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_numrows;
break;
}
// required uint32 numrows = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_numrows:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &numrows_)));
set_has_numrows();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_rowInfos;
break;
}
// repeated .TST.TileRowInfo rowInfos = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_rowInfos:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_rowinfos()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_rowInfos;
if (input->ExpectTag(48)) goto parse_storage_version;
break;
}
// optional uint32 storage_version = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_storage_version:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &storage_version_)));
set_has_storage_version();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Tile::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 maxColumn = 1;
if (has_maxcolumn()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->maxcolumn(), output);
}
// required uint32 maxRow = 2;
if (has_maxrow()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->maxrow(), output);
}
// required uint32 numCells = 3;
if (has_numcells()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->numcells(), output);
}
// required uint32 numrows = 4;
if (has_numrows()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->numrows(), output);
}
// repeated .TST.TileRowInfo rowInfos = 5;
for (int i = 0; i < this->rowinfos_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->rowinfos(i), output);
}
// optional uint32 storage_version = 6;
if (has_storage_version()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->storage_version(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Tile::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 maxColumn = 1;
if (has_maxcolumn()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->maxcolumn(), target);
}
// required uint32 maxRow = 2;
if (has_maxrow()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->maxrow(), target);
}
// required uint32 numCells = 3;
if (has_numcells()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->numcells(), target);
}
// required uint32 numrows = 4;
if (has_numrows()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->numrows(), target);
}
// repeated .TST.TileRowInfo rowInfos = 5;
for (int i = 0; i < this->rowinfos_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->rowinfos(i), target);
}
// optional uint32 storage_version = 6;
if (has_storage_version()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->storage_version(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Tile::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 maxColumn = 1;
if (has_maxcolumn()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->maxcolumn());
}
// required uint32 maxRow = 2;
if (has_maxrow()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->maxrow());
}
// required uint32 numCells = 3;
if (has_numcells()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->numcells());
}
// required uint32 numrows = 4;
if (has_numrows()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->numrows());
}
// optional uint32 storage_version = 6;
if (has_storage_version()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->storage_version());
}
}
// repeated .TST.TileRowInfo rowInfos = 5;
total_size += 1 * this->rowinfos_size();
for (int i = 0; i < this->rowinfos_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->rowinfos(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Tile::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Tile* source =
::google::protobuf::internal::dynamic_cast_if_available<const Tile*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Tile::MergeFrom(const Tile& from) {
GOOGLE_CHECK_NE(&from, this);
rowinfos_.MergeFrom(from.rowinfos_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_maxcolumn()) {
set_maxcolumn(from.maxcolumn());
}
if (from.has_maxrow()) {
set_maxrow(from.maxrow());
}
if (from.has_numcells()) {
set_numcells(from.numcells());
}
if (from.has_numrows()) {
set_numrows(from.numrows());
}
if (from.has_storage_version()) {
set_storage_version(from.storage_version());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Tile::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Tile::CopyFrom(const Tile& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Tile::IsInitialized() const {
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
for (int i = 0; i < rowinfos_size(); i++) {
if (!this->rowinfos(i).IsInitialized()) return false;
}
return true;
}
void Tile::Swap(Tile* other) {
if (other != this) {
std::swap(maxcolumn_, other->maxcolumn_);
std::swap(maxrow_, other->maxrow_);
std::swap(numcells_, other->numcells_);
std::swap(numrows_, other->numrows_);
std::swap(storage_version_, other->storage_version_);
rowinfos_.Swap(&other->rowinfos_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Tile::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Tile_descriptor_;
metadata.reflection = Tile_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TileStorage_Tile::kTileidFieldNumber;
const int TileStorage_Tile::kTileFieldNumber;
#endif // !_MSC_VER
TileStorage_Tile::TileStorage_Tile()
: ::google::protobuf::Message() {
SharedCtor();
}
void TileStorage_Tile::InitAsDefaultInstance() {
tile_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
TileStorage_Tile::TileStorage_Tile(const TileStorage_Tile& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TileStorage_Tile::SharedCtor() {
_cached_size_ = 0;
tileid_ = 0u;
tile_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TileStorage_Tile::~TileStorage_Tile() {
SharedDtor();
}
void TileStorage_Tile::SharedDtor() {
if (this != default_instance_) {
delete tile_;
}
}
void TileStorage_Tile::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TileStorage_Tile::descriptor() {
protobuf_AssignDescriptorsOnce();
return TileStorage_Tile_descriptor_;
}
const TileStorage_Tile& TileStorage_Tile::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TileStorage_Tile* TileStorage_Tile::default_instance_ = NULL;
TileStorage_Tile* TileStorage_Tile::New() const {
return new TileStorage_Tile;
}
void TileStorage_Tile::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
tileid_ = 0u;
if (has_tile()) {
if (tile_ != NULL) tile_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TileStorage_Tile::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 tileid = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &tileid_)));
set_has_tileid();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_tile;
break;
}
// required .TSP.Reference tile = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_tile:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_tile()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TileStorage_Tile::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 tileid = 1;
if (has_tileid()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->tileid(), output);
}
// required .TSP.Reference tile = 2;
if (has_tile()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->tile(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TileStorage_Tile::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 tileid = 1;
if (has_tileid()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->tileid(), target);
}
// required .TSP.Reference tile = 2;
if (has_tile()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->tile(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TileStorage_Tile::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 tileid = 1;
if (has_tileid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->tileid());
}
// required .TSP.Reference tile = 2;
if (has_tile()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->tile());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TileStorage_Tile::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TileStorage_Tile* source =
::google::protobuf::internal::dynamic_cast_if_available<const TileStorage_Tile*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TileStorage_Tile::MergeFrom(const TileStorage_Tile& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_tileid()) {
set_tileid(from.tileid());
}
if (from.has_tile()) {
mutable_tile()->::TSP::Reference::MergeFrom(from.tile());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TileStorage_Tile::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TileStorage_Tile::CopyFrom(const TileStorage_Tile& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TileStorage_Tile::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_tile()) {
if (!this->tile().IsInitialized()) return false;
}
return true;
}
void TileStorage_Tile::Swap(TileStorage_Tile* other) {
if (other != this) {
std::swap(tileid_, other->tileid_);
std::swap(tile_, other->tile_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TileStorage_Tile::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TileStorage_Tile_descriptor_;
metadata.reflection = TileStorage_Tile_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int TileStorage::kTilesFieldNumber;
#endif // !_MSC_VER
TileStorage::TileStorage()
: ::google::protobuf::Message() {
SharedCtor();
}
void TileStorage::InitAsDefaultInstance() {
}
TileStorage::TileStorage(const TileStorage& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TileStorage::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TileStorage::~TileStorage() {
SharedDtor();
}
void TileStorage::SharedDtor() {
if (this != default_instance_) {
}
}
void TileStorage::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TileStorage::descriptor() {
protobuf_AssignDescriptorsOnce();
return TileStorage_descriptor_;
}
const TileStorage& TileStorage::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TileStorage* TileStorage::default_instance_ = NULL;
TileStorage* TileStorage::New() const {
return new TileStorage;
}
void TileStorage::Clear() {
tiles_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TileStorage::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .TST.TileStorage.Tile tiles = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_tiles:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_tiles()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_tiles;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TileStorage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .TST.TileStorage.Tile tiles = 1;
for (int i = 0; i < this->tiles_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->tiles(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TileStorage::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .TST.TileStorage.Tile tiles = 1;
for (int i = 0; i < this->tiles_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->tiles(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TileStorage::ByteSize() const {
int total_size = 0;
// repeated .TST.TileStorage.Tile tiles = 1;
total_size += 1 * this->tiles_size();
for (int i = 0; i < this->tiles_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->tiles(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TileStorage::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TileStorage* source =
::google::protobuf::internal::dynamic_cast_if_available<const TileStorage*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TileStorage::MergeFrom(const TileStorage& from) {
GOOGLE_CHECK_NE(&from, this);
tiles_.MergeFrom(from.tiles_);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TileStorage::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TileStorage::CopyFrom(const TileStorage& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TileStorage::IsInitialized() const {
for (int i = 0; i < tiles_size(); i++) {
if (!this->tiles(i).IsInitialized()) return false;
}
return true;
}
void TileStorage::Swap(TileStorage* other) {
if (other != this) {
tiles_.Swap(&other->tiles_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TileStorage::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TileStorage_descriptor_;
metadata.reflection = TileStorage_reflection_;
return metadata;
}
// ===================================================================
const ::google::protobuf::EnumDescriptor* PopUpMenuModel_CellValueType_descriptor() {
protobuf_AssignDescriptorsOnce();
return PopUpMenuModel_CellValueType_descriptor_;
}
bool PopUpMenuModel_CellValueType_IsValid(int value) {
switch(value) {
case 1:
case 2:
case 3:
case 4:
case 5:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const PopUpMenuModel_CellValueType PopUpMenuModel::NIL_TYPE;
const PopUpMenuModel_CellValueType PopUpMenuModel::BOOLEAN_TYPE;
const PopUpMenuModel_CellValueType PopUpMenuModel::DATE_TYPE;
const PopUpMenuModel_CellValueType PopUpMenuModel::NUMBER_TYPE;
const PopUpMenuModel_CellValueType PopUpMenuModel::STRING_TYPE;
const PopUpMenuModel_CellValueType PopUpMenuModel::CellValueType_MIN;
const PopUpMenuModel_CellValueType PopUpMenuModel::CellValueType_MAX;
const int PopUpMenuModel::CellValueType_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
const int PopUpMenuModel_CellValue::kCellValueTypeFieldNumber;
const int PopUpMenuModel_CellValue::kBooleanValueFieldNumber;
const int PopUpMenuModel_CellValue::kDateValueFieldNumber;
const int PopUpMenuModel_CellValue::kNumberValueFieldNumber;
const int PopUpMenuModel_CellValue::kStringValueFieldNumber;
#endif // !_MSC_VER
PopUpMenuModel_CellValue::PopUpMenuModel_CellValue()
: ::google::protobuf::Message() {
SharedCtor();
}
void PopUpMenuModel_CellValue::InitAsDefaultInstance() {
boolean_value_ = const_cast< ::TSCE::BooleanCellValueArchive*>(&::TSCE::BooleanCellValueArchive::default_instance());
date_value_ = const_cast< ::TSCE::DateCellValueArchive*>(&::TSCE::DateCellValueArchive::default_instance());
number_value_ = const_cast< ::TSCE::NumberCellValueArchive*>(&::TSCE::NumberCellValueArchive::default_instance());
string_value_ = const_cast< ::TSCE::StringCellValueArchive*>(&::TSCE::StringCellValueArchive::default_instance());
}
PopUpMenuModel_CellValue::PopUpMenuModel_CellValue(const PopUpMenuModel_CellValue& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PopUpMenuModel_CellValue::SharedCtor() {
_cached_size_ = 0;
cell_value_type_ = 1;
boolean_value_ = NULL;
date_value_ = NULL;
number_value_ = NULL;
string_value_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PopUpMenuModel_CellValue::~PopUpMenuModel_CellValue() {
SharedDtor();
}
void PopUpMenuModel_CellValue::SharedDtor() {
if (this != default_instance_) {
delete boolean_value_;
delete date_value_;
delete number_value_;
delete string_value_;
}
}
void PopUpMenuModel_CellValue::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PopUpMenuModel_CellValue::descriptor() {
protobuf_AssignDescriptorsOnce();
return PopUpMenuModel_CellValue_descriptor_;
}
const PopUpMenuModel_CellValue& PopUpMenuModel_CellValue::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
PopUpMenuModel_CellValue* PopUpMenuModel_CellValue::default_instance_ = NULL;
PopUpMenuModel_CellValue* PopUpMenuModel_CellValue::New() const {
return new PopUpMenuModel_CellValue;
}
void PopUpMenuModel_CellValue::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
cell_value_type_ = 1;
if (has_boolean_value()) {
if (boolean_value_ != NULL) boolean_value_->::TSCE::BooleanCellValueArchive::Clear();
}
if (has_date_value()) {
if (date_value_ != NULL) date_value_->::TSCE::DateCellValueArchive::Clear();
}
if (has_number_value()) {
if (number_value_ != NULL) number_value_->::TSCE::NumberCellValueArchive::Clear();
}
if (has_string_value()) {
if (string_value_ != NULL) string_value_->::TSCE::StringCellValueArchive::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PopUpMenuModel_CellValue::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.PopUpMenuModel.CellValueType cell_value_type = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::TST::PopUpMenuModel_CellValueType_IsValid(value)) {
set_cell_value_type(static_cast< ::TST::PopUpMenuModel_CellValueType >(value));
} else {
mutable_unknown_fields()->AddVarint(1, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_boolean_value;
break;
}
// optional .TSCE.BooleanCellValueArchive boolean_value = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_boolean_value:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_boolean_value()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_date_value;
break;
}
// optional .TSCE.DateCellValueArchive date_value = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_date_value:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_date_value()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_number_value;
break;
}
// optional .TSCE.NumberCellValueArchive number_value = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_number_value:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_number_value()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_string_value;
break;
}
// optional .TSCE.StringCellValueArchive string_value = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_string_value:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_string_value()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PopUpMenuModel_CellValue::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.PopUpMenuModel.CellValueType cell_value_type = 1;
if (has_cell_value_type()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->cell_value_type(), output);
}
// optional .TSCE.BooleanCellValueArchive boolean_value = 2;
if (has_boolean_value()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->boolean_value(), output);
}
// optional .TSCE.DateCellValueArchive date_value = 3;
if (has_date_value()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->date_value(), output);
}
// optional .TSCE.NumberCellValueArchive number_value = 4;
if (has_number_value()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->number_value(), output);
}
// optional .TSCE.StringCellValueArchive string_value = 5;
if (has_string_value()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->string_value(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PopUpMenuModel_CellValue::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.PopUpMenuModel.CellValueType cell_value_type = 1;
if (has_cell_value_type()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->cell_value_type(), target);
}
// optional .TSCE.BooleanCellValueArchive boolean_value = 2;
if (has_boolean_value()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->boolean_value(), target);
}
// optional .TSCE.DateCellValueArchive date_value = 3;
if (has_date_value()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->date_value(), target);
}
// optional .TSCE.NumberCellValueArchive number_value = 4;
if (has_number_value()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->number_value(), target);
}
// optional .TSCE.StringCellValueArchive string_value = 5;
if (has_string_value()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->string_value(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PopUpMenuModel_CellValue::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.PopUpMenuModel.CellValueType cell_value_type = 1;
if (has_cell_value_type()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->cell_value_type());
}
// optional .TSCE.BooleanCellValueArchive boolean_value = 2;
if (has_boolean_value()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->boolean_value());
}
// optional .TSCE.DateCellValueArchive date_value = 3;
if (has_date_value()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->date_value());
}
// optional .TSCE.NumberCellValueArchive number_value = 4;
if (has_number_value()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->number_value());
}
// optional .TSCE.StringCellValueArchive string_value = 5;
if (has_string_value()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->string_value());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PopUpMenuModel_CellValue::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PopUpMenuModel_CellValue* source =
::google::protobuf::internal::dynamic_cast_if_available<const PopUpMenuModel_CellValue*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PopUpMenuModel_CellValue::MergeFrom(const PopUpMenuModel_CellValue& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_cell_value_type()) {
set_cell_value_type(from.cell_value_type());
}
if (from.has_boolean_value()) {
mutable_boolean_value()->::TSCE::BooleanCellValueArchive::MergeFrom(from.boolean_value());
}
if (from.has_date_value()) {
mutable_date_value()->::TSCE::DateCellValueArchive::MergeFrom(from.date_value());
}
if (from.has_number_value()) {
mutable_number_value()->::TSCE::NumberCellValueArchive::MergeFrom(from.number_value());
}
if (from.has_string_value()) {
mutable_string_value()->::TSCE::StringCellValueArchive::MergeFrom(from.string_value());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PopUpMenuModel_CellValue::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PopUpMenuModel_CellValue::CopyFrom(const PopUpMenuModel_CellValue& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PopUpMenuModel_CellValue::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_boolean_value()) {
if (!this->boolean_value().IsInitialized()) return false;
}
if (has_date_value()) {
if (!this->date_value().IsInitialized()) return false;
}
if (has_number_value()) {
if (!this->number_value().IsInitialized()) return false;
}
if (has_string_value()) {
if (!this->string_value().IsInitialized()) return false;
}
return true;
}
void PopUpMenuModel_CellValue::Swap(PopUpMenuModel_CellValue* other) {
if (other != this) {
std::swap(cell_value_type_, other->cell_value_type_);
std::swap(boolean_value_, other->boolean_value_);
std::swap(date_value_, other->date_value_);
std::swap(number_value_, other->number_value_);
std::swap(string_value_, other->string_value_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata PopUpMenuModel_CellValue::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PopUpMenuModel_CellValue_descriptor_;
metadata.reflection = PopUpMenuModel_CellValue_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int PopUpMenuModel::kItemFieldNumber;
const int PopUpMenuModel::kTsceItemFieldNumber;
#endif // !_MSC_VER
PopUpMenuModel::PopUpMenuModel()
: ::google::protobuf::Message() {
SharedCtor();
}
void PopUpMenuModel::InitAsDefaultInstance() {
}
PopUpMenuModel::PopUpMenuModel(const PopUpMenuModel& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PopUpMenuModel::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PopUpMenuModel::~PopUpMenuModel() {
SharedDtor();
}
void PopUpMenuModel::SharedDtor() {
if (this != default_instance_) {
}
}
void PopUpMenuModel::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PopUpMenuModel::descriptor() {
protobuf_AssignDescriptorsOnce();
return PopUpMenuModel_descriptor_;
}
const PopUpMenuModel& PopUpMenuModel::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
PopUpMenuModel* PopUpMenuModel::default_instance_ = NULL;
PopUpMenuModel* PopUpMenuModel::New() const {
return new PopUpMenuModel;
}
void PopUpMenuModel::Clear() {
item_.Clear();
tsce_item_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PopUpMenuModel::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .TST.PopUpMenuModel.CellValue item = 1 [deprecated = true];
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_item:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_item()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_item;
if (input->ExpectTag(18)) goto parse_tsce_item;
break;
}
// repeated .TSCE.CellValueArchive tsce_item = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_tsce_item:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_tsce_item()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_tsce_item;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PopUpMenuModel::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .TST.PopUpMenuModel.CellValue item = 1 [deprecated = true];
for (int i = 0; i < this->item_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->item(i), output);
}
// repeated .TSCE.CellValueArchive tsce_item = 2;
for (int i = 0; i < this->tsce_item_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->tsce_item(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PopUpMenuModel::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .TST.PopUpMenuModel.CellValue item = 1 [deprecated = true];
for (int i = 0; i < this->item_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->item(i), target);
}
// repeated .TSCE.CellValueArchive tsce_item = 2;
for (int i = 0; i < this->tsce_item_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->tsce_item(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PopUpMenuModel::ByteSize() const {
int total_size = 0;
// repeated .TST.PopUpMenuModel.CellValue item = 1 [deprecated = true];
total_size += 1 * this->item_size();
for (int i = 0; i < this->item_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->item(i));
}
// repeated .TSCE.CellValueArchive tsce_item = 2;
total_size += 1 * this->tsce_item_size();
for (int i = 0; i < this->tsce_item_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->tsce_item(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PopUpMenuModel::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PopUpMenuModel* source =
::google::protobuf::internal::dynamic_cast_if_available<const PopUpMenuModel*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PopUpMenuModel::MergeFrom(const PopUpMenuModel& from) {
GOOGLE_CHECK_NE(&from, this);
item_.MergeFrom(from.item_);
tsce_item_.MergeFrom(from.tsce_item_);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PopUpMenuModel::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PopUpMenuModel::CopyFrom(const PopUpMenuModel& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PopUpMenuModel::IsInitialized() const {
for (int i = 0; i < item_size(); i++) {
if (!this->item(i).IsInitialized()) return false;
}
for (int i = 0; i < tsce_item_size(); i++) {
if (!this->tsce_item(i).IsInitialized()) return false;
}
return true;
}
void PopUpMenuModel::Swap(PopUpMenuModel* other) {
if (other != this) {
item_.Swap(&other->item_);
tsce_item_.Swap(&other->tsce_item_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata PopUpMenuModel::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PopUpMenuModel_descriptor_;
metadata.reflection = PopUpMenuModel_reflection_;
return metadata;
}
// ===================================================================
const ::google::protobuf::EnumDescriptor* TableDataList_ListType_descriptor() {
protobuf_AssignDescriptorsOnce();
return TableDataList_ListType_descriptor_;
}
bool TableDataList_ListType_IsValid(int value) {
switch(value) {
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const TableDataList_ListType TableDataList::STRING;
const TableDataList_ListType TableDataList::FORMAT;
const TableDataList_ListType TableDataList::FORMULA;
const TableDataList_ListType TableDataList::STYLE;
const TableDataList_ListType TableDataList::FORMULA_ERROR;
const TableDataList_ListType TableDataList::CUSTOM_FORMAT;
const TableDataList_ListType TableDataList::MULTIPLE_CHOICE_LIST_FORMAT;
const TableDataList_ListType TableDataList::RICH_TEXT_PAYLOAD;
const TableDataList_ListType TableDataList::CONDITIONAL_STYLE;
const TableDataList_ListType TableDataList::COMMENT_STORAGE;
const TableDataList_ListType TableDataList::ListType_MIN;
const TableDataList_ListType TableDataList::ListType_MAX;
const int TableDataList::ListType_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
const int TableDataList_ListEntry::kKeyFieldNumber;
const int TableDataList_ListEntry::kRefcountFieldNumber;
const int TableDataList_ListEntry::kStringFieldNumber;
const int TableDataList_ListEntry::kReferenceFieldNumber;
const int TableDataList_ListEntry::kFormulaFieldNumber;
const int TableDataList_ListEntry::kFormatFieldNumber;
const int TableDataList_ListEntry::kRegionFieldNumber;
const int TableDataList_ListEntry::kCustomFormatFieldNumber;
const int TableDataList_ListEntry::kRichTextPayloadFieldNumber;
const int TableDataList_ListEntry::kCommentStorageFieldNumber;
#endif // !_MSC_VER
TableDataList_ListEntry::TableDataList_ListEntry()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableDataList_ListEntry::InitAsDefaultInstance() {
reference_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
formula_ = const_cast< ::TSCE::FormulaArchive*>(&::TSCE::FormulaArchive::default_instance());
format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
region_ = const_cast< ::TST::CellRange*>(&::TST::CellRange::default_instance());
custom_format_ = const_cast< ::TSK::CustomFormatArchive*>(&::TSK::CustomFormatArchive::default_instance());
richtextpayload_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
comment_storage_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
TableDataList_ListEntry::TableDataList_ListEntry(const TableDataList_ListEntry& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableDataList_ListEntry::SharedCtor() {
_cached_size_ = 0;
key_ = 0u;
refcount_ = 0u;
string_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
reference_ = NULL;
formula_ = NULL;
format_ = NULL;
region_ = NULL;
custom_format_ = NULL;
richtextpayload_ = NULL;
comment_storage_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableDataList_ListEntry::~TableDataList_ListEntry() {
SharedDtor();
}
void TableDataList_ListEntry::SharedDtor() {
if (string_ != &::google::protobuf::internal::kEmptyString) {
delete string_;
}
if (this != default_instance_) {
delete reference_;
delete formula_;
delete format_;
delete region_;
delete custom_format_;
delete richtextpayload_;
delete comment_storage_;
}
}
void TableDataList_ListEntry::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableDataList_ListEntry::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableDataList_ListEntry_descriptor_;
}
const TableDataList_ListEntry& TableDataList_ListEntry::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableDataList_ListEntry* TableDataList_ListEntry::default_instance_ = NULL;
TableDataList_ListEntry* TableDataList_ListEntry::New() const {
return new TableDataList_ListEntry;
}
void TableDataList_ListEntry::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
key_ = 0u;
refcount_ = 0u;
if (has_string()) {
if (string_ != &::google::protobuf::internal::kEmptyString) {
string_->clear();
}
}
if (has_reference()) {
if (reference_ != NULL) reference_->::TSP::Reference::Clear();
}
if (has_formula()) {
if (formula_ != NULL) formula_->::TSCE::FormulaArchive::Clear();
}
if (has_format()) {
if (format_ != NULL) format_->::TSK::FormatStructArchive::Clear();
}
if (has_region()) {
if (region_ != NULL) region_->::TST::CellRange::Clear();
}
if (has_custom_format()) {
if (custom_format_ != NULL) custom_format_->::TSK::CustomFormatArchive::Clear();
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (has_richtextpayload()) {
if (richtextpayload_ != NULL) richtextpayload_->::TSP::Reference::Clear();
}
if (has_comment_storage()) {
if (comment_storage_ != NULL) comment_storage_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableDataList_ListEntry::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 key = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &key_)));
set_has_key();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_refcount;
break;
}
// required uint32 refcount = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_refcount:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &refcount_)));
set_has_refcount();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_string;
break;
}
// optional string string = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_string:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_string()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->string().data(), this->string().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_reference;
break;
}
// optional .TSP.Reference reference = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_reference:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_reference()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_formula;
break;
}
// optional .TSCE.FormulaArchive formula = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_formula:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_formula()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_format;
break;
}
// optional .TSK.FormatStructArchive format = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(58)) goto parse_region;
break;
}
// optional .TST.CellRange region = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_region:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_region()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(66)) goto parse_custom_format;
break;
}
// optional .TSK.CustomFormatArchive custom_format = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_custom_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_custom_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(74)) goto parse_richTextPayload;
break;
}
// optional .TSP.Reference richTextPayload = 9;
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_richTextPayload:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_richtextpayload()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(82)) goto parse_comment_storage;
break;
}
// optional .TSP.Reference comment_storage = 10;
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_comment_storage:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_comment_storage()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableDataList_ListEntry::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 key = 1;
if (has_key()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->key(), output);
}
// required uint32 refcount = 2;
if (has_refcount()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->refcount(), output);
}
// optional string string = 3;
if (has_string()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->string().data(), this->string().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
3, this->string(), output);
}
// optional .TSP.Reference reference = 4;
if (has_reference()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->reference(), output);
}
// optional .TSCE.FormulaArchive formula = 5;
if (has_formula()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->formula(), output);
}
// optional .TSK.FormatStructArchive format = 6;
if (has_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, this->format(), output);
}
// optional .TST.CellRange region = 7;
if (has_region()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7, this->region(), output);
}
// optional .TSK.CustomFormatArchive custom_format = 8;
if (has_custom_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8, this->custom_format(), output);
}
// optional .TSP.Reference richTextPayload = 9;
if (has_richtextpayload()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9, this->richtextpayload(), output);
}
// optional .TSP.Reference comment_storage = 10;
if (has_comment_storage()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, this->comment_storage(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableDataList_ListEntry::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 key = 1;
if (has_key()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->key(), target);
}
// required uint32 refcount = 2;
if (has_refcount()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->refcount(), target);
}
// optional string string = 3;
if (has_string()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->string().data(), this->string().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->string(), target);
}
// optional .TSP.Reference reference = 4;
if (has_reference()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->reference(), target);
}
// optional .TSCE.FormulaArchive formula = 5;
if (has_formula()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->formula(), target);
}
// optional .TSK.FormatStructArchive format = 6;
if (has_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
6, this->format(), target);
}
// optional .TST.CellRange region = 7;
if (has_region()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
7, this->region(), target);
}
// optional .TSK.CustomFormatArchive custom_format = 8;
if (has_custom_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
8, this->custom_format(), target);
}
// optional .TSP.Reference richTextPayload = 9;
if (has_richtextpayload()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
9, this->richtextpayload(), target);
}
// optional .TSP.Reference comment_storage = 10;
if (has_comment_storage()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
10, this->comment_storage(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableDataList_ListEntry::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 key = 1;
if (has_key()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->key());
}
// required uint32 refcount = 2;
if (has_refcount()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->refcount());
}
// optional string string = 3;
if (has_string()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->string());
}
// optional .TSP.Reference reference = 4;
if (has_reference()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->reference());
}
// optional .TSCE.FormulaArchive formula = 5;
if (has_formula()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->formula());
}
// optional .TSK.FormatStructArchive format = 6;
if (has_format()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->format());
}
// optional .TST.CellRange region = 7;
if (has_region()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->region());
}
// optional .TSK.CustomFormatArchive custom_format = 8;
if (has_custom_format()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->custom_format());
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
// optional .TSP.Reference richTextPayload = 9;
if (has_richtextpayload()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->richtextpayload());
}
// optional .TSP.Reference comment_storage = 10;
if (has_comment_storage()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->comment_storage());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableDataList_ListEntry::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableDataList_ListEntry* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableDataList_ListEntry*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableDataList_ListEntry::MergeFrom(const TableDataList_ListEntry& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_key()) {
set_key(from.key());
}
if (from.has_refcount()) {
set_refcount(from.refcount());
}
if (from.has_string()) {
set_string(from.string());
}
if (from.has_reference()) {
mutable_reference()->::TSP::Reference::MergeFrom(from.reference());
}
if (from.has_formula()) {
mutable_formula()->::TSCE::FormulaArchive::MergeFrom(from.formula());
}
if (from.has_format()) {
mutable_format()->::TSK::FormatStructArchive::MergeFrom(from.format());
}
if (from.has_region()) {
mutable_region()->::TST::CellRange::MergeFrom(from.region());
}
if (from.has_custom_format()) {
mutable_custom_format()->::TSK::CustomFormatArchive::MergeFrom(from.custom_format());
}
}
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (from.has_richtextpayload()) {
mutable_richtextpayload()->::TSP::Reference::MergeFrom(from.richtextpayload());
}
if (from.has_comment_storage()) {
mutable_comment_storage()->::TSP::Reference::MergeFrom(from.comment_storage());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableDataList_ListEntry::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableDataList_ListEntry::CopyFrom(const TableDataList_ListEntry& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableDataList_ListEntry::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_reference()) {
if (!this->reference().IsInitialized()) return false;
}
if (has_formula()) {
if (!this->formula().IsInitialized()) return false;
}
if (has_format()) {
if (!this->format().IsInitialized()) return false;
}
if (has_region()) {
if (!this->region().IsInitialized()) return false;
}
if (has_custom_format()) {
if (!this->custom_format().IsInitialized()) return false;
}
if (has_richtextpayload()) {
if (!this->richtextpayload().IsInitialized()) return false;
}
if (has_comment_storage()) {
if (!this->comment_storage().IsInitialized()) return false;
}
return true;
}
void TableDataList_ListEntry::Swap(TableDataList_ListEntry* other) {
if (other != this) {
std::swap(key_, other->key_);
std::swap(refcount_, other->refcount_);
std::swap(string_, other->string_);
std::swap(reference_, other->reference_);
std::swap(formula_, other->formula_);
std::swap(format_, other->format_);
std::swap(region_, other->region_);
std::swap(custom_format_, other->custom_format_);
std::swap(richtextpayload_, other->richtextpayload_);
std::swap(comment_storage_, other->comment_storage_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableDataList_ListEntry::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableDataList_ListEntry_descriptor_;
metadata.reflection = TableDataList_ListEntry_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int TableDataList::kListTypeFieldNumber;
const int TableDataList::kNextListIDFieldNumber;
const int TableDataList::kEntriesFieldNumber;
#endif // !_MSC_VER
TableDataList::TableDataList()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableDataList::InitAsDefaultInstance() {
}
TableDataList::TableDataList(const TableDataList& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableDataList::SharedCtor() {
_cached_size_ = 0;
listtype_ = 1;
nextlistid_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableDataList::~TableDataList() {
SharedDtor();
}
void TableDataList::SharedDtor() {
if (this != default_instance_) {
}
}
void TableDataList::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableDataList::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableDataList_descriptor_;
}
const TableDataList& TableDataList::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableDataList* TableDataList::default_instance_ = NULL;
TableDataList* TableDataList::New() const {
return new TableDataList;
}
void TableDataList::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
listtype_ = 1;
nextlistid_ = 0u;
}
entries_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableDataList::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.TableDataList.ListType listType = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::TST::TableDataList_ListType_IsValid(value)) {
set_listtype(static_cast< ::TST::TableDataList_ListType >(value));
} else {
mutable_unknown_fields()->AddVarint(1, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_nextListID;
break;
}
// required uint32 nextListID = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_nextListID:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &nextlistid_)));
set_has_nextlistid();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_entries;
break;
}
// repeated .TST.TableDataList.ListEntry entries = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_entries:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_entries()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_entries;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableDataList::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.TableDataList.ListType listType = 1;
if (has_listtype()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->listtype(), output);
}
// required uint32 nextListID = 2;
if (has_nextlistid()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->nextlistid(), output);
}
// repeated .TST.TableDataList.ListEntry entries = 3;
for (int i = 0; i < this->entries_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->entries(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableDataList::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.TableDataList.ListType listType = 1;
if (has_listtype()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->listtype(), target);
}
// required uint32 nextListID = 2;
if (has_nextlistid()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->nextlistid(), target);
}
// repeated .TST.TableDataList.ListEntry entries = 3;
for (int i = 0; i < this->entries_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->entries(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableDataList::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.TableDataList.ListType listType = 1;
if (has_listtype()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->listtype());
}
// required uint32 nextListID = 2;
if (has_nextlistid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->nextlistid());
}
}
// repeated .TST.TableDataList.ListEntry entries = 3;
total_size += 1 * this->entries_size();
for (int i = 0; i < this->entries_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->entries(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableDataList::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableDataList* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableDataList*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableDataList::MergeFrom(const TableDataList& from) {
GOOGLE_CHECK_NE(&from, this);
entries_.MergeFrom(from.entries_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_listtype()) {
set_listtype(from.listtype());
}
if (from.has_nextlistid()) {
set_nextlistid(from.nextlistid());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableDataList::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableDataList::CopyFrom(const TableDataList& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableDataList::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
for (int i = 0; i < entries_size(); i++) {
if (!this->entries(i).IsInitialized()) return false;
}
return true;
}
void TableDataList::Swap(TableDataList* other) {
if (other != this) {
std::swap(listtype_, other->listtype_);
std::swap(nextlistid_, other->nextlistid_);
entries_.Swap(&other->entries_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableDataList::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableDataList_descriptor_;
metadata.reflection = TableDataList_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TableRBTree_Node::kKeyFieldNumber;
const int TableRBTree_Node::kValueFieldNumber;
#endif // !_MSC_VER
TableRBTree_Node::TableRBTree_Node()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableRBTree_Node::InitAsDefaultInstance() {
}
TableRBTree_Node::TableRBTree_Node(const TableRBTree_Node& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableRBTree_Node::SharedCtor() {
_cached_size_ = 0;
key_ = 0u;
value_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableRBTree_Node::~TableRBTree_Node() {
SharedDtor();
}
void TableRBTree_Node::SharedDtor() {
if (this != default_instance_) {
}
}
void TableRBTree_Node::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableRBTree_Node::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableRBTree_Node_descriptor_;
}
const TableRBTree_Node& TableRBTree_Node::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableRBTree_Node* TableRBTree_Node::default_instance_ = NULL;
TableRBTree_Node* TableRBTree_Node::New() const {
return new TableRBTree_Node;
}
void TableRBTree_Node::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
key_ = 0u;
value_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableRBTree_Node::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 key = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &key_)));
set_has_key();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_value;
break;
}
// required uint32 value = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_value:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &value_)));
set_has_value();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableRBTree_Node::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 key = 1;
if (has_key()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->key(), output);
}
// required uint32 value = 2;
if (has_value()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->value(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableRBTree_Node::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 key = 1;
if (has_key()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->key(), target);
}
// required uint32 value = 2;
if (has_value()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->value(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableRBTree_Node::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 key = 1;
if (has_key()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->key());
}
// required uint32 value = 2;
if (has_value()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->value());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableRBTree_Node::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableRBTree_Node* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableRBTree_Node*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableRBTree_Node::MergeFrom(const TableRBTree_Node& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_key()) {
set_key(from.key());
}
if (from.has_value()) {
set_value(from.value());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableRBTree_Node::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableRBTree_Node::CopyFrom(const TableRBTree_Node& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableRBTree_Node::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
return true;
}
void TableRBTree_Node::Swap(TableRBTree_Node* other) {
if (other != this) {
std::swap(key_, other->key_);
std::swap(value_, other->value_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableRBTree_Node::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableRBTree_Node_descriptor_;
metadata.reflection = TableRBTree_Node_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int TableRBTree::kNodesFieldNumber;
#endif // !_MSC_VER
TableRBTree::TableRBTree()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableRBTree::InitAsDefaultInstance() {
}
TableRBTree::TableRBTree(const TableRBTree& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableRBTree::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableRBTree::~TableRBTree() {
SharedDtor();
}
void TableRBTree::SharedDtor() {
if (this != default_instance_) {
}
}
void TableRBTree::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableRBTree::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableRBTree_descriptor_;
}
const TableRBTree& TableRBTree::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableRBTree* TableRBTree::default_instance_ = NULL;
TableRBTree* TableRBTree::New() const {
return new TableRBTree;
}
void TableRBTree::Clear() {
nodes_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableRBTree::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .TST.TableRBTree.Node nodes = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_nodes:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_nodes()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_nodes;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableRBTree::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .TST.TableRBTree.Node nodes = 1;
for (int i = 0; i < this->nodes_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->nodes(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableRBTree::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .TST.TableRBTree.Node nodes = 1;
for (int i = 0; i < this->nodes_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->nodes(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableRBTree::ByteSize() const {
int total_size = 0;
// repeated .TST.TableRBTree.Node nodes = 1;
total_size += 1 * this->nodes_size();
for (int i = 0; i < this->nodes_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->nodes(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableRBTree::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableRBTree* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableRBTree*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableRBTree::MergeFrom(const TableRBTree& from) {
GOOGLE_CHECK_NE(&from, this);
nodes_.MergeFrom(from.nodes_);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableRBTree::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableRBTree::CopyFrom(const TableRBTree& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableRBTree::IsInitialized() const {
for (int i = 0; i < nodes_size(); i++) {
if (!this->nodes(i).IsInitialized()) return false;
}
return true;
}
void TableRBTree::Swap(TableRBTree* other) {
if (other != this) {
nodes_.Swap(&other->nodes_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableRBTree::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableRBTree_descriptor_;
metadata.reflection = TableRBTree_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int HeaderStorageBucket_Header::kIndexFieldNumber;
const int HeaderStorageBucket_Header::kSizeFieldNumber;
const int HeaderStorageBucket_Header::kHidingStateFieldNumber;
const int HeaderStorageBucket_Header::kNumberOfCellsFieldNumber;
const int HeaderStorageBucket_Header::kCellStyleFieldNumber;
const int HeaderStorageBucket_Header::kTextStyleFieldNumber;
#endif // !_MSC_VER
HeaderStorageBucket_Header::HeaderStorageBucket_Header()
: ::google::protobuf::Message() {
SharedCtor();
}
void HeaderStorageBucket_Header::InitAsDefaultInstance() {
cell_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
HeaderStorageBucket_Header::HeaderStorageBucket_Header(const HeaderStorageBucket_Header& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void HeaderStorageBucket_Header::SharedCtor() {
_cached_size_ = 0;
index_ = 0u;
size_ = 0;
hidingstate_ = 0u;
numberofcells_ = 0u;
cell_style_ = NULL;
text_style_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
HeaderStorageBucket_Header::~HeaderStorageBucket_Header() {
SharedDtor();
}
void HeaderStorageBucket_Header::SharedDtor() {
if (this != default_instance_) {
delete cell_style_;
delete text_style_;
}
}
void HeaderStorageBucket_Header::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* HeaderStorageBucket_Header::descriptor() {
protobuf_AssignDescriptorsOnce();
return HeaderStorageBucket_Header_descriptor_;
}
const HeaderStorageBucket_Header& HeaderStorageBucket_Header::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
HeaderStorageBucket_Header* HeaderStorageBucket_Header::default_instance_ = NULL;
HeaderStorageBucket_Header* HeaderStorageBucket_Header::New() const {
return new HeaderStorageBucket_Header;
}
void HeaderStorageBucket_Header::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
index_ = 0u;
size_ = 0;
hidingstate_ = 0u;
numberofcells_ = 0u;
if (has_cell_style()) {
if (cell_style_ != NULL) cell_style_->::TSP::Reference::Clear();
}
if (has_text_style()) {
if (text_style_ != NULL) text_style_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool HeaderStorageBucket_Header::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 index = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &index_)));
set_has_index();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(21)) goto parse_size;
break;
}
// required float size = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_size:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &size_)));
set_has_size();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_hidingState;
break;
}
// required uint32 hidingState = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_hidingState:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &hidingstate_)));
set_has_hidingstate();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_numberOfCells;
break;
}
// required uint32 numberOfCells = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_numberOfCells:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &numberofcells_)));
set_has_numberofcells();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_cell_style;
break;
}
// optional .TSP.Reference cell_style = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cell_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cell_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_text_style;
break;
}
// optional .TSP.Reference text_style = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void HeaderStorageBucket_Header::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 index = 1;
if (has_index()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->index(), output);
}
// required float size = 2;
if (has_size()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->size(), output);
}
// required uint32 hidingState = 3;
if (has_hidingstate()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->hidingstate(), output);
}
// required uint32 numberOfCells = 4;
if (has_numberofcells()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->numberofcells(), output);
}
// optional .TSP.Reference cell_style = 5;
if (has_cell_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->cell_style(), output);
}
// optional .TSP.Reference text_style = 6;
if (has_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, this->text_style(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* HeaderStorageBucket_Header::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 index = 1;
if (has_index()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->index(), target);
}
// required float size = 2;
if (has_size()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->size(), target);
}
// required uint32 hidingState = 3;
if (has_hidingstate()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->hidingstate(), target);
}
// required uint32 numberOfCells = 4;
if (has_numberofcells()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->numberofcells(), target);
}
// optional .TSP.Reference cell_style = 5;
if (has_cell_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->cell_style(), target);
}
// optional .TSP.Reference text_style = 6;
if (has_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
6, this->text_style(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int HeaderStorageBucket_Header::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 index = 1;
if (has_index()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->index());
}
// required float size = 2;
if (has_size()) {
total_size += 1 + 4;
}
// required uint32 hidingState = 3;
if (has_hidingstate()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->hidingstate());
}
// required uint32 numberOfCells = 4;
if (has_numberofcells()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->numberofcells());
}
// optional .TSP.Reference cell_style = 5;
if (has_cell_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell_style());
}
// optional .TSP.Reference text_style = 6;
if (has_text_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->text_style());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void HeaderStorageBucket_Header::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const HeaderStorageBucket_Header* source =
::google::protobuf::internal::dynamic_cast_if_available<const HeaderStorageBucket_Header*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void HeaderStorageBucket_Header::MergeFrom(const HeaderStorageBucket_Header& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_index()) {
set_index(from.index());
}
if (from.has_size()) {
set_size(from.size());
}
if (from.has_hidingstate()) {
set_hidingstate(from.hidingstate());
}
if (from.has_numberofcells()) {
set_numberofcells(from.numberofcells());
}
if (from.has_cell_style()) {
mutable_cell_style()->::TSP::Reference::MergeFrom(from.cell_style());
}
if (from.has_text_style()) {
mutable_text_style()->::TSP::Reference::MergeFrom(from.text_style());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void HeaderStorageBucket_Header::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void HeaderStorageBucket_Header::CopyFrom(const HeaderStorageBucket_Header& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HeaderStorageBucket_Header::IsInitialized() const {
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
if (has_cell_style()) {
if (!this->cell_style().IsInitialized()) return false;
}
if (has_text_style()) {
if (!this->text_style().IsInitialized()) return false;
}
return true;
}
void HeaderStorageBucket_Header::Swap(HeaderStorageBucket_Header* other) {
if (other != this) {
std::swap(index_, other->index_);
std::swap(size_, other->size_);
std::swap(hidingstate_, other->hidingstate_);
std::swap(numberofcells_, other->numberofcells_);
std::swap(cell_style_, other->cell_style_);
std::swap(text_style_, other->text_style_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata HeaderStorageBucket_Header::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = HeaderStorageBucket_Header_descriptor_;
metadata.reflection = HeaderStorageBucket_Header_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int HeaderStorageBucket::kBucketHashFunctionFieldNumber;
const int HeaderStorageBucket::kHeadersFieldNumber;
#endif // !_MSC_VER
HeaderStorageBucket::HeaderStorageBucket()
: ::google::protobuf::Message() {
SharedCtor();
}
void HeaderStorageBucket::InitAsDefaultInstance() {
}
HeaderStorageBucket::HeaderStorageBucket(const HeaderStorageBucket& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void HeaderStorageBucket::SharedCtor() {
_cached_size_ = 0;
buckethashfunction_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
HeaderStorageBucket::~HeaderStorageBucket() {
SharedDtor();
}
void HeaderStorageBucket::SharedDtor() {
if (this != default_instance_) {
}
}
void HeaderStorageBucket::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* HeaderStorageBucket::descriptor() {
protobuf_AssignDescriptorsOnce();
return HeaderStorageBucket_descriptor_;
}
const HeaderStorageBucket& HeaderStorageBucket::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
HeaderStorageBucket* HeaderStorageBucket::default_instance_ = NULL;
HeaderStorageBucket* HeaderStorageBucket::New() const {
return new HeaderStorageBucket;
}
void HeaderStorageBucket::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
buckethashfunction_ = 0u;
}
headers_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool HeaderStorageBucket::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 bucketHashFunction = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &buckethashfunction_)));
set_has_buckethashfunction();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_headers;
break;
}
// repeated .TST.HeaderStorageBucket.Header headers = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_headers:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_headers()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_headers;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void HeaderStorageBucket::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 bucketHashFunction = 1;
if (has_buckethashfunction()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->buckethashfunction(), output);
}
// repeated .TST.HeaderStorageBucket.Header headers = 2;
for (int i = 0; i < this->headers_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->headers(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* HeaderStorageBucket::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 bucketHashFunction = 1;
if (has_buckethashfunction()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->buckethashfunction(), target);
}
// repeated .TST.HeaderStorageBucket.Header headers = 2;
for (int i = 0; i < this->headers_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->headers(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int HeaderStorageBucket::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 bucketHashFunction = 1;
if (has_buckethashfunction()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->buckethashfunction());
}
}
// repeated .TST.HeaderStorageBucket.Header headers = 2;
total_size += 1 * this->headers_size();
for (int i = 0; i < this->headers_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->headers(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void HeaderStorageBucket::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const HeaderStorageBucket* source =
::google::protobuf::internal::dynamic_cast_if_available<const HeaderStorageBucket*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void HeaderStorageBucket::MergeFrom(const HeaderStorageBucket& from) {
GOOGLE_CHECK_NE(&from, this);
headers_.MergeFrom(from.headers_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_buckethashfunction()) {
set_buckethashfunction(from.buckethashfunction());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void HeaderStorageBucket::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void HeaderStorageBucket::CopyFrom(const HeaderStorageBucket& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HeaderStorageBucket::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
for (int i = 0; i < headers_size(); i++) {
if (!this->headers(i).IsInitialized()) return false;
}
return true;
}
void HeaderStorageBucket::Swap(HeaderStorageBucket* other) {
if (other != this) {
std::swap(buckethashfunction_, other->buckethashfunction_);
headers_.Swap(&other->headers_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata HeaderStorageBucket::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = HeaderStorageBucket_descriptor_;
metadata.reflection = HeaderStorageBucket_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int HeaderStorage::kBucketHashFunctionFieldNumber;
const int HeaderStorage::kBucketsFieldNumber;
#endif // !_MSC_VER
HeaderStorage::HeaderStorage()
: ::google::protobuf::Message() {
SharedCtor();
}
void HeaderStorage::InitAsDefaultInstance() {
}
HeaderStorage::HeaderStorage(const HeaderStorage& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void HeaderStorage::SharedCtor() {
_cached_size_ = 0;
buckethashfunction_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
HeaderStorage::~HeaderStorage() {
SharedDtor();
}
void HeaderStorage::SharedDtor() {
if (this != default_instance_) {
}
}
void HeaderStorage::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* HeaderStorage::descriptor() {
protobuf_AssignDescriptorsOnce();
return HeaderStorage_descriptor_;
}
const HeaderStorage& HeaderStorage::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
HeaderStorage* HeaderStorage::default_instance_ = NULL;
HeaderStorage* HeaderStorage::New() const {
return new HeaderStorage;
}
void HeaderStorage::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
buckethashfunction_ = 0u;
}
buckets_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool HeaderStorage::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 bucketHashFunction = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &buckethashfunction_)));
set_has_buckethashfunction();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_buckets;
break;
}
// repeated .TSP.Reference buckets = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_buckets:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_buckets()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_buckets;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void HeaderStorage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 bucketHashFunction = 1;
if (has_buckethashfunction()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->buckethashfunction(), output);
}
// repeated .TSP.Reference buckets = 2;
for (int i = 0; i < this->buckets_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->buckets(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* HeaderStorage::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 bucketHashFunction = 1;
if (has_buckethashfunction()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->buckethashfunction(), target);
}
// repeated .TSP.Reference buckets = 2;
for (int i = 0; i < this->buckets_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->buckets(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int HeaderStorage::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 bucketHashFunction = 1;
if (has_buckethashfunction()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->buckethashfunction());
}
}
// repeated .TSP.Reference buckets = 2;
total_size += 1 * this->buckets_size();
for (int i = 0; i < this->buckets_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->buckets(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void HeaderStorage::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const HeaderStorage* source =
::google::protobuf::internal::dynamic_cast_if_available<const HeaderStorage*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void HeaderStorage::MergeFrom(const HeaderStorage& from) {
GOOGLE_CHECK_NE(&from, this);
buckets_.MergeFrom(from.buckets_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_buckethashfunction()) {
set_buckethashfunction(from.buckethashfunction());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void HeaderStorage::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void HeaderStorage::CopyFrom(const HeaderStorage& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HeaderStorage::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
for (int i = 0; i < buckets_size(); i++) {
if (!this->buckets(i).IsInitialized()) return false;
}
return true;
}
void HeaderStorage::Swap(HeaderStorage* other) {
if (other != this) {
std::swap(buckethashfunction_, other->buckethashfunction_);
buckets_.Swap(&other->buckets_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata HeaderStorage::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = HeaderStorage_descriptor_;
metadata.reflection = HeaderStorage_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int DataStore::kRowHeadersFieldNumber;
const int DataStore::kColumnHeadersFieldNumber;
const int DataStore::kTilesFieldNumber;
const int DataStore::kStringTableFieldNumber;
const int DataStore::kStyleTableFieldNumber;
const int DataStore::kFormulaTableFieldNumber;
const int DataStore::kFormulaErrorTableFieldNumber;
const int DataStore::kFormatTableFieldNumber;
const int DataStore::kMultipleChoiceListFormatTableFieldNumber;
const int DataStore::kMergeRegionMapFieldNumber;
const int DataStore::kCustomFormatTableFieldNumber;
const int DataStore::kNextRowStripIDFieldNumber;
const int DataStore::kNextColumnStripIDFieldNumber;
const int DataStore::kRowTileTreeFieldNumber;
const int DataStore::kColumnTileTreeFieldNumber;
const int DataStore::kStorageVersionFieldNumber;
const int DataStore::kRichTextPayloadTableFieldNumber;
const int DataStore::kConditionalstyletableFieldNumber;
const int DataStore::kCommentStorageTableFieldNumber;
#endif // !_MSC_VER
DataStore::DataStore()
: ::google::protobuf::Message() {
SharedCtor();
}
void DataStore::InitAsDefaultInstance() {
rowheaders_ = const_cast< ::TST::HeaderStorage*>(&::TST::HeaderStorage::default_instance());
columnheaders_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
tiles_ = const_cast< ::TST::TileStorage*>(&::TST::TileStorage::default_instance());
stringtable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
styletable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
formulatable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
formulaerrortable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
formattable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
multiplechoicelistformattable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
merge_region_map_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
customformattable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
rowtiletree_ = const_cast< ::TST::TableRBTree*>(&::TST::TableRBTree::default_instance());
columntiletree_ = const_cast< ::TST::TableRBTree*>(&::TST::TableRBTree::default_instance());
richtextpayloadtable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
conditionalstyletable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
commentstoragetable_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
DataStore::DataStore(const DataStore& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void DataStore::SharedCtor() {
_cached_size_ = 0;
rowheaders_ = NULL;
columnheaders_ = NULL;
tiles_ = NULL;
stringtable_ = NULL;
styletable_ = NULL;
formulatable_ = NULL;
formulaerrortable_ = NULL;
formattable_ = NULL;
multiplechoicelistformattable_ = NULL;
merge_region_map_ = NULL;
customformattable_ = NULL;
nextrowstripid_ = 0u;
nextcolumnstripid_ = 0u;
rowtiletree_ = NULL;
columntiletree_ = NULL;
storage_version_ = 0u;
richtextpayloadtable_ = NULL;
conditionalstyletable_ = NULL;
commentstoragetable_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
DataStore::~DataStore() {
SharedDtor();
}
void DataStore::SharedDtor() {
if (this != default_instance_) {
delete rowheaders_;
delete columnheaders_;
delete tiles_;
delete stringtable_;
delete styletable_;
delete formulatable_;
delete formulaerrortable_;
delete formattable_;
delete multiplechoicelistformattable_;
delete merge_region_map_;
delete customformattable_;
delete rowtiletree_;
delete columntiletree_;
delete richtextpayloadtable_;
delete conditionalstyletable_;
delete commentstoragetable_;
}
}
void DataStore::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DataStore::descriptor() {
protobuf_AssignDescriptorsOnce();
return DataStore_descriptor_;
}
const DataStore& DataStore::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
DataStore* DataStore::default_instance_ = NULL;
DataStore* DataStore::New() const {
return new DataStore;
}
void DataStore::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_rowheaders()) {
if (rowheaders_ != NULL) rowheaders_->::TST::HeaderStorage::Clear();
}
if (has_columnheaders()) {
if (columnheaders_ != NULL) columnheaders_->::TSP::Reference::Clear();
}
if (has_tiles()) {
if (tiles_ != NULL) tiles_->::TST::TileStorage::Clear();
}
if (has_stringtable()) {
if (stringtable_ != NULL) stringtable_->::TSP::Reference::Clear();
}
if (has_styletable()) {
if (styletable_ != NULL) styletable_->::TSP::Reference::Clear();
}
if (has_formulatable()) {
if (formulatable_ != NULL) formulatable_->::TSP::Reference::Clear();
}
if (has_formulaerrortable()) {
if (formulaerrortable_ != NULL) formulaerrortable_->::TSP::Reference::Clear();
}
if (has_formattable()) {
if (formattable_ != NULL) formattable_->::TSP::Reference::Clear();
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (has_multiplechoicelistformattable()) {
if (multiplechoicelistformattable_ != NULL) multiplechoicelistformattable_->::TSP::Reference::Clear();
}
if (has_merge_region_map()) {
if (merge_region_map_ != NULL) merge_region_map_->::TSP::Reference::Clear();
}
if (has_customformattable()) {
if (customformattable_ != NULL) customformattable_->::TSP::Reference::Clear();
}
nextrowstripid_ = 0u;
nextcolumnstripid_ = 0u;
if (has_rowtiletree()) {
if (rowtiletree_ != NULL) rowtiletree_->::TST::TableRBTree::Clear();
}
if (has_columntiletree()) {
if (columntiletree_ != NULL) columntiletree_->::TST::TableRBTree::Clear();
}
storage_version_ = 0u;
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
if (has_richtextpayloadtable()) {
if (richtextpayloadtable_ != NULL) richtextpayloadtable_->::TSP::Reference::Clear();
}
if (has_conditionalstyletable()) {
if (conditionalstyletable_ != NULL) conditionalstyletable_->::TSP::Reference::Clear();
}
if (has_commentstoragetable()) {
if (commentstoragetable_ != NULL) commentstoragetable_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool DataStore::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.HeaderStorage rowHeaders = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_rowheaders()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_columnHeaders;
break;
}
// required .TSP.Reference columnHeaders = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_columnHeaders:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_columnheaders()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_tiles;
break;
}
// required .TST.TileStorage tiles = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_tiles:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_tiles()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_stringTable;
break;
}
// required .TSP.Reference stringTable = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_stringTable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_stringtable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_styleTable;
break;
}
// required .TSP.Reference styleTable = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_styleTable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_styletable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_formulaTable;
break;
}
// required .TSP.Reference formulaTable = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_formulaTable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_formulatable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(56)) goto parse_nextRowStripID;
break;
}
// required uint32 nextRowStripID = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_nextRowStripID:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &nextrowstripid_)));
set_has_nextrowstripid();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(64)) goto parse_nextColumnStripID;
break;
}
// required uint32 nextColumnStripID = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_nextColumnStripID:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &nextcolumnstripid_)));
set_has_nextcolumnstripid();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(74)) goto parse_rowTileTree;
break;
}
// required .TST.TableRBTree rowTileTree = 9;
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_rowTileTree:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_rowtiletree()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(82)) goto parse_columnTileTree;
break;
}
// required .TST.TableRBTree columnTileTree = 10;
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_columnTileTree:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_columntiletree()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(90)) goto parse_formatTable;
break;
}
// required .TSP.Reference formatTable = 11;
case 11: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_formatTable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_formattable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(98)) goto parse_formulaErrorTable;
break;
}
// optional .TSP.Reference formulaErrorTable = 12;
case 12: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_formulaErrorTable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_formulaerrortable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(106)) goto parse_merge_region_map;
break;
}
// optional .TSP.Reference merge_region_map = 13;
case 13: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_merge_region_map:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_merge_region_map()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(112)) goto parse_storage_version;
break;
}
// optional uint32 storage_version = 14;
case 14: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_storage_version:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &storage_version_)));
set_has_storage_version();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(122)) goto parse_customFormatTable;
break;
}
// optional .TSP.Reference customFormatTable = 15;
case 15: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_customFormatTable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_customformattable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(130)) goto parse_multipleChoiceListFormatTable;
break;
}
// optional .TSP.Reference multipleChoiceListFormatTable = 16;
case 16: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_multipleChoiceListFormatTable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_multiplechoicelistformattable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(138)) goto parse_richTextPayloadTable;
break;
}
// optional .TSP.Reference richTextPayloadTable = 17;
case 17: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_richTextPayloadTable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_richtextpayloadtable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(146)) goto parse_conditionalstyletable;
break;
}
// optional .TSP.Reference conditionalstyletable = 18;
case 18: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_conditionalstyletable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_conditionalstyletable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(154)) goto parse_commentStorageTable;
break;
}
// optional .TSP.Reference commentStorageTable = 19;
case 19: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_commentStorageTable:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_commentstoragetable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void DataStore::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.HeaderStorage rowHeaders = 1;
if (has_rowheaders()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->rowheaders(), output);
}
// required .TSP.Reference columnHeaders = 2;
if (has_columnheaders()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->columnheaders(), output);
}
// required .TST.TileStorage tiles = 3;
if (has_tiles()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->tiles(), output);
}
// required .TSP.Reference stringTable = 4;
if (has_stringtable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->stringtable(), output);
}
// required .TSP.Reference styleTable = 5;
if (has_styletable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->styletable(), output);
}
// required .TSP.Reference formulaTable = 6;
if (has_formulatable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, this->formulatable(), output);
}
// required uint32 nextRowStripID = 7;
if (has_nextrowstripid()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->nextrowstripid(), output);
}
// required uint32 nextColumnStripID = 8;
if (has_nextcolumnstripid()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->nextcolumnstripid(), output);
}
// required .TST.TableRBTree rowTileTree = 9;
if (has_rowtiletree()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9, this->rowtiletree(), output);
}
// required .TST.TableRBTree columnTileTree = 10;
if (has_columntiletree()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, this->columntiletree(), output);
}
// required .TSP.Reference formatTable = 11;
if (has_formattable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, this->formattable(), output);
}
// optional .TSP.Reference formulaErrorTable = 12;
if (has_formulaerrortable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12, this->formulaerrortable(), output);
}
// optional .TSP.Reference merge_region_map = 13;
if (has_merge_region_map()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13, this->merge_region_map(), output);
}
// optional uint32 storage_version = 14;
if (has_storage_version()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->storage_version(), output);
}
// optional .TSP.Reference customFormatTable = 15;
if (has_customformattable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15, this->customformattable(), output);
}
// optional .TSP.Reference multipleChoiceListFormatTable = 16;
if (has_multiplechoicelistformattable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
16, this->multiplechoicelistformattable(), output);
}
// optional .TSP.Reference richTextPayloadTable = 17;
if (has_richtextpayloadtable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
17, this->richtextpayloadtable(), output);
}
// optional .TSP.Reference conditionalstyletable = 18;
if (has_conditionalstyletable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
18, this->conditionalstyletable(), output);
}
// optional .TSP.Reference commentStorageTable = 19;
if (has_commentstoragetable()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
19, this->commentstoragetable(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* DataStore::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.HeaderStorage rowHeaders = 1;
if (has_rowheaders()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->rowheaders(), target);
}
// required .TSP.Reference columnHeaders = 2;
if (has_columnheaders()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->columnheaders(), target);
}
// required .TST.TileStorage tiles = 3;
if (has_tiles()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->tiles(), target);
}
// required .TSP.Reference stringTable = 4;
if (has_stringtable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->stringtable(), target);
}
// required .TSP.Reference styleTable = 5;
if (has_styletable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->styletable(), target);
}
// required .TSP.Reference formulaTable = 6;
if (has_formulatable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
6, this->formulatable(), target);
}
// required uint32 nextRowStripID = 7;
if (has_nextrowstripid()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->nextrowstripid(), target);
}
// required uint32 nextColumnStripID = 8;
if (has_nextcolumnstripid()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->nextcolumnstripid(), target);
}
// required .TST.TableRBTree rowTileTree = 9;
if (has_rowtiletree()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
9, this->rowtiletree(), target);
}
// required .TST.TableRBTree columnTileTree = 10;
if (has_columntiletree()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
10, this->columntiletree(), target);
}
// required .TSP.Reference formatTable = 11;
if (has_formattable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
11, this->formattable(), target);
}
// optional .TSP.Reference formulaErrorTable = 12;
if (has_formulaerrortable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
12, this->formulaerrortable(), target);
}
// optional .TSP.Reference merge_region_map = 13;
if (has_merge_region_map()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
13, this->merge_region_map(), target);
}
// optional uint32 storage_version = 14;
if (has_storage_version()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->storage_version(), target);
}
// optional .TSP.Reference customFormatTable = 15;
if (has_customformattable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
15, this->customformattable(), target);
}
// optional .TSP.Reference multipleChoiceListFormatTable = 16;
if (has_multiplechoicelistformattable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
16, this->multiplechoicelistformattable(), target);
}
// optional .TSP.Reference richTextPayloadTable = 17;
if (has_richtextpayloadtable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
17, this->richtextpayloadtable(), target);
}
// optional .TSP.Reference conditionalstyletable = 18;
if (has_conditionalstyletable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
18, this->conditionalstyletable(), target);
}
// optional .TSP.Reference commentStorageTable = 19;
if (has_commentstoragetable()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
19, this->commentstoragetable(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int DataStore::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.HeaderStorage rowHeaders = 1;
if (has_rowheaders()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->rowheaders());
}
// required .TSP.Reference columnHeaders = 2;
if (has_columnheaders()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->columnheaders());
}
// required .TST.TileStorage tiles = 3;
if (has_tiles()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->tiles());
}
// required .TSP.Reference stringTable = 4;
if (has_stringtable()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->stringtable());
}
// required .TSP.Reference styleTable = 5;
if (has_styletable()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->styletable());
}
// required .TSP.Reference formulaTable = 6;
if (has_formulatable()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->formulatable());
}
// optional .TSP.Reference formulaErrorTable = 12;
if (has_formulaerrortable()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->formulaerrortable());
}
// required .TSP.Reference formatTable = 11;
if (has_formattable()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->formattable());
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
// optional .TSP.Reference multipleChoiceListFormatTable = 16;
if (has_multiplechoicelistformattable()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->multiplechoicelistformattable());
}
// optional .TSP.Reference merge_region_map = 13;
if (has_merge_region_map()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->merge_region_map());
}
// optional .TSP.Reference customFormatTable = 15;
if (has_customformattable()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->customformattable());
}
// required uint32 nextRowStripID = 7;
if (has_nextrowstripid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->nextrowstripid());
}
// required uint32 nextColumnStripID = 8;
if (has_nextcolumnstripid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->nextcolumnstripid());
}
// required .TST.TableRBTree rowTileTree = 9;
if (has_rowtiletree()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->rowtiletree());
}
// required .TST.TableRBTree columnTileTree = 10;
if (has_columntiletree()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->columntiletree());
}
// optional uint32 storage_version = 14;
if (has_storage_version()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->storage_version());
}
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
// optional .TSP.Reference richTextPayloadTable = 17;
if (has_richtextpayloadtable()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->richtextpayloadtable());
}
// optional .TSP.Reference conditionalstyletable = 18;
if (has_conditionalstyletable()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->conditionalstyletable());
}
// optional .TSP.Reference commentStorageTable = 19;
if (has_commentstoragetable()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->commentstoragetable());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DataStore::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const DataStore* source =
::google::protobuf::internal::dynamic_cast_if_available<const DataStore*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void DataStore::MergeFrom(const DataStore& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_rowheaders()) {
mutable_rowheaders()->::TST::HeaderStorage::MergeFrom(from.rowheaders());
}
if (from.has_columnheaders()) {
mutable_columnheaders()->::TSP::Reference::MergeFrom(from.columnheaders());
}
if (from.has_tiles()) {
mutable_tiles()->::TST::TileStorage::MergeFrom(from.tiles());
}
if (from.has_stringtable()) {
mutable_stringtable()->::TSP::Reference::MergeFrom(from.stringtable());
}
if (from.has_styletable()) {
mutable_styletable()->::TSP::Reference::MergeFrom(from.styletable());
}
if (from.has_formulatable()) {
mutable_formulatable()->::TSP::Reference::MergeFrom(from.formulatable());
}
if (from.has_formulaerrortable()) {
mutable_formulaerrortable()->::TSP::Reference::MergeFrom(from.formulaerrortable());
}
if (from.has_formattable()) {
mutable_formattable()->::TSP::Reference::MergeFrom(from.formattable());
}
}
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (from.has_multiplechoicelistformattable()) {
mutable_multiplechoicelistformattable()->::TSP::Reference::MergeFrom(from.multiplechoicelistformattable());
}
if (from.has_merge_region_map()) {
mutable_merge_region_map()->::TSP::Reference::MergeFrom(from.merge_region_map());
}
if (from.has_customformattable()) {
mutable_customformattable()->::TSP::Reference::MergeFrom(from.customformattable());
}
if (from.has_nextrowstripid()) {
set_nextrowstripid(from.nextrowstripid());
}
if (from.has_nextcolumnstripid()) {
set_nextcolumnstripid(from.nextcolumnstripid());
}
if (from.has_rowtiletree()) {
mutable_rowtiletree()->::TST::TableRBTree::MergeFrom(from.rowtiletree());
}
if (from.has_columntiletree()) {
mutable_columntiletree()->::TST::TableRBTree::MergeFrom(from.columntiletree());
}
if (from.has_storage_version()) {
set_storage_version(from.storage_version());
}
}
if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
if (from.has_richtextpayloadtable()) {
mutable_richtextpayloadtable()->::TSP::Reference::MergeFrom(from.richtextpayloadtable());
}
if (from.has_conditionalstyletable()) {
mutable_conditionalstyletable()->::TSP::Reference::MergeFrom(from.conditionalstyletable());
}
if (from.has_commentstoragetable()) {
mutable_commentstoragetable()->::TSP::Reference::MergeFrom(from.commentstoragetable());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DataStore::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DataStore::CopyFrom(const DataStore& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DataStore::IsInitialized() const {
if ((_has_bits_[0] & 0x000078bf) != 0x000078bf) return false;
if (has_rowheaders()) {
if (!this->rowheaders().IsInitialized()) return false;
}
if (has_columnheaders()) {
if (!this->columnheaders().IsInitialized()) return false;
}
if (has_tiles()) {
if (!this->tiles().IsInitialized()) return false;
}
if (has_stringtable()) {
if (!this->stringtable().IsInitialized()) return false;
}
if (has_styletable()) {
if (!this->styletable().IsInitialized()) return false;
}
if (has_formulatable()) {
if (!this->formulatable().IsInitialized()) return false;
}
if (has_formulaerrortable()) {
if (!this->formulaerrortable().IsInitialized()) return false;
}
if (has_formattable()) {
if (!this->formattable().IsInitialized()) return false;
}
if (has_multiplechoicelistformattable()) {
if (!this->multiplechoicelistformattable().IsInitialized()) return false;
}
if (has_merge_region_map()) {
if (!this->merge_region_map().IsInitialized()) return false;
}
if (has_customformattable()) {
if (!this->customformattable().IsInitialized()) return false;
}
if (has_rowtiletree()) {
if (!this->rowtiletree().IsInitialized()) return false;
}
if (has_columntiletree()) {
if (!this->columntiletree().IsInitialized()) return false;
}
if (has_richtextpayloadtable()) {
if (!this->richtextpayloadtable().IsInitialized()) return false;
}
if (has_conditionalstyletable()) {
if (!this->conditionalstyletable().IsInitialized()) return false;
}
if (has_commentstoragetable()) {
if (!this->commentstoragetable().IsInitialized()) return false;
}
return true;
}
void DataStore::Swap(DataStore* other) {
if (other != this) {
std::swap(rowheaders_, other->rowheaders_);
std::swap(columnheaders_, other->columnheaders_);
std::swap(tiles_, other->tiles_);
std::swap(stringtable_, other->stringtable_);
std::swap(styletable_, other->styletable_);
std::swap(formulatable_, other->formulatable_);
std::swap(formulaerrortable_, other->formulaerrortable_);
std::swap(formattable_, other->formattable_);
std::swap(multiplechoicelistformattable_, other->multiplechoicelistformattable_);
std::swap(merge_region_map_, other->merge_region_map_);
std::swap(customformattable_, other->customformattable_);
std::swap(nextrowstripid_, other->nextrowstripid_);
std::swap(nextcolumnstripid_, other->nextcolumnstripid_);
std::swap(rowtiletree_, other->rowtiletree_);
std::swap(columntiletree_, other->columntiletree_);
std::swap(storage_version_, other->storage_version_);
std::swap(richtextpayloadtable_, other->richtextpayloadtable_);
std::swap(conditionalstyletable_, other->conditionalstyletable_);
std::swap(commentstoragetable_, other->commentstoragetable_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata DataStore::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = DataStore_descriptor_;
metadata.reflection = DataStore_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TableInfoArchive::kSuperFieldNumber;
const int TableInfoArchive::kTableModelFieldNumber;
const int TableInfoArchive::kEditingStateFieldNumber;
#endif // !_MSC_VER
TableInfoArchive::TableInfoArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableInfoArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TSD::DrawableArchive*>(&::TSD::DrawableArchive::default_instance());
tablemodel_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
editingstate_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
TableInfoArchive::TableInfoArchive(const TableInfoArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableInfoArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
tablemodel_ = NULL;
editingstate_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableInfoArchive::~TableInfoArchive() {
SharedDtor();
}
void TableInfoArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
delete tablemodel_;
delete editingstate_;
}
}
void TableInfoArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableInfoArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableInfoArchive_descriptor_;
}
const TableInfoArchive& TableInfoArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableInfoArchive* TableInfoArchive::default_instance_ = NULL;
TableInfoArchive* TableInfoArchive::New() const {
return new TableInfoArchive;
}
void TableInfoArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TSD::DrawableArchive::Clear();
}
if (has_tablemodel()) {
if (tablemodel_ != NULL) tablemodel_->::TSP::Reference::Clear();
}
if (has_editingstate()) {
if (editingstate_ != NULL) editingstate_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableInfoArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TSD.DrawableArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_tableModel;
break;
}
// required .TSP.Reference tableModel = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_tableModel:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_tablemodel()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_editingState;
break;
}
// optional .TSP.Reference editingState = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_editingState:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_editingstate()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableInfoArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TSD.DrawableArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required .TSP.Reference tableModel = 2;
if (has_tablemodel()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->tablemodel(), output);
}
// optional .TSP.Reference editingState = 3;
if (has_editingstate()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->editingstate(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableInfoArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TSD.DrawableArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required .TSP.Reference tableModel = 2;
if (has_tablemodel()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->tablemodel(), target);
}
// optional .TSP.Reference editingState = 3;
if (has_editingstate()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->editingstate(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableInfoArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TSD.DrawableArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required .TSP.Reference tableModel = 2;
if (has_tablemodel()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->tablemodel());
}
// optional .TSP.Reference editingState = 3;
if (has_editingstate()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->editingstate());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableInfoArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableInfoArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableInfoArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableInfoArchive::MergeFrom(const TableInfoArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TSD::DrawableArchive::MergeFrom(from.super());
}
if (from.has_tablemodel()) {
mutable_tablemodel()->::TSP::Reference::MergeFrom(from.tablemodel());
}
if (from.has_editingstate()) {
mutable_editingstate()->::TSP::Reference::MergeFrom(from.editingstate());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableInfoArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableInfoArchive::CopyFrom(const TableInfoArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableInfoArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
if (has_tablemodel()) {
if (!this->tablemodel().IsInitialized()) return false;
}
if (has_editingstate()) {
if (!this->editingstate().IsInitialized()) return false;
}
return true;
}
void TableInfoArchive::Swap(TableInfoArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(tablemodel_, other->tablemodel_);
std::swap(editingstate_, other->editingstate_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableInfoArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableInfoArchive_descriptor_;
metadata.reflection = TableInfoArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int EditingStateArchive::kEditingStorageFieldNumber;
const int EditingStateArchive::kEditingCellFieldNumber;
const int EditingStateArchive::kSelectionFieldNumber;
const int EditingStateArchive::kLasteditingcellidFieldNumber;
const int EditingStateArchive::kEditingcellidFieldNumber;
const int EditingStateArchive::kDeprecatedSetupTextUndoRedoTransactionFieldNumber;
const int EditingStateArchive::kCellWasEditedInCurrentSessionFieldNumber;
#endif // !_MSC_VER
EditingStateArchive::EditingStateArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void EditingStateArchive::InitAsDefaultInstance() {
editingstorage_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
editingcell_ = const_cast< ::TST::Cell*>(&::TST::Cell::default_instance());
selection_ = const_cast< ::TST::SelectionArchive*>(&::TST::SelectionArchive::default_instance());
lasteditingcellid_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
editingcellid_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
deprecated_setup_textundoredotransaction_ = const_cast< ::TSWP::UndoTransaction*>(&::TSWP::UndoTransaction::default_instance());
}
EditingStateArchive::EditingStateArchive(const EditingStateArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void EditingStateArchive::SharedCtor() {
_cached_size_ = 0;
editingstorage_ = NULL;
editingcell_ = NULL;
selection_ = NULL;
lasteditingcellid_ = NULL;
editingcellid_ = NULL;
deprecated_setup_textundoredotransaction_ = NULL;
cell_was_edited_in_current_session_ = false;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
EditingStateArchive::~EditingStateArchive() {
SharedDtor();
}
void EditingStateArchive::SharedDtor() {
if (this != default_instance_) {
delete editingstorage_;
delete editingcell_;
delete selection_;
delete lasteditingcellid_;
delete editingcellid_;
delete deprecated_setup_textundoredotransaction_;
}
}
void EditingStateArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* EditingStateArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return EditingStateArchive_descriptor_;
}
const EditingStateArchive& EditingStateArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
EditingStateArchive* EditingStateArchive::default_instance_ = NULL;
EditingStateArchive* EditingStateArchive::New() const {
return new EditingStateArchive;
}
void EditingStateArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_editingstorage()) {
if (editingstorage_ != NULL) editingstorage_->::TSP::Reference::Clear();
}
if (has_editingcell()) {
if (editingcell_ != NULL) editingcell_->::TST::Cell::Clear();
}
if (has_selection()) {
if (selection_ != NULL) selection_->::TST::SelectionArchive::Clear();
}
if (has_lasteditingcellid()) {
if (lasteditingcellid_ != NULL) lasteditingcellid_->::TST::CellID::Clear();
}
if (has_editingcellid()) {
if (editingcellid_ != NULL) editingcellid_->::TST::CellID::Clear();
}
if (has_deprecated_setup_textundoredotransaction()) {
if (deprecated_setup_textundoredotransaction_ != NULL) deprecated_setup_textundoredotransaction_->::TSWP::UndoTransaction::Clear();
}
cell_was_edited_in_current_session_ = false;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool EditingStateArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .TSP.Reference editingStorage = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_editingstorage()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_editingCell;
break;
}
// required .TST.Cell editingCell = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_editingCell:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_editingcell()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_selection;
break;
}
// optional .TST.SelectionArchive selection = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_selection:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_selection()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_lasteditingcellid;
break;
}
// optional .TST.CellID lasteditingcellid = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_lasteditingcellid:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_lasteditingcellid()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_editingcellid;
break;
}
// optional .TST.CellID editingcellid = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_editingcellid:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_editingcellid()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_deprecated_setup_textUndoRedoTransaction;
break;
}
// optional .TSWP.UndoTransaction deprecated_setup_textUndoRedoTransaction = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_deprecated_setup_textUndoRedoTransaction:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_deprecated_setup_textundoredotransaction()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(56)) goto parse_cell_was_edited_in_current_session;
break;
}
// optional bool cell_was_edited_in_current_session = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_cell_was_edited_in_current_session:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &cell_was_edited_in_current_session_)));
set_has_cell_was_edited_in_current_session();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void EditingStateArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .TSP.Reference editingStorage = 1;
if (has_editingstorage()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->editingstorage(), output);
}
// required .TST.Cell editingCell = 2;
if (has_editingcell()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->editingcell(), output);
}
// optional .TST.SelectionArchive selection = 3;
if (has_selection()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->selection(), output);
}
// optional .TST.CellID lasteditingcellid = 4;
if (has_lasteditingcellid()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->lasteditingcellid(), output);
}
// optional .TST.CellID editingcellid = 5;
if (has_editingcellid()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->editingcellid(), output);
}
// optional .TSWP.UndoTransaction deprecated_setup_textUndoRedoTransaction = 6;
if (has_deprecated_setup_textundoredotransaction()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, this->deprecated_setup_textundoredotransaction(), output);
}
// optional bool cell_was_edited_in_current_session = 7;
if (has_cell_was_edited_in_current_session()) {
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->cell_was_edited_in_current_session(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* EditingStateArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .TSP.Reference editingStorage = 1;
if (has_editingstorage()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->editingstorage(), target);
}
// required .TST.Cell editingCell = 2;
if (has_editingcell()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->editingcell(), target);
}
// optional .TST.SelectionArchive selection = 3;
if (has_selection()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->selection(), target);
}
// optional .TST.CellID lasteditingcellid = 4;
if (has_lasteditingcellid()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->lasteditingcellid(), target);
}
// optional .TST.CellID editingcellid = 5;
if (has_editingcellid()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->editingcellid(), target);
}
// optional .TSWP.UndoTransaction deprecated_setup_textUndoRedoTransaction = 6;
if (has_deprecated_setup_textundoredotransaction()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
6, this->deprecated_setup_textundoredotransaction(), target);
}
// optional bool cell_was_edited_in_current_session = 7;
if (has_cell_was_edited_in_current_session()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->cell_was_edited_in_current_session(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int EditingStateArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .TSP.Reference editingStorage = 1;
if (has_editingstorage()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->editingstorage());
}
// required .TST.Cell editingCell = 2;
if (has_editingcell()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->editingcell());
}
// optional .TST.SelectionArchive selection = 3;
if (has_selection()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->selection());
}
// optional .TST.CellID lasteditingcellid = 4;
if (has_lasteditingcellid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->lasteditingcellid());
}
// optional .TST.CellID editingcellid = 5;
if (has_editingcellid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->editingcellid());
}
// optional .TSWP.UndoTransaction deprecated_setup_textUndoRedoTransaction = 6;
if (has_deprecated_setup_textundoredotransaction()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->deprecated_setup_textundoredotransaction());
}
// optional bool cell_was_edited_in_current_session = 7;
if (has_cell_was_edited_in_current_session()) {
total_size += 1 + 1;
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void EditingStateArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const EditingStateArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const EditingStateArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void EditingStateArchive::MergeFrom(const EditingStateArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_editingstorage()) {
mutable_editingstorage()->::TSP::Reference::MergeFrom(from.editingstorage());
}
if (from.has_editingcell()) {
mutable_editingcell()->::TST::Cell::MergeFrom(from.editingcell());
}
if (from.has_selection()) {
mutable_selection()->::TST::SelectionArchive::MergeFrom(from.selection());
}
if (from.has_lasteditingcellid()) {
mutable_lasteditingcellid()->::TST::CellID::MergeFrom(from.lasteditingcellid());
}
if (from.has_editingcellid()) {
mutable_editingcellid()->::TST::CellID::MergeFrom(from.editingcellid());
}
if (from.has_deprecated_setup_textundoredotransaction()) {
mutable_deprecated_setup_textundoredotransaction()->::TSWP::UndoTransaction::MergeFrom(from.deprecated_setup_textundoredotransaction());
}
if (from.has_cell_was_edited_in_current_session()) {
set_cell_was_edited_in_current_session(from.cell_was_edited_in_current_session());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void EditingStateArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void EditingStateArchive::CopyFrom(const EditingStateArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool EditingStateArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
if (has_editingstorage()) {
if (!this->editingstorage().IsInitialized()) return false;
}
if (has_editingcell()) {
if (!this->editingcell().IsInitialized()) return false;
}
if (has_selection()) {
if (!this->selection().IsInitialized()) return false;
}
if (has_lasteditingcellid()) {
if (!this->lasteditingcellid().IsInitialized()) return false;
}
if (has_editingcellid()) {
if (!this->editingcellid().IsInitialized()) return false;
}
if (has_deprecated_setup_textundoredotransaction()) {
if (!this->deprecated_setup_textundoredotransaction().IsInitialized()) return false;
}
return true;
}
void EditingStateArchive::Swap(EditingStateArchive* other) {
if (other != this) {
std::swap(editingstorage_, other->editingstorage_);
std::swap(editingcell_, other->editingcell_);
std::swap(selection_, other->selection_);
std::swap(lasteditingcellid_, other->lasteditingcellid_);
std::swap(editingcellid_, other->editingcellid_);
std::swap(deprecated_setup_textundoredotransaction_, other->deprecated_setup_textundoredotransaction_);
std::swap(cell_was_edited_in_current_session_, other->cell_was_edited_in_current_session_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata EditingStateArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = EditingStateArchive_descriptor_;
metadata.reflection = EditingStateArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int WPTableInfoArchive::kSuperFieldNumber;
const int WPTableInfoArchive::kStorageFieldNumber;
#endif // !_MSC_VER
WPTableInfoArchive::WPTableInfoArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void WPTableInfoArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::TableInfoArchive*>(&::TST::TableInfoArchive::default_instance());
storage_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
WPTableInfoArchive::WPTableInfoArchive(const WPTableInfoArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void WPTableInfoArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
storage_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
WPTableInfoArchive::~WPTableInfoArchive() {
SharedDtor();
}
void WPTableInfoArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
delete storage_;
}
}
void WPTableInfoArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* WPTableInfoArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return WPTableInfoArchive_descriptor_;
}
const WPTableInfoArchive& WPTableInfoArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
WPTableInfoArchive* WPTableInfoArchive::default_instance_ = NULL;
WPTableInfoArchive* WPTableInfoArchive::New() const {
return new WPTableInfoArchive;
}
void WPTableInfoArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::TableInfoArchive::Clear();
}
if (has_storage()) {
if (storage_ != NULL) storage_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool WPTableInfoArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.TableInfoArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_storage;
break;
}
// optional .TSP.Reference storage = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_storage:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_storage()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void WPTableInfoArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.TableInfoArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// optional .TSP.Reference storage = 2;
if (has_storage()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->storage(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* WPTableInfoArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.TableInfoArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// optional .TSP.Reference storage = 2;
if (has_storage()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->storage(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int WPTableInfoArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.TableInfoArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// optional .TSP.Reference storage = 2;
if (has_storage()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->storage());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void WPTableInfoArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const WPTableInfoArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const WPTableInfoArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void WPTableInfoArchive::MergeFrom(const WPTableInfoArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::TableInfoArchive::MergeFrom(from.super());
}
if (from.has_storage()) {
mutable_storage()->::TSP::Reference::MergeFrom(from.storage());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void WPTableInfoArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void WPTableInfoArchive::CopyFrom(const WPTableInfoArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool WPTableInfoArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
if (has_storage()) {
if (!this->storage().IsInitialized()) return false;
}
return true;
}
void WPTableInfoArchive::Swap(WPTableInfoArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(storage_, other->storage_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata WPTableInfoArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = WPTableInfoArchive_descriptor_;
metadata.reflection = WPTableInfoArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TableStyleNetworkArchive::kTableStyleFieldNumber;
const int TableStyleNetworkArchive::kBodyTextStyleFieldNumber;
const int TableStyleNetworkArchive::kHeaderRowTextStyleFieldNumber;
const int TableStyleNetworkArchive::kHeaderColumnTextStyleFieldNumber;
const int TableStyleNetworkArchive::kFooterRowTextStyleFieldNumber;
const int TableStyleNetworkArchive::kBodyCellStyleFieldNumber;
const int TableStyleNetworkArchive::kHeaderRowStyleFieldNumber;
const int TableStyleNetworkArchive::kHeaderColumnStyleFieldNumber;
const int TableStyleNetworkArchive::kFooterRowStyleFieldNumber;
const int TableStyleNetworkArchive::kTableNameStyleFieldNumber;
const int TableStyleNetworkArchive::kTableNameShapeStyleFieldNumber;
const int TableStyleNetworkArchive::kPresetIndexFieldNumber;
#endif // !_MSC_VER
TableStyleNetworkArchive::TableStyleNetworkArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableStyleNetworkArchive::InitAsDefaultInstance() {
table_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
body_text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
header_row_text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
header_column_text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
footer_row_text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
body_cell_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
header_row_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
header_column_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
footer_row_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
table_name_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
table_name_shape_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
TableStyleNetworkArchive::TableStyleNetworkArchive(const TableStyleNetworkArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableStyleNetworkArchive::SharedCtor() {
_cached_size_ = 0;
table_style_ = NULL;
body_text_style_ = NULL;
header_row_text_style_ = NULL;
header_column_text_style_ = NULL;
footer_row_text_style_ = NULL;
body_cell_style_ = NULL;
header_row_style_ = NULL;
header_column_style_ = NULL;
footer_row_style_ = NULL;
table_name_style_ = NULL;
table_name_shape_style_ = NULL;
preset_index_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableStyleNetworkArchive::~TableStyleNetworkArchive() {
SharedDtor();
}
void TableStyleNetworkArchive::SharedDtor() {
if (this != default_instance_) {
delete table_style_;
delete body_text_style_;
delete header_row_text_style_;
delete header_column_text_style_;
delete footer_row_text_style_;
delete body_cell_style_;
delete header_row_style_;
delete header_column_style_;
delete footer_row_style_;
delete table_name_style_;
delete table_name_shape_style_;
}
}
void TableStyleNetworkArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableStyleNetworkArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableStyleNetworkArchive_descriptor_;
}
const TableStyleNetworkArchive& TableStyleNetworkArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableStyleNetworkArchive* TableStyleNetworkArchive::default_instance_ = NULL;
TableStyleNetworkArchive* TableStyleNetworkArchive::New() const {
return new TableStyleNetworkArchive;
}
void TableStyleNetworkArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_table_style()) {
if (table_style_ != NULL) table_style_->::TSP::Reference::Clear();
}
if (has_body_text_style()) {
if (body_text_style_ != NULL) body_text_style_->::TSP::Reference::Clear();
}
if (has_header_row_text_style()) {
if (header_row_text_style_ != NULL) header_row_text_style_->::TSP::Reference::Clear();
}
if (has_header_column_text_style()) {
if (header_column_text_style_ != NULL) header_column_text_style_->::TSP::Reference::Clear();
}
if (has_footer_row_text_style()) {
if (footer_row_text_style_ != NULL) footer_row_text_style_->::TSP::Reference::Clear();
}
if (has_body_cell_style()) {
if (body_cell_style_ != NULL) body_cell_style_->::TSP::Reference::Clear();
}
if (has_header_row_style()) {
if (header_row_style_ != NULL) header_row_style_->::TSP::Reference::Clear();
}
if (has_header_column_style()) {
if (header_column_style_ != NULL) header_column_style_->::TSP::Reference::Clear();
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (has_footer_row_style()) {
if (footer_row_style_ != NULL) footer_row_style_->::TSP::Reference::Clear();
}
if (has_table_name_style()) {
if (table_name_style_ != NULL) table_name_style_->::TSP::Reference::Clear();
}
if (has_table_name_shape_style()) {
if (table_name_shape_style_ != NULL) table_name_shape_style_->::TSP::Reference::Clear();
}
preset_index_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableStyleNetworkArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TSP.Reference body_text_style = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_body_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_header_row_text_style;
break;
}
// required .TSP.Reference header_row_text_style = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_header_row_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_header_row_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_header_column_text_style;
break;
}
// required .TSP.Reference header_column_text_style = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_header_column_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_header_column_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_footer_row_text_style;
break;
}
// required .TSP.Reference footer_row_text_style = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_footer_row_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_footer_row_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_body_cell_style;
break;
}
// required .TSP.Reference body_cell_style = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_body_cell_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_body_cell_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_header_row_style;
break;
}
// required .TSP.Reference header_row_style = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_header_row_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_header_row_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(58)) goto parse_header_column_style;
break;
}
// required .TSP.Reference header_column_style = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_header_column_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_header_column_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(66)) goto parse_footer_row_style;
break;
}
// required .TSP.Reference footer_row_style = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_footer_row_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_footer_row_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(74)) goto parse_table_style;
break;
}
// required .TSP.Reference table_style = 9;
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_table_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_table_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(82)) goto parse_table_name_style;
break;
}
// optional .TSP.Reference table_name_style = 10;
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_table_name_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_table_name_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(90)) goto parse_table_name_shape_style;
break;
}
// optional .TSP.Reference table_name_shape_style = 11;
case 11: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_table_name_shape_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_table_name_shape_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(96)) goto parse_preset_index;
break;
}
// optional uint32 preset_index = 12;
case 12: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_preset_index:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &preset_index_)));
set_has_preset_index();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableStyleNetworkArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TSP.Reference body_text_style = 1;
if (has_body_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->body_text_style(), output);
}
// required .TSP.Reference header_row_text_style = 2;
if (has_header_row_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->header_row_text_style(), output);
}
// required .TSP.Reference header_column_text_style = 3;
if (has_header_column_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->header_column_text_style(), output);
}
// required .TSP.Reference footer_row_text_style = 4;
if (has_footer_row_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->footer_row_text_style(), output);
}
// required .TSP.Reference body_cell_style = 5;
if (has_body_cell_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->body_cell_style(), output);
}
// required .TSP.Reference header_row_style = 6;
if (has_header_row_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, this->header_row_style(), output);
}
// required .TSP.Reference header_column_style = 7;
if (has_header_column_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7, this->header_column_style(), output);
}
// required .TSP.Reference footer_row_style = 8;
if (has_footer_row_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8, this->footer_row_style(), output);
}
// required .TSP.Reference table_style = 9;
if (has_table_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9, this->table_style(), output);
}
// optional .TSP.Reference table_name_style = 10;
if (has_table_name_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, this->table_name_style(), output);
}
// optional .TSP.Reference table_name_shape_style = 11;
if (has_table_name_shape_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, this->table_name_shape_style(), output);
}
// optional uint32 preset_index = 12;
if (has_preset_index()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->preset_index(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableStyleNetworkArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TSP.Reference body_text_style = 1;
if (has_body_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->body_text_style(), target);
}
// required .TSP.Reference header_row_text_style = 2;
if (has_header_row_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->header_row_text_style(), target);
}
// required .TSP.Reference header_column_text_style = 3;
if (has_header_column_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->header_column_text_style(), target);
}
// required .TSP.Reference footer_row_text_style = 4;
if (has_footer_row_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->footer_row_text_style(), target);
}
// required .TSP.Reference body_cell_style = 5;
if (has_body_cell_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->body_cell_style(), target);
}
// required .TSP.Reference header_row_style = 6;
if (has_header_row_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
6, this->header_row_style(), target);
}
// required .TSP.Reference header_column_style = 7;
if (has_header_column_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
7, this->header_column_style(), target);
}
// required .TSP.Reference footer_row_style = 8;
if (has_footer_row_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
8, this->footer_row_style(), target);
}
// required .TSP.Reference table_style = 9;
if (has_table_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
9, this->table_style(), target);
}
// optional .TSP.Reference table_name_style = 10;
if (has_table_name_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
10, this->table_name_style(), target);
}
// optional .TSP.Reference table_name_shape_style = 11;
if (has_table_name_shape_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
11, this->table_name_shape_style(), target);
}
// optional uint32 preset_index = 12;
if (has_preset_index()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->preset_index(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableStyleNetworkArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TSP.Reference table_style = 9;
if (has_table_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->table_style());
}
// required .TSP.Reference body_text_style = 1;
if (has_body_text_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->body_text_style());
}
// required .TSP.Reference header_row_text_style = 2;
if (has_header_row_text_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->header_row_text_style());
}
// required .TSP.Reference header_column_text_style = 3;
if (has_header_column_text_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->header_column_text_style());
}
// required .TSP.Reference footer_row_text_style = 4;
if (has_footer_row_text_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->footer_row_text_style());
}
// required .TSP.Reference body_cell_style = 5;
if (has_body_cell_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->body_cell_style());
}
// required .TSP.Reference header_row_style = 6;
if (has_header_row_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->header_row_style());
}
// required .TSP.Reference header_column_style = 7;
if (has_header_column_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->header_column_style());
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
// required .TSP.Reference footer_row_style = 8;
if (has_footer_row_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->footer_row_style());
}
// optional .TSP.Reference table_name_style = 10;
if (has_table_name_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->table_name_style());
}
// optional .TSP.Reference table_name_shape_style = 11;
if (has_table_name_shape_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->table_name_shape_style());
}
// optional uint32 preset_index = 12;
if (has_preset_index()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->preset_index());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableStyleNetworkArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableStyleNetworkArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableStyleNetworkArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableStyleNetworkArchive::MergeFrom(const TableStyleNetworkArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_table_style()) {
mutable_table_style()->::TSP::Reference::MergeFrom(from.table_style());
}
if (from.has_body_text_style()) {
mutable_body_text_style()->::TSP::Reference::MergeFrom(from.body_text_style());
}
if (from.has_header_row_text_style()) {
mutable_header_row_text_style()->::TSP::Reference::MergeFrom(from.header_row_text_style());
}
if (from.has_header_column_text_style()) {
mutable_header_column_text_style()->::TSP::Reference::MergeFrom(from.header_column_text_style());
}
if (from.has_footer_row_text_style()) {
mutable_footer_row_text_style()->::TSP::Reference::MergeFrom(from.footer_row_text_style());
}
if (from.has_body_cell_style()) {
mutable_body_cell_style()->::TSP::Reference::MergeFrom(from.body_cell_style());
}
if (from.has_header_row_style()) {
mutable_header_row_style()->::TSP::Reference::MergeFrom(from.header_row_style());
}
if (from.has_header_column_style()) {
mutable_header_column_style()->::TSP::Reference::MergeFrom(from.header_column_style());
}
}
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (from.has_footer_row_style()) {
mutable_footer_row_style()->::TSP::Reference::MergeFrom(from.footer_row_style());
}
if (from.has_table_name_style()) {
mutable_table_name_style()->::TSP::Reference::MergeFrom(from.table_name_style());
}
if (from.has_table_name_shape_style()) {
mutable_table_name_shape_style()->::TSP::Reference::MergeFrom(from.table_name_shape_style());
}
if (from.has_preset_index()) {
set_preset_index(from.preset_index());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableStyleNetworkArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableStyleNetworkArchive::CopyFrom(const TableStyleNetworkArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableStyleNetworkArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x000001ff) != 0x000001ff) return false;
if (has_table_style()) {
if (!this->table_style().IsInitialized()) return false;
}
if (has_body_text_style()) {
if (!this->body_text_style().IsInitialized()) return false;
}
if (has_header_row_text_style()) {
if (!this->header_row_text_style().IsInitialized()) return false;
}
if (has_header_column_text_style()) {
if (!this->header_column_text_style().IsInitialized()) return false;
}
if (has_footer_row_text_style()) {
if (!this->footer_row_text_style().IsInitialized()) return false;
}
if (has_body_cell_style()) {
if (!this->body_cell_style().IsInitialized()) return false;
}
if (has_header_row_style()) {
if (!this->header_row_style().IsInitialized()) return false;
}
if (has_header_column_style()) {
if (!this->header_column_style().IsInitialized()) return false;
}
if (has_footer_row_style()) {
if (!this->footer_row_style().IsInitialized()) return false;
}
if (has_table_name_style()) {
if (!this->table_name_style().IsInitialized()) return false;
}
if (has_table_name_shape_style()) {
if (!this->table_name_shape_style().IsInitialized()) return false;
}
return true;
}
void TableStyleNetworkArchive::Swap(TableStyleNetworkArchive* other) {
if (other != this) {
std::swap(table_style_, other->table_style_);
std::swap(body_text_style_, other->body_text_style_);
std::swap(header_row_text_style_, other->header_row_text_style_);
std::swap(header_column_text_style_, other->header_column_text_style_);
std::swap(footer_row_text_style_, other->footer_row_text_style_);
std::swap(body_cell_style_, other->body_cell_style_);
std::swap(header_row_style_, other->header_row_style_);
std::swap(header_column_style_, other->header_column_style_);
std::swap(footer_row_style_, other->footer_row_style_);
std::swap(table_name_style_, other->table_name_style_);
std::swap(table_name_shape_style_, other->table_name_shape_style_);
std::swap(preset_index_, other->preset_index_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableStyleNetworkArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableStyleNetworkArchive_descriptor_;
metadata.reflection = TableStyleNetworkArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TableModelArchive::kTableIdFieldNumber;
const int TableModelArchive::kFromTableIdFieldNumber;
const int TableModelArchive::kTableStyleFieldNumber;
const int TableModelArchive::kBodyTextStyleFieldNumber;
const int TableModelArchive::kHeaderRowTextStyleFieldNumber;
const int TableModelArchive::kHeaderColumnTextStyleFieldNumber;
const int TableModelArchive::kFooterRowTextStyleFieldNumber;
const int TableModelArchive::kBodyCellStyleFieldNumber;
const int TableModelArchive::kHeaderRowStyleFieldNumber;
const int TableModelArchive::kHeaderColumnStyleFieldNumber;
const int TableModelArchive::kFooterRowStyleFieldNumber;
const int TableModelArchive::kTableNameStyleFieldNumber;
const int TableModelArchive::kTableNameShapeStyleFieldNumber;
const int TableModelArchive::kDataStoreFieldNumber;
const int TableModelArchive::kProviderFieldNumber;
const int TableModelArchive::kNumberOfRowsFieldNumber;
const int TableModelArchive::kNumberOfColumnsFieldNumber;
const int TableModelArchive::kTableNameFieldNumber;
const int TableModelArchive::kTableNameEnabledFieldNumber;
const int TableModelArchive::kTableNameHeightFieldNumber;
const int TableModelArchive::kTableNameBorderEnabledFieldNumber;
const int TableModelArchive::kNumberOfHeaderRowsFieldNumber;
const int TableModelArchive::kNumberOfHeaderColumnsFieldNumber;
const int TableModelArchive::kNumberOfFooterRowsFieldNumber;
const int TableModelArchive::kHeaderRowsFrozenFieldNumber;
const int TableModelArchive::kHeaderColumnsFrozenFieldNumber;
const int TableModelArchive::kNumberOfHiddenRowsFieldNumber;
const int TableModelArchive::kNumberOfHiddenColumnsFieldNumber;
const int TableModelArchive::kNumberOfUserHiddenRowsFieldNumber;
const int TableModelArchive::kNumberOfUserHiddenColumnsFieldNumber;
const int TableModelArchive::kNumberOfFilteredRowsFieldNumber;
const int TableModelArchive::kDefaultRowHeightFieldNumber;
const int TableModelArchive::kDefaultColumnWidthFieldNumber;
const int TableModelArchive::kOriginOffsetFieldNumber;
const int TableModelArchive::kPresetIndexFieldNumber;
const int TableModelArchive::kRepeatingHeaderRowsEnabledFieldNumber;
const int TableModelArchive::kRepeatingHeaderColumnsEnabledFieldNumber;
const int TableModelArchive::kStyleApplyClearsAllFieldNumber;
const int TableModelArchive::kHiddenStateFormulaOwnerForColumnsFieldNumber;
const int TableModelArchive::kHiddenStateFormulaOwnerForRowsFieldNumber;
const int TableModelArchive::kFilterSetFieldNumber;
const int TableModelArchive::kConditionalStyleFormulaOwnerIdFieldNumber;
#endif // !_MSC_VER
TableModelArchive::TableModelArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableModelArchive::InitAsDefaultInstance() {
table_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
body_text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
header_row_text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
header_column_text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
footer_row_text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
body_cell_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
header_row_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
header_column_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
footer_row_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
table_name_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
table_name_shape_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
data_store_ = const_cast< ::TST::DataStore*>(&::TST::DataStore::default_instance());
provider_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
origin_offset_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
hidden_state_formula_owner_for_columns_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
hidden_state_formula_owner_for_rows_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
filter_set_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
conditional_style_formula_owner_id_ = const_cast< ::TSCE::CFUUIDArchive*>(&::TSCE::CFUUIDArchive::default_instance());
}
TableModelArchive::TableModelArchive(const TableModelArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableModelArchive::SharedCtor() {
_cached_size_ = 0;
table_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
from_table_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
table_style_ = NULL;
body_text_style_ = NULL;
header_row_text_style_ = NULL;
header_column_text_style_ = NULL;
footer_row_text_style_ = NULL;
body_cell_style_ = NULL;
header_row_style_ = NULL;
header_column_style_ = NULL;
footer_row_style_ = NULL;
table_name_style_ = NULL;
table_name_shape_style_ = NULL;
data_store_ = NULL;
provider_ = NULL;
number_of_rows_ = 0u;
number_of_columns_ = 0u;
table_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
table_name_enabled_ = false;
table_name_height_ = 0;
table_name_border_enabled_ = false;
number_of_header_rows_ = 0u;
number_of_header_columns_ = 0u;
number_of_footer_rows_ = 0u;
header_rows_frozen_ = false;
header_columns_frozen_ = false;
number_of_hidden_rows_ = 0u;
number_of_hidden_columns_ = 0u;
number_of_user_hidden_rows_ = 0u;
number_of_user_hidden_columns_ = 0u;
number_of_filtered_rows_ = 0u;
default_row_height_ = 0;
default_column_width_ = 0;
origin_offset_ = NULL;
preset_index_ = 0u;
repeating_header_rows_enabled_ = false;
repeating_header_columns_enabled_ = false;
style_apply_clears_all_ = false;
hidden_state_formula_owner_for_columns_ = NULL;
hidden_state_formula_owner_for_rows_ = NULL;
filter_set_ = NULL;
conditional_style_formula_owner_id_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableModelArchive::~TableModelArchive() {
SharedDtor();
}
void TableModelArchive::SharedDtor() {
if (table_id_ != &::google::protobuf::internal::kEmptyString) {
delete table_id_;
}
if (from_table_id_ != &::google::protobuf::internal::kEmptyString) {
delete from_table_id_;
}
if (table_name_ != &::google::protobuf::internal::kEmptyString) {
delete table_name_;
}
if (this != default_instance_) {
delete table_style_;
delete body_text_style_;
delete header_row_text_style_;
delete header_column_text_style_;
delete footer_row_text_style_;
delete body_cell_style_;
delete header_row_style_;
delete header_column_style_;
delete footer_row_style_;
delete table_name_style_;
delete table_name_shape_style_;
delete data_store_;
delete provider_;
delete origin_offset_;
delete hidden_state_formula_owner_for_columns_;
delete hidden_state_formula_owner_for_rows_;
delete filter_set_;
delete conditional_style_formula_owner_id_;
}
}
void TableModelArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableModelArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableModelArchive_descriptor_;
}
const TableModelArchive& TableModelArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableModelArchive* TableModelArchive::default_instance_ = NULL;
TableModelArchive* TableModelArchive::New() const {
return new TableModelArchive;
}
void TableModelArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_table_id()) {
if (table_id_ != &::google::protobuf::internal::kEmptyString) {
table_id_->clear();
}
}
if (has_from_table_id()) {
if (from_table_id_ != &::google::protobuf::internal::kEmptyString) {
from_table_id_->clear();
}
}
if (has_table_style()) {
if (table_style_ != NULL) table_style_->::TSP::Reference::Clear();
}
if (has_body_text_style()) {
if (body_text_style_ != NULL) body_text_style_->::TSP::Reference::Clear();
}
if (has_header_row_text_style()) {
if (header_row_text_style_ != NULL) header_row_text_style_->::TSP::Reference::Clear();
}
if (has_header_column_text_style()) {
if (header_column_text_style_ != NULL) header_column_text_style_->::TSP::Reference::Clear();
}
if (has_footer_row_text_style()) {
if (footer_row_text_style_ != NULL) footer_row_text_style_->::TSP::Reference::Clear();
}
if (has_body_cell_style()) {
if (body_cell_style_ != NULL) body_cell_style_->::TSP::Reference::Clear();
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (has_header_row_style()) {
if (header_row_style_ != NULL) header_row_style_->::TSP::Reference::Clear();
}
if (has_header_column_style()) {
if (header_column_style_ != NULL) header_column_style_->::TSP::Reference::Clear();
}
if (has_footer_row_style()) {
if (footer_row_style_ != NULL) footer_row_style_->::TSP::Reference::Clear();
}
if (has_table_name_style()) {
if (table_name_style_ != NULL) table_name_style_->::TSP::Reference::Clear();
}
if (has_table_name_shape_style()) {
if (table_name_shape_style_ != NULL) table_name_shape_style_->::TSP::Reference::Clear();
}
if (has_data_store()) {
if (data_store_ != NULL) data_store_->::TST::DataStore::Clear();
}
if (has_provider()) {
if (provider_ != NULL) provider_->::TSP::Reference::Clear();
}
number_of_rows_ = 0u;
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
number_of_columns_ = 0u;
if (has_table_name()) {
if (table_name_ != &::google::protobuf::internal::kEmptyString) {
table_name_->clear();
}
}
table_name_enabled_ = false;
table_name_height_ = 0;
table_name_border_enabled_ = false;
number_of_header_rows_ = 0u;
number_of_header_columns_ = 0u;
number_of_footer_rows_ = 0u;
}
if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) {
header_rows_frozen_ = false;
header_columns_frozen_ = false;
number_of_hidden_rows_ = 0u;
number_of_hidden_columns_ = 0u;
number_of_user_hidden_rows_ = 0u;
number_of_user_hidden_columns_ = 0u;
number_of_filtered_rows_ = 0u;
default_row_height_ = 0;
}
if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) {
default_column_width_ = 0;
if (has_origin_offset()) {
if (origin_offset_ != NULL) origin_offset_->::TST::CellID::Clear();
}
preset_index_ = 0u;
repeating_header_rows_enabled_ = false;
repeating_header_columns_enabled_ = false;
style_apply_clears_all_ = false;
if (has_hidden_state_formula_owner_for_columns()) {
if (hidden_state_formula_owner_for_columns_ != NULL) hidden_state_formula_owner_for_columns_->::TSP::Reference::Clear();
}
if (has_hidden_state_formula_owner_for_rows()) {
if (hidden_state_formula_owner_for_rows_ != NULL) hidden_state_formula_owner_for_rows_->::TSP::Reference::Clear();
}
}
if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) {
if (has_filter_set()) {
if (filter_set_ != NULL) filter_set_->::TSP::Reference::Clear();
}
if (has_conditional_style_formula_owner_id()) {
if (conditional_style_formula_owner_id_ != NULL) conditional_style_formula_owner_id_->::TSCE::CFUUIDArchive::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableModelArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required string table_id = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_table_id()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->table_id().data(), this->table_id().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_table_style;
break;
}
// required .TSP.Reference table_style = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_table_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_table_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_data_store;
break;
}
// required .TST.DataStore data_store = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_data_store:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_data_store()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_provider;
break;
}
// optional .TSP.Reference provider = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_provider:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_provider()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(48)) goto parse_number_of_rows;
break;
}
// required uint32 number_of_rows = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_rows:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_rows_)));
set_has_number_of_rows();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(56)) goto parse_number_of_columns;
break;
}
// required uint32 number_of_columns = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_columns:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_columns_)));
set_has_number_of_columns();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(66)) goto parse_table_name;
break;
}
// required string table_name = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_table_name:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_table_name()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->table_name().data(), this->table_name().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(72)) goto parse_number_of_header_rows;
break;
}
// optional uint32 number_of_header_rows = 9;
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_header_rows:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_header_rows_)));
set_has_number_of_header_rows();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(80)) goto parse_number_of_header_columns;
break;
}
// optional uint32 number_of_header_columns = 10;
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_header_columns:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_header_columns_)));
set_has_number_of_header_columns();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(88)) goto parse_number_of_footer_rows;
break;
}
// optional uint32 number_of_footer_rows = 11;
case 11: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_footer_rows:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_footer_rows_)));
set_has_number_of_footer_rows();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(96)) goto parse_header_rows_frozen;
break;
}
// optional bool header_rows_frozen = 12;
case 12: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_header_rows_frozen:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &header_rows_frozen_)));
set_has_header_rows_frozen();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(104)) goto parse_header_columns_frozen;
break;
}
// optional bool header_columns_frozen = 13;
case 13: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_header_columns_frozen:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &header_columns_frozen_)));
set_has_header_columns_frozen();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(112)) goto parse_number_of_hidden_rows;
break;
}
// optional uint32 number_of_hidden_rows = 14;
case 14: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_hidden_rows:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_hidden_rows_)));
set_has_number_of_hidden_rows();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(120)) goto parse_number_of_hidden_columns;
break;
}
// optional uint32 number_of_hidden_columns = 15;
case 15: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_hidden_columns:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_hidden_columns_)));
set_has_number_of_hidden_columns();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(129)) goto parse_default_row_height;
break;
}
// required double default_row_height = 16;
case 16: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
parse_default_row_height:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &default_row_height_)));
set_has_default_row_height();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(137)) goto parse_default_column_width;
break;
}
// required double default_column_width = 17;
case 17: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
parse_default_column_width:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &default_column_width_)));
set_has_default_column_width();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(146)) goto parse_body_cell_style;
break;
}
// required .TSP.Reference body_cell_style = 18;
case 18: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_body_cell_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_body_cell_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(154)) goto parse_header_row_style;
break;
}
// required .TSP.Reference header_row_style = 19;
case 19: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_header_row_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_header_row_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(162)) goto parse_header_column_style;
break;
}
// required .TSP.Reference header_column_style = 20;
case 20: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_header_column_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_header_column_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(170)) goto parse_footer_row_style;
break;
}
// required .TSP.Reference footer_row_style = 21;
case 21: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_footer_row_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_footer_row_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(176)) goto parse_table_name_enabled;
break;
}
// optional bool table_name_enabled = 22;
case 22: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_table_name_enabled:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &table_name_enabled_)));
set_has_table_name_enabled();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(186)) goto parse_origin_offset;
break;
}
// optional .TST.CellID origin_offset = 23 [deprecated = true];
case 23: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_origin_offset:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_origin_offset()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(194)) goto parse_body_text_style;
break;
}
// required .TSP.Reference body_text_style = 24;
case 24: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_body_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_body_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(202)) goto parse_header_row_text_style;
break;
}
// required .TSP.Reference header_row_text_style = 25;
case 25: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_header_row_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_header_row_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(210)) goto parse_header_column_text_style;
break;
}
// required .TSP.Reference header_column_text_style = 26;
case 26: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_header_column_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_header_column_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(218)) goto parse_footer_row_text_style;
break;
}
// required .TSP.Reference footer_row_text_style = 27;
case 27: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_footer_row_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_footer_row_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(224)) goto parse_preset_index;
break;
}
// required uint32 preset_index = 28;
case 28: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_preset_index:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &preset_index_)));
set_has_preset_index();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(232)) goto parse_repeating_header_rows_enabled;
break;
}
// optional bool repeating_header_rows_enabled = 29;
case 29: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_repeating_header_rows_enabled:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &repeating_header_rows_enabled_)));
set_has_repeating_header_rows_enabled();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(242)) goto parse_table_name_style;
break;
}
// optional .TSP.Reference table_name_style = 30;
case 30: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_table_name_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_table_name_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(248)) goto parse_style_apply_clears_all;
break;
}
// optional bool style_apply_clears_all = 31;
case 31: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_style_apply_clears_all:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &style_apply_clears_all_)));
set_has_style_apply_clears_all();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(256)) goto parse_repeating_header_columns_enabled;
break;
}
// optional bool repeating_header_columns_enabled = 32;
case 32: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_repeating_header_columns_enabled:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &repeating_header_columns_enabled_)));
set_has_repeating_header_columns_enabled();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(265)) goto parse_table_name_height;
break;
}
// optional double table_name_height = 33;
case 33: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
parse_table_name_height:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &table_name_height_)));
set_has_table_name_height();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(274)) goto parse_hidden_state_formula_owner_for_columns;
break;
}
// optional .TSP.Reference hidden_state_formula_owner_for_columns = 34;
case 34: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_hidden_state_formula_owner_for_columns:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_hidden_state_formula_owner_for_columns()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(282)) goto parse_hidden_state_formula_owner_for_rows;
break;
}
// optional .TSP.Reference hidden_state_formula_owner_for_rows = 35;
case 35: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_hidden_state_formula_owner_for_rows:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_hidden_state_formula_owner_for_rows()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(290)) goto parse_table_name_shape_style;
break;
}
// optional .TSP.Reference table_name_shape_style = 36;
case 36: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_table_name_shape_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_table_name_shape_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(296)) goto parse_table_name_border_enabled;
break;
}
// optional bool table_name_border_enabled = 37;
case 37: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_table_name_border_enabled:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &table_name_border_enabled_)));
set_has_table_name_border_enabled();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(306)) goto parse_filter_set;
break;
}
// optional .TSP.Reference filter_set = 38;
case 38: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_filter_set:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_filter_set()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(314)) goto parse_conditional_style_formula_owner_id;
break;
}
// optional .TSCE.CFUUIDArchive conditional_style_formula_owner_id = 39;
case 39: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_conditional_style_formula_owner_id:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_conditional_style_formula_owner_id()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(320)) goto parse_number_of_filtered_rows;
break;
}
// optional uint32 number_of_filtered_rows = 40;
case 40: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_filtered_rows:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_filtered_rows_)));
set_has_number_of_filtered_rows();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(328)) goto parse_number_of_user_hidden_rows;
break;
}
// optional uint32 number_of_user_hidden_rows = 41;
case 41: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_user_hidden_rows:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_user_hidden_rows_)));
set_has_number_of_user_hidden_rows();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(336)) goto parse_number_of_user_hidden_columns;
break;
}
// optional uint32 number_of_user_hidden_columns = 42;
case 42: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_number_of_user_hidden_columns:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &number_of_user_hidden_columns_)));
set_has_number_of_user_hidden_columns();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(346)) goto parse_from_table_id;
break;
}
// optional string from_table_id = 43;
case 43: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_from_table_id:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_from_table_id()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->from_table_id().data(), this->from_table_id().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableModelArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required string table_id = 1;
if (has_table_id()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->table_id().data(), this->table_id().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
1, this->table_id(), output);
}
// required .TSP.Reference table_style = 3;
if (has_table_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->table_style(), output);
}
// required .TST.DataStore data_store = 4;
if (has_data_store()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->data_store(), output);
}
// optional .TSP.Reference provider = 5;
if (has_provider()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->provider(), output);
}
// required uint32 number_of_rows = 6;
if (has_number_of_rows()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->number_of_rows(), output);
}
// required uint32 number_of_columns = 7;
if (has_number_of_columns()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->number_of_columns(), output);
}
// required string table_name = 8;
if (has_table_name()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->table_name().data(), this->table_name().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
8, this->table_name(), output);
}
// optional uint32 number_of_header_rows = 9;
if (has_number_of_header_rows()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->number_of_header_rows(), output);
}
// optional uint32 number_of_header_columns = 10;
if (has_number_of_header_columns()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->number_of_header_columns(), output);
}
// optional uint32 number_of_footer_rows = 11;
if (has_number_of_footer_rows()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->number_of_footer_rows(), output);
}
// optional bool header_rows_frozen = 12;
if (has_header_rows_frozen()) {
::google::protobuf::internal::WireFormatLite::WriteBool(12, this->header_rows_frozen(), output);
}
// optional bool header_columns_frozen = 13;
if (has_header_columns_frozen()) {
::google::protobuf::internal::WireFormatLite::WriteBool(13, this->header_columns_frozen(), output);
}
// optional uint32 number_of_hidden_rows = 14;
if (has_number_of_hidden_rows()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(14, this->number_of_hidden_rows(), output);
}
// optional uint32 number_of_hidden_columns = 15;
if (has_number_of_hidden_columns()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(15, this->number_of_hidden_columns(), output);
}
// required double default_row_height = 16;
if (has_default_row_height()) {
::google::protobuf::internal::WireFormatLite::WriteDouble(16, this->default_row_height(), output);
}
// required double default_column_width = 17;
if (has_default_column_width()) {
::google::protobuf::internal::WireFormatLite::WriteDouble(17, this->default_column_width(), output);
}
// required .TSP.Reference body_cell_style = 18;
if (has_body_cell_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
18, this->body_cell_style(), output);
}
// required .TSP.Reference header_row_style = 19;
if (has_header_row_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
19, this->header_row_style(), output);
}
// required .TSP.Reference header_column_style = 20;
if (has_header_column_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
20, this->header_column_style(), output);
}
// required .TSP.Reference footer_row_style = 21;
if (has_footer_row_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
21, this->footer_row_style(), output);
}
// optional bool table_name_enabled = 22;
if (has_table_name_enabled()) {
::google::protobuf::internal::WireFormatLite::WriteBool(22, this->table_name_enabled(), output);
}
// optional .TST.CellID origin_offset = 23 [deprecated = true];
if (has_origin_offset()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
23, this->origin_offset(), output);
}
// required .TSP.Reference body_text_style = 24;
if (has_body_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
24, this->body_text_style(), output);
}
// required .TSP.Reference header_row_text_style = 25;
if (has_header_row_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
25, this->header_row_text_style(), output);
}
// required .TSP.Reference header_column_text_style = 26;
if (has_header_column_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
26, this->header_column_text_style(), output);
}
// required .TSP.Reference footer_row_text_style = 27;
if (has_footer_row_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
27, this->footer_row_text_style(), output);
}
// required uint32 preset_index = 28;
if (has_preset_index()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(28, this->preset_index(), output);
}
// optional bool repeating_header_rows_enabled = 29;
if (has_repeating_header_rows_enabled()) {
::google::protobuf::internal::WireFormatLite::WriteBool(29, this->repeating_header_rows_enabled(), output);
}
// optional .TSP.Reference table_name_style = 30;
if (has_table_name_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
30, this->table_name_style(), output);
}
// optional bool style_apply_clears_all = 31;
if (has_style_apply_clears_all()) {
::google::protobuf::internal::WireFormatLite::WriteBool(31, this->style_apply_clears_all(), output);
}
// optional bool repeating_header_columns_enabled = 32;
if (has_repeating_header_columns_enabled()) {
::google::protobuf::internal::WireFormatLite::WriteBool(32, this->repeating_header_columns_enabled(), output);
}
// optional double table_name_height = 33;
if (has_table_name_height()) {
::google::protobuf::internal::WireFormatLite::WriteDouble(33, this->table_name_height(), output);
}
// optional .TSP.Reference hidden_state_formula_owner_for_columns = 34;
if (has_hidden_state_formula_owner_for_columns()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
34, this->hidden_state_formula_owner_for_columns(), output);
}
// optional .TSP.Reference hidden_state_formula_owner_for_rows = 35;
if (has_hidden_state_formula_owner_for_rows()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
35, this->hidden_state_formula_owner_for_rows(), output);
}
// optional .TSP.Reference table_name_shape_style = 36;
if (has_table_name_shape_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
36, this->table_name_shape_style(), output);
}
// optional bool table_name_border_enabled = 37;
if (has_table_name_border_enabled()) {
::google::protobuf::internal::WireFormatLite::WriteBool(37, this->table_name_border_enabled(), output);
}
// optional .TSP.Reference filter_set = 38;
if (has_filter_set()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
38, this->filter_set(), output);
}
// optional .TSCE.CFUUIDArchive conditional_style_formula_owner_id = 39;
if (has_conditional_style_formula_owner_id()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
39, this->conditional_style_formula_owner_id(), output);
}
// optional uint32 number_of_filtered_rows = 40;
if (has_number_of_filtered_rows()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(40, this->number_of_filtered_rows(), output);
}
// optional uint32 number_of_user_hidden_rows = 41;
if (has_number_of_user_hidden_rows()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(41, this->number_of_user_hidden_rows(), output);
}
// optional uint32 number_of_user_hidden_columns = 42;
if (has_number_of_user_hidden_columns()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(42, this->number_of_user_hidden_columns(), output);
}
// optional string from_table_id = 43;
if (has_from_table_id()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->from_table_id().data(), this->from_table_id().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
43, this->from_table_id(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableModelArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required string table_id = 1;
if (has_table_id()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->table_id().data(), this->table_id().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->table_id(), target);
}
// required .TSP.Reference table_style = 3;
if (has_table_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->table_style(), target);
}
// required .TST.DataStore data_store = 4;
if (has_data_store()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->data_store(), target);
}
// optional .TSP.Reference provider = 5;
if (has_provider()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->provider(), target);
}
// required uint32 number_of_rows = 6;
if (has_number_of_rows()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->number_of_rows(), target);
}
// required uint32 number_of_columns = 7;
if (has_number_of_columns()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->number_of_columns(), target);
}
// required string table_name = 8;
if (has_table_name()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->table_name().data(), this->table_name().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
8, this->table_name(), target);
}
// optional uint32 number_of_header_rows = 9;
if (has_number_of_header_rows()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->number_of_header_rows(), target);
}
// optional uint32 number_of_header_columns = 10;
if (has_number_of_header_columns()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->number_of_header_columns(), target);
}
// optional uint32 number_of_footer_rows = 11;
if (has_number_of_footer_rows()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->number_of_footer_rows(), target);
}
// optional bool header_rows_frozen = 12;
if (has_header_rows_frozen()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(12, this->header_rows_frozen(), target);
}
// optional bool header_columns_frozen = 13;
if (has_header_columns_frozen()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->header_columns_frozen(), target);
}
// optional uint32 number_of_hidden_rows = 14;
if (has_number_of_hidden_rows()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(14, this->number_of_hidden_rows(), target);
}
// optional uint32 number_of_hidden_columns = 15;
if (has_number_of_hidden_columns()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(15, this->number_of_hidden_columns(), target);
}
// required double default_row_height = 16;
if (has_default_row_height()) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(16, this->default_row_height(), target);
}
// required double default_column_width = 17;
if (has_default_column_width()) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(17, this->default_column_width(), target);
}
// required .TSP.Reference body_cell_style = 18;
if (has_body_cell_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
18, this->body_cell_style(), target);
}
// required .TSP.Reference header_row_style = 19;
if (has_header_row_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
19, this->header_row_style(), target);
}
// required .TSP.Reference header_column_style = 20;
if (has_header_column_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
20, this->header_column_style(), target);
}
// required .TSP.Reference footer_row_style = 21;
if (has_footer_row_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
21, this->footer_row_style(), target);
}
// optional bool table_name_enabled = 22;
if (has_table_name_enabled()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(22, this->table_name_enabled(), target);
}
// optional .TST.CellID origin_offset = 23 [deprecated = true];
if (has_origin_offset()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
23, this->origin_offset(), target);
}
// required .TSP.Reference body_text_style = 24;
if (has_body_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
24, this->body_text_style(), target);
}
// required .TSP.Reference header_row_text_style = 25;
if (has_header_row_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
25, this->header_row_text_style(), target);
}
// required .TSP.Reference header_column_text_style = 26;
if (has_header_column_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
26, this->header_column_text_style(), target);
}
// required .TSP.Reference footer_row_text_style = 27;
if (has_footer_row_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
27, this->footer_row_text_style(), target);
}
// required uint32 preset_index = 28;
if (has_preset_index()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(28, this->preset_index(), target);
}
// optional bool repeating_header_rows_enabled = 29;
if (has_repeating_header_rows_enabled()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(29, this->repeating_header_rows_enabled(), target);
}
// optional .TSP.Reference table_name_style = 30;
if (has_table_name_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
30, this->table_name_style(), target);
}
// optional bool style_apply_clears_all = 31;
if (has_style_apply_clears_all()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(31, this->style_apply_clears_all(), target);
}
// optional bool repeating_header_columns_enabled = 32;
if (has_repeating_header_columns_enabled()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(32, this->repeating_header_columns_enabled(), target);
}
// optional double table_name_height = 33;
if (has_table_name_height()) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(33, this->table_name_height(), target);
}
// optional .TSP.Reference hidden_state_formula_owner_for_columns = 34;
if (has_hidden_state_formula_owner_for_columns()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
34, this->hidden_state_formula_owner_for_columns(), target);
}
// optional .TSP.Reference hidden_state_formula_owner_for_rows = 35;
if (has_hidden_state_formula_owner_for_rows()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
35, this->hidden_state_formula_owner_for_rows(), target);
}
// optional .TSP.Reference table_name_shape_style = 36;
if (has_table_name_shape_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
36, this->table_name_shape_style(), target);
}
// optional bool table_name_border_enabled = 37;
if (has_table_name_border_enabled()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(37, this->table_name_border_enabled(), target);
}
// optional .TSP.Reference filter_set = 38;
if (has_filter_set()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
38, this->filter_set(), target);
}
// optional .TSCE.CFUUIDArchive conditional_style_formula_owner_id = 39;
if (has_conditional_style_formula_owner_id()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
39, this->conditional_style_formula_owner_id(), target);
}
// optional uint32 number_of_filtered_rows = 40;
if (has_number_of_filtered_rows()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(40, this->number_of_filtered_rows(), target);
}
// optional uint32 number_of_user_hidden_rows = 41;
if (has_number_of_user_hidden_rows()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(41, this->number_of_user_hidden_rows(), target);
}
// optional uint32 number_of_user_hidden_columns = 42;
if (has_number_of_user_hidden_columns()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(42, this->number_of_user_hidden_columns(), target);
}
// optional string from_table_id = 43;
if (has_from_table_id()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->from_table_id().data(), this->from_table_id().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
43, this->from_table_id(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableModelArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string table_id = 1;
if (has_table_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->table_id());
}
// optional string from_table_id = 43;
if (has_from_table_id()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->from_table_id());
}
// required .TSP.Reference table_style = 3;
if (has_table_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->table_style());
}
// required .TSP.Reference body_text_style = 24;
if (has_body_text_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->body_text_style());
}
// required .TSP.Reference header_row_text_style = 25;
if (has_header_row_text_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->header_row_text_style());
}
// required .TSP.Reference header_column_text_style = 26;
if (has_header_column_text_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->header_column_text_style());
}
// required .TSP.Reference footer_row_text_style = 27;
if (has_footer_row_text_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->footer_row_text_style());
}
// required .TSP.Reference body_cell_style = 18;
if (has_body_cell_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->body_cell_style());
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
// required .TSP.Reference header_row_style = 19;
if (has_header_row_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->header_row_style());
}
// required .TSP.Reference header_column_style = 20;
if (has_header_column_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->header_column_style());
}
// required .TSP.Reference footer_row_style = 21;
if (has_footer_row_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->footer_row_style());
}
// optional .TSP.Reference table_name_style = 30;
if (has_table_name_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->table_name_style());
}
// optional .TSP.Reference table_name_shape_style = 36;
if (has_table_name_shape_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->table_name_shape_style());
}
// required .TST.DataStore data_store = 4;
if (has_data_store()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->data_store());
}
// optional .TSP.Reference provider = 5;
if (has_provider()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->provider());
}
// required uint32 number_of_rows = 6;
if (has_number_of_rows()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_rows());
}
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
// required uint32 number_of_columns = 7;
if (has_number_of_columns()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_columns());
}
// required string table_name = 8;
if (has_table_name()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->table_name());
}
// optional bool table_name_enabled = 22;
if (has_table_name_enabled()) {
total_size += 2 + 1;
}
// optional double table_name_height = 33;
if (has_table_name_height()) {
total_size += 2 + 8;
}
// optional bool table_name_border_enabled = 37;
if (has_table_name_border_enabled()) {
total_size += 2 + 1;
}
// optional uint32 number_of_header_rows = 9;
if (has_number_of_header_rows()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_header_rows());
}
// optional uint32 number_of_header_columns = 10;
if (has_number_of_header_columns()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_header_columns());
}
// optional uint32 number_of_footer_rows = 11;
if (has_number_of_footer_rows()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_footer_rows());
}
}
if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) {
// optional bool header_rows_frozen = 12;
if (has_header_rows_frozen()) {
total_size += 1 + 1;
}
// optional bool header_columns_frozen = 13;
if (has_header_columns_frozen()) {
total_size += 1 + 1;
}
// optional uint32 number_of_hidden_rows = 14;
if (has_number_of_hidden_rows()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_hidden_rows());
}
// optional uint32 number_of_hidden_columns = 15;
if (has_number_of_hidden_columns()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_hidden_columns());
}
// optional uint32 number_of_user_hidden_rows = 41;
if (has_number_of_user_hidden_rows()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_user_hidden_rows());
}
// optional uint32 number_of_user_hidden_columns = 42;
if (has_number_of_user_hidden_columns()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_user_hidden_columns());
}
// optional uint32 number_of_filtered_rows = 40;
if (has_number_of_filtered_rows()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->number_of_filtered_rows());
}
// required double default_row_height = 16;
if (has_default_row_height()) {
total_size += 2 + 8;
}
}
if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) {
// required double default_column_width = 17;
if (has_default_column_width()) {
total_size += 2 + 8;
}
// optional .TST.CellID origin_offset = 23 [deprecated = true];
if (has_origin_offset()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->origin_offset());
}
// required uint32 preset_index = 28;
if (has_preset_index()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->preset_index());
}
// optional bool repeating_header_rows_enabled = 29;
if (has_repeating_header_rows_enabled()) {
total_size += 2 + 1;
}
// optional bool repeating_header_columns_enabled = 32;
if (has_repeating_header_columns_enabled()) {
total_size += 2 + 1;
}
// optional bool style_apply_clears_all = 31;
if (has_style_apply_clears_all()) {
total_size += 2 + 1;
}
// optional .TSP.Reference hidden_state_formula_owner_for_columns = 34;
if (has_hidden_state_formula_owner_for_columns()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->hidden_state_formula_owner_for_columns());
}
// optional .TSP.Reference hidden_state_formula_owner_for_rows = 35;
if (has_hidden_state_formula_owner_for_rows()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->hidden_state_formula_owner_for_rows());
}
}
if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) {
// optional .TSP.Reference filter_set = 38;
if (has_filter_set()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->filter_set());
}
// optional .TSCE.CFUUIDArchive conditional_style_formula_owner_id = 39;
if (has_conditional_style_formula_owner_id()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->conditional_style_formula_owner_id());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableModelArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableModelArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableModelArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableModelArchive::MergeFrom(const TableModelArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_table_id()) {
set_table_id(from.table_id());
}
if (from.has_from_table_id()) {
set_from_table_id(from.from_table_id());
}
if (from.has_table_style()) {
mutable_table_style()->::TSP::Reference::MergeFrom(from.table_style());
}
if (from.has_body_text_style()) {
mutable_body_text_style()->::TSP::Reference::MergeFrom(from.body_text_style());
}
if (from.has_header_row_text_style()) {
mutable_header_row_text_style()->::TSP::Reference::MergeFrom(from.header_row_text_style());
}
if (from.has_header_column_text_style()) {
mutable_header_column_text_style()->::TSP::Reference::MergeFrom(from.header_column_text_style());
}
if (from.has_footer_row_text_style()) {
mutable_footer_row_text_style()->::TSP::Reference::MergeFrom(from.footer_row_text_style());
}
if (from.has_body_cell_style()) {
mutable_body_cell_style()->::TSP::Reference::MergeFrom(from.body_cell_style());
}
}
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (from.has_header_row_style()) {
mutable_header_row_style()->::TSP::Reference::MergeFrom(from.header_row_style());
}
if (from.has_header_column_style()) {
mutable_header_column_style()->::TSP::Reference::MergeFrom(from.header_column_style());
}
if (from.has_footer_row_style()) {
mutable_footer_row_style()->::TSP::Reference::MergeFrom(from.footer_row_style());
}
if (from.has_table_name_style()) {
mutable_table_name_style()->::TSP::Reference::MergeFrom(from.table_name_style());
}
if (from.has_table_name_shape_style()) {
mutable_table_name_shape_style()->::TSP::Reference::MergeFrom(from.table_name_shape_style());
}
if (from.has_data_store()) {
mutable_data_store()->::TST::DataStore::MergeFrom(from.data_store());
}
if (from.has_provider()) {
mutable_provider()->::TSP::Reference::MergeFrom(from.provider());
}
if (from.has_number_of_rows()) {
set_number_of_rows(from.number_of_rows());
}
}
if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
if (from.has_number_of_columns()) {
set_number_of_columns(from.number_of_columns());
}
if (from.has_table_name()) {
set_table_name(from.table_name());
}
if (from.has_table_name_enabled()) {
set_table_name_enabled(from.table_name_enabled());
}
if (from.has_table_name_height()) {
set_table_name_height(from.table_name_height());
}
if (from.has_table_name_border_enabled()) {
set_table_name_border_enabled(from.table_name_border_enabled());
}
if (from.has_number_of_header_rows()) {
set_number_of_header_rows(from.number_of_header_rows());
}
if (from.has_number_of_header_columns()) {
set_number_of_header_columns(from.number_of_header_columns());
}
if (from.has_number_of_footer_rows()) {
set_number_of_footer_rows(from.number_of_footer_rows());
}
}
if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) {
if (from.has_header_rows_frozen()) {
set_header_rows_frozen(from.header_rows_frozen());
}
if (from.has_header_columns_frozen()) {
set_header_columns_frozen(from.header_columns_frozen());
}
if (from.has_number_of_hidden_rows()) {
set_number_of_hidden_rows(from.number_of_hidden_rows());
}
if (from.has_number_of_hidden_columns()) {
set_number_of_hidden_columns(from.number_of_hidden_columns());
}
if (from.has_number_of_user_hidden_rows()) {
set_number_of_user_hidden_rows(from.number_of_user_hidden_rows());
}
if (from.has_number_of_user_hidden_columns()) {
set_number_of_user_hidden_columns(from.number_of_user_hidden_columns());
}
if (from.has_number_of_filtered_rows()) {
set_number_of_filtered_rows(from.number_of_filtered_rows());
}
if (from.has_default_row_height()) {
set_default_row_height(from.default_row_height());
}
}
if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) {
if (from.has_default_column_width()) {
set_default_column_width(from.default_column_width());
}
if (from.has_origin_offset()) {
mutable_origin_offset()->::TST::CellID::MergeFrom(from.origin_offset());
}
if (from.has_preset_index()) {
set_preset_index(from.preset_index());
}
if (from.has_repeating_header_rows_enabled()) {
set_repeating_header_rows_enabled(from.repeating_header_rows_enabled());
}
if (from.has_repeating_header_columns_enabled()) {
set_repeating_header_columns_enabled(from.repeating_header_columns_enabled());
}
if (from.has_style_apply_clears_all()) {
set_style_apply_clears_all(from.style_apply_clears_all());
}
if (from.has_hidden_state_formula_owner_for_columns()) {
mutable_hidden_state_formula_owner_for_columns()->::TSP::Reference::MergeFrom(from.hidden_state_formula_owner_for_columns());
}
if (from.has_hidden_state_formula_owner_for_rows()) {
mutable_hidden_state_formula_owner_for_rows()->::TSP::Reference::MergeFrom(from.hidden_state_formula_owner_for_rows());
}
}
if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) {
if (from.has_filter_set()) {
mutable_filter_set()->::TSP::Reference::MergeFrom(from.filter_set());
}
if (from.has_conditional_style_formula_owner_id()) {
mutable_conditional_style_formula_owner_id()->::TSCE::CFUUIDArchive::MergeFrom(from.conditional_style_formula_owner_id());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableModelArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableModelArchive::CopyFrom(const TableModelArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableModelArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x8003a7fd) != 0x8003a7fd) return false;
if ((_has_bits_[1] & 0x00000005) != 0x00000005) return false;
if (has_table_style()) {
if (!this->table_style().IsInitialized()) return false;
}
if (has_body_text_style()) {
if (!this->body_text_style().IsInitialized()) return false;
}
if (has_header_row_text_style()) {
if (!this->header_row_text_style().IsInitialized()) return false;
}
if (has_header_column_text_style()) {
if (!this->header_column_text_style().IsInitialized()) return false;
}
if (has_footer_row_text_style()) {
if (!this->footer_row_text_style().IsInitialized()) return false;
}
if (has_body_cell_style()) {
if (!this->body_cell_style().IsInitialized()) return false;
}
if (has_header_row_style()) {
if (!this->header_row_style().IsInitialized()) return false;
}
if (has_header_column_style()) {
if (!this->header_column_style().IsInitialized()) return false;
}
if (has_footer_row_style()) {
if (!this->footer_row_style().IsInitialized()) return false;
}
if (has_table_name_style()) {
if (!this->table_name_style().IsInitialized()) return false;
}
if (has_table_name_shape_style()) {
if (!this->table_name_shape_style().IsInitialized()) return false;
}
if (has_data_store()) {
if (!this->data_store().IsInitialized()) return false;
}
if (has_provider()) {
if (!this->provider().IsInitialized()) return false;
}
if (has_origin_offset()) {
if (!this->origin_offset().IsInitialized()) return false;
}
if (has_hidden_state_formula_owner_for_columns()) {
if (!this->hidden_state_formula_owner_for_columns().IsInitialized()) return false;
}
if (has_hidden_state_formula_owner_for_rows()) {
if (!this->hidden_state_formula_owner_for_rows().IsInitialized()) return false;
}
if (has_filter_set()) {
if (!this->filter_set().IsInitialized()) return false;
}
return true;
}
void TableModelArchive::Swap(TableModelArchive* other) {
if (other != this) {
std::swap(table_id_, other->table_id_);
std::swap(from_table_id_, other->from_table_id_);
std::swap(table_style_, other->table_style_);
std::swap(body_text_style_, other->body_text_style_);
std::swap(header_row_text_style_, other->header_row_text_style_);
std::swap(header_column_text_style_, other->header_column_text_style_);
std::swap(footer_row_text_style_, other->footer_row_text_style_);
std::swap(body_cell_style_, other->body_cell_style_);
std::swap(header_row_style_, other->header_row_style_);
std::swap(header_column_style_, other->header_column_style_);
std::swap(footer_row_style_, other->footer_row_style_);
std::swap(table_name_style_, other->table_name_style_);
std::swap(table_name_shape_style_, other->table_name_shape_style_);
std::swap(data_store_, other->data_store_);
std::swap(provider_, other->provider_);
std::swap(number_of_rows_, other->number_of_rows_);
std::swap(number_of_columns_, other->number_of_columns_);
std::swap(table_name_, other->table_name_);
std::swap(table_name_enabled_, other->table_name_enabled_);
std::swap(table_name_height_, other->table_name_height_);
std::swap(table_name_border_enabled_, other->table_name_border_enabled_);
std::swap(number_of_header_rows_, other->number_of_header_rows_);
std::swap(number_of_header_columns_, other->number_of_header_columns_);
std::swap(number_of_footer_rows_, other->number_of_footer_rows_);
std::swap(header_rows_frozen_, other->header_rows_frozen_);
std::swap(header_columns_frozen_, other->header_columns_frozen_);
std::swap(number_of_hidden_rows_, other->number_of_hidden_rows_);
std::swap(number_of_hidden_columns_, other->number_of_hidden_columns_);
std::swap(number_of_user_hidden_rows_, other->number_of_user_hidden_rows_);
std::swap(number_of_user_hidden_columns_, other->number_of_user_hidden_columns_);
std::swap(number_of_filtered_rows_, other->number_of_filtered_rows_);
std::swap(default_row_height_, other->default_row_height_);
std::swap(default_column_width_, other->default_column_width_);
std::swap(origin_offset_, other->origin_offset_);
std::swap(preset_index_, other->preset_index_);
std::swap(repeating_header_rows_enabled_, other->repeating_header_rows_enabled_);
std::swap(repeating_header_columns_enabled_, other->repeating_header_columns_enabled_);
std::swap(style_apply_clears_all_, other->style_apply_clears_all_);
std::swap(hidden_state_formula_owner_for_columns_, other->hidden_state_formula_owner_for_columns_);
std::swap(hidden_state_formula_owner_for_rows_, other->hidden_state_formula_owner_for_rows_);
std::swap(filter_set_, other->filter_set_);
std::swap(conditional_style_formula_owner_id_, other->conditional_style_formula_owner_id_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
std::swap(_has_bits_[1], other->_has_bits_[1]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableModelArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableModelArchive_descriptor_;
metadata.reflection = TableModelArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
#endif // !_MSC_VER
DurationWrapperArchive::DurationWrapperArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void DurationWrapperArchive::InitAsDefaultInstance() {
}
DurationWrapperArchive::DurationWrapperArchive(const DurationWrapperArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void DurationWrapperArchive::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
DurationWrapperArchive::~DurationWrapperArchive() {
SharedDtor();
}
void DurationWrapperArchive::SharedDtor() {
if (this != default_instance_) {
}
}
void DurationWrapperArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DurationWrapperArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return DurationWrapperArchive_descriptor_;
}
const DurationWrapperArchive& DurationWrapperArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
DurationWrapperArchive* DurationWrapperArchive::default_instance_ = NULL;
DurationWrapperArchive* DurationWrapperArchive::New() const {
return new DurationWrapperArchive;
}
void DurationWrapperArchive::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool DurationWrapperArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void DurationWrapperArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* DurationWrapperArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int DurationWrapperArchive::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DurationWrapperArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const DurationWrapperArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const DurationWrapperArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void DurationWrapperArchive::MergeFrom(const DurationWrapperArchive& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DurationWrapperArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DurationWrapperArchive::CopyFrom(const DurationWrapperArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DurationWrapperArchive::IsInitialized() const {
return true;
}
void DurationWrapperArchive::Swap(DurationWrapperArchive* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata DurationWrapperArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = DurationWrapperArchive_descriptor_;
metadata.reflection = DurationWrapperArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int Cell::kValueTypeFieldNumber;
const int Cell::kNumberValueFieldNumber;
const int Cell::kStringValueFieldNumber;
const int Cell::kBoolValueFieldNumber;
const int Cell::kCellStyleFieldNumber;
const int Cell::kTextStyleFieldNumber;
const int Cell::kFormulaFieldNumber;
const int Cell::kFormulaErrorFieldNumber;
const int Cell::kCurrentFormatFieldNumber;
const int Cell::kNumberFormatFieldNumber;
const int Cell::kCurrencyFormatFieldNumber;
const int Cell::kDurationFormatFieldNumber;
const int Cell::kDateFormatFieldNumber;
const int Cell::kControlFormatFieldNumber;
const int Cell::kCustomFormatFieldNumber;
const int Cell::kBaseFormatFieldNumber;
const int Cell::kMultipleChoiceListFormatFieldNumber;
const int Cell::kExplicitFormatFlagsFieldNumber;
const int Cell::kRichTextPayloadFieldNumber;
const int Cell::kConditionalStyleFieldNumber;
const int Cell::kMultipleChoiceListFieldNumber;
const int Cell::kCommentStorageFieldNumber;
const int Cell::kConditionalStyleAppliedRuleFieldNumber;
#endif // !_MSC_VER
Cell::Cell()
: ::google::protobuf::Message() {
SharedCtor();
}
void Cell::InitAsDefaultInstance() {
cell_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
formula_ = const_cast< ::TSCE::FormulaArchive*>(&::TSCE::FormulaArchive::default_instance());
formulaerror_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
current_format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
number_format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
currency_format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
duration_format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
date_format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
control_format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
custom_format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
base_format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
multiple_choice_list_format_ = const_cast< ::TSK::FormatStructArchive*>(&::TSK::FormatStructArchive::default_instance());
richtextpayload_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
conditional_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
multiple_choice_list_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
comment_storage_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
Cell::Cell(const Cell& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Cell::SharedCtor() {
_cached_size_ = 0;
valuetype_ = 0;
numbervalue_ = 0;
stringvalue_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
boolvalue_ = false;
cell_style_ = NULL;
text_style_ = NULL;
formula_ = NULL;
formulaerror_ = NULL;
current_format_ = NULL;
number_format_ = NULL;
currency_format_ = NULL;
duration_format_ = NULL;
date_format_ = NULL;
control_format_ = NULL;
custom_format_ = NULL;
base_format_ = NULL;
multiple_choice_list_format_ = NULL;
explicit_format_flags_ = 0u;
richtextpayload_ = NULL;
conditional_style_ = NULL;
multiple_choice_list_ = NULL;
comment_storage_ = NULL;
conditional_style_applied_rule_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Cell::~Cell() {
SharedDtor();
}
void Cell::SharedDtor() {
if (stringvalue_ != &::google::protobuf::internal::kEmptyString) {
delete stringvalue_;
}
if (this != default_instance_) {
delete cell_style_;
delete text_style_;
delete formula_;
delete formulaerror_;
delete current_format_;
delete number_format_;
delete currency_format_;
delete duration_format_;
delete date_format_;
delete control_format_;
delete custom_format_;
delete base_format_;
delete multiple_choice_list_format_;
delete richtextpayload_;
delete conditional_style_;
delete multiple_choice_list_;
delete comment_storage_;
}
}
void Cell::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Cell::descriptor() {
protobuf_AssignDescriptorsOnce();
return Cell_descriptor_;
}
const Cell& Cell::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
Cell* Cell::default_instance_ = NULL;
Cell* Cell::New() const {
return new Cell;
}
void Cell::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
valuetype_ = 0;
numbervalue_ = 0;
if (has_stringvalue()) {
if (stringvalue_ != &::google::protobuf::internal::kEmptyString) {
stringvalue_->clear();
}
}
boolvalue_ = false;
if (has_cell_style()) {
if (cell_style_ != NULL) cell_style_->::TSP::Reference::Clear();
}
if (has_text_style()) {
if (text_style_ != NULL) text_style_->::TSP::Reference::Clear();
}
if (has_formula()) {
if (formula_ != NULL) formula_->::TSCE::FormulaArchive::Clear();
}
if (has_formulaerror()) {
if (formulaerror_ != NULL) formulaerror_->::TSP::Reference::Clear();
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (has_current_format()) {
if (current_format_ != NULL) current_format_->::TSK::FormatStructArchive::Clear();
}
if (has_number_format()) {
if (number_format_ != NULL) number_format_->::TSK::FormatStructArchive::Clear();
}
if (has_currency_format()) {
if (currency_format_ != NULL) currency_format_->::TSK::FormatStructArchive::Clear();
}
if (has_duration_format()) {
if (duration_format_ != NULL) duration_format_->::TSK::FormatStructArchive::Clear();
}
if (has_date_format()) {
if (date_format_ != NULL) date_format_->::TSK::FormatStructArchive::Clear();
}
if (has_control_format()) {
if (control_format_ != NULL) control_format_->::TSK::FormatStructArchive::Clear();
}
if (has_custom_format()) {
if (custom_format_ != NULL) custom_format_->::TSK::FormatStructArchive::Clear();
}
if (has_base_format()) {
if (base_format_ != NULL) base_format_->::TSK::FormatStructArchive::Clear();
}
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
if (has_multiple_choice_list_format()) {
if (multiple_choice_list_format_ != NULL) multiple_choice_list_format_->::TSK::FormatStructArchive::Clear();
}
explicit_format_flags_ = 0u;
if (has_richtextpayload()) {
if (richtextpayload_ != NULL) richtextpayload_->::TSP::Reference::Clear();
}
if (has_conditional_style()) {
if (conditional_style_ != NULL) conditional_style_->::TSP::Reference::Clear();
}
if (has_multiple_choice_list()) {
if (multiple_choice_list_ != NULL) multiple_choice_list_->::TSP::Reference::Clear();
}
if (has_comment_storage()) {
if (comment_storage_ != NULL) comment_storage_->::TSP::Reference::Clear();
}
conditional_style_applied_rule_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Cell::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.CellValueType valueType = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::TST::CellValueType_IsValid(value)) {
set_valuetype(static_cast< ::TST::CellValueType >(value));
} else {
mutable_unknown_fields()->AddVarint(2, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_cell_style;
break;
}
// optional .TSP.Reference cell_style = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cell_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cell_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_text_style;
break;
}
// optional .TSP.Reference text_style = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(41)) goto parse_numberValue;
break;
}
// optional double numberValue = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
parse_numberValue:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &numbervalue_)));
set_has_numbervalue();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_stringValue;
break;
}
// optional string stringValue = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_stringValue:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_stringvalue()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->stringvalue().data(), this->stringvalue().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(56)) goto parse_boolValue;
break;
}
// optional bool boolValue = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_boolValue:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &boolvalue_)));
set_has_boolvalue();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(66)) goto parse_formula;
break;
}
// optional .TSCE.FormulaArchive formula = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_formula:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_formula()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(74)) goto parse_current_format;
break;
}
// optional .TSK.FormatStructArchive current_format = 9;
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_current_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_current_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(82)) goto parse_formulaError;
break;
}
// optional .TSP.Reference formulaError = 10;
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_formulaError:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_formulaerror()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(90)) goto parse_number_format;
break;
}
// optional .TSK.FormatStructArchive number_format = 11;
case 11: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_number_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_number_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(98)) goto parse_currency_format;
break;
}
// optional .TSK.FormatStructArchive currency_format = 12;
case 12: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_currency_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_currency_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(106)) goto parse_duration_format;
break;
}
// optional .TSK.FormatStructArchive duration_format = 13;
case 13: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_duration_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_duration_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(114)) goto parse_date_format;
break;
}
// optional .TSK.FormatStructArchive date_format = 14;
case 14: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_date_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_date_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(122)) goto parse_control_format;
break;
}
// optional .TSK.FormatStructArchive control_format = 15;
case 15: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_control_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_control_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(130)) goto parse_custom_format;
break;
}
// optional .TSK.FormatStructArchive custom_format = 16;
case 16: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_custom_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_custom_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(138)) goto parse_base_format;
break;
}
// optional .TSK.FormatStructArchive base_format = 17;
case 17: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_base_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_base_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(146)) goto parse_multiple_choice_list_format;
break;
}
// optional .TSK.FormatStructArchive multiple_choice_list_format = 18;
case 18: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_multiple_choice_list_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_multiple_choice_list_format()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(152)) goto parse_explicit_format_flags;
break;
}
// optional uint32 explicit_format_flags = 19;
case 19: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_explicit_format_flags:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &explicit_format_flags_)));
set_has_explicit_format_flags();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(162)) goto parse_richTextPayload;
break;
}
// optional .TSP.Reference richTextPayload = 20;
case 20: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_richTextPayload:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_richtextpayload()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(170)) goto parse_conditional_style;
break;
}
// optional .TSP.Reference conditional_style = 21;
case 21: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_conditional_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_conditional_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(178)) goto parse_multiple_choice_list;
break;
}
// optional .TSP.Reference multiple_choice_list = 22;
case 22: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_multiple_choice_list:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_multiple_choice_list()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(186)) goto parse_comment_storage;
break;
}
// optional .TSP.Reference comment_storage = 23;
case 23: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_comment_storage:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_comment_storage()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(192)) goto parse_conditional_style_applied_rule;
break;
}
// optional uint32 conditional_style_applied_rule = 24;
case 24: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_conditional_style_applied_rule:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &conditional_style_applied_rule_)));
set_has_conditional_style_applied_rule();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Cell::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.CellValueType valueType = 2;
if (has_valuetype()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->valuetype(), output);
}
// optional .TSP.Reference cell_style = 3;
if (has_cell_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->cell_style(), output);
}
// optional .TSP.Reference text_style = 4;
if (has_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->text_style(), output);
}
// optional double numberValue = 5;
if (has_numbervalue()) {
::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->numbervalue(), output);
}
// optional string stringValue = 6;
if (has_stringvalue()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->stringvalue().data(), this->stringvalue().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
6, this->stringvalue(), output);
}
// optional bool boolValue = 7;
if (has_boolvalue()) {
::google::protobuf::internal::WireFormatLite::WriteBool(7, this->boolvalue(), output);
}
// optional .TSCE.FormulaArchive formula = 8;
if (has_formula()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8, this->formula(), output);
}
// optional .TSK.FormatStructArchive current_format = 9;
if (has_current_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9, this->current_format(), output);
}
// optional .TSP.Reference formulaError = 10;
if (has_formulaerror()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, this->formulaerror(), output);
}
// optional .TSK.FormatStructArchive number_format = 11;
if (has_number_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, this->number_format(), output);
}
// optional .TSK.FormatStructArchive currency_format = 12;
if (has_currency_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12, this->currency_format(), output);
}
// optional .TSK.FormatStructArchive duration_format = 13;
if (has_duration_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
13, this->duration_format(), output);
}
// optional .TSK.FormatStructArchive date_format = 14;
if (has_date_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
14, this->date_format(), output);
}
// optional .TSK.FormatStructArchive control_format = 15;
if (has_control_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15, this->control_format(), output);
}
// optional .TSK.FormatStructArchive custom_format = 16;
if (has_custom_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
16, this->custom_format(), output);
}
// optional .TSK.FormatStructArchive base_format = 17;
if (has_base_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
17, this->base_format(), output);
}
// optional .TSK.FormatStructArchive multiple_choice_list_format = 18;
if (has_multiple_choice_list_format()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
18, this->multiple_choice_list_format(), output);
}
// optional uint32 explicit_format_flags = 19;
if (has_explicit_format_flags()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->explicit_format_flags(), output);
}
// optional .TSP.Reference richTextPayload = 20;
if (has_richtextpayload()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
20, this->richtextpayload(), output);
}
// optional .TSP.Reference conditional_style = 21;
if (has_conditional_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
21, this->conditional_style(), output);
}
// optional .TSP.Reference multiple_choice_list = 22;
if (has_multiple_choice_list()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
22, this->multiple_choice_list(), output);
}
// optional .TSP.Reference comment_storage = 23;
if (has_comment_storage()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
23, this->comment_storage(), output);
}
// optional uint32 conditional_style_applied_rule = 24;
if (has_conditional_style_applied_rule()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(24, this->conditional_style_applied_rule(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Cell::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.CellValueType valueType = 2;
if (has_valuetype()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->valuetype(), target);
}
// optional .TSP.Reference cell_style = 3;
if (has_cell_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->cell_style(), target);
}
// optional .TSP.Reference text_style = 4;
if (has_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->text_style(), target);
}
// optional double numberValue = 5;
if (has_numbervalue()) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->numbervalue(), target);
}
// optional string stringValue = 6;
if (has_stringvalue()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->stringvalue().data(), this->stringvalue().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->stringvalue(), target);
}
// optional bool boolValue = 7;
if (has_boolvalue()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->boolvalue(), target);
}
// optional .TSCE.FormulaArchive formula = 8;
if (has_formula()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
8, this->formula(), target);
}
// optional .TSK.FormatStructArchive current_format = 9;
if (has_current_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
9, this->current_format(), target);
}
// optional .TSP.Reference formulaError = 10;
if (has_formulaerror()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
10, this->formulaerror(), target);
}
// optional .TSK.FormatStructArchive number_format = 11;
if (has_number_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
11, this->number_format(), target);
}
// optional .TSK.FormatStructArchive currency_format = 12;
if (has_currency_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
12, this->currency_format(), target);
}
// optional .TSK.FormatStructArchive duration_format = 13;
if (has_duration_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
13, this->duration_format(), target);
}
// optional .TSK.FormatStructArchive date_format = 14;
if (has_date_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
14, this->date_format(), target);
}
// optional .TSK.FormatStructArchive control_format = 15;
if (has_control_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
15, this->control_format(), target);
}
// optional .TSK.FormatStructArchive custom_format = 16;
if (has_custom_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
16, this->custom_format(), target);
}
// optional .TSK.FormatStructArchive base_format = 17;
if (has_base_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
17, this->base_format(), target);
}
// optional .TSK.FormatStructArchive multiple_choice_list_format = 18;
if (has_multiple_choice_list_format()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
18, this->multiple_choice_list_format(), target);
}
// optional uint32 explicit_format_flags = 19;
if (has_explicit_format_flags()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(19, this->explicit_format_flags(), target);
}
// optional .TSP.Reference richTextPayload = 20;
if (has_richtextpayload()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
20, this->richtextpayload(), target);
}
// optional .TSP.Reference conditional_style = 21;
if (has_conditional_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
21, this->conditional_style(), target);
}
// optional .TSP.Reference multiple_choice_list = 22;
if (has_multiple_choice_list()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
22, this->multiple_choice_list(), target);
}
// optional .TSP.Reference comment_storage = 23;
if (has_comment_storage()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
23, this->comment_storage(), target);
}
// optional uint32 conditional_style_applied_rule = 24;
if (has_conditional_style_applied_rule()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(24, this->conditional_style_applied_rule(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Cell::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.CellValueType valueType = 2;
if (has_valuetype()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->valuetype());
}
// optional double numberValue = 5;
if (has_numbervalue()) {
total_size += 1 + 8;
}
// optional string stringValue = 6;
if (has_stringvalue()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->stringvalue());
}
// optional bool boolValue = 7;
if (has_boolvalue()) {
total_size += 1 + 1;
}
// optional .TSP.Reference cell_style = 3;
if (has_cell_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell_style());
}
// optional .TSP.Reference text_style = 4;
if (has_text_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->text_style());
}
// optional .TSCE.FormulaArchive formula = 8;
if (has_formula()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->formula());
}
// optional .TSP.Reference formulaError = 10;
if (has_formulaerror()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->formulaerror());
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
// optional .TSK.FormatStructArchive current_format = 9;
if (has_current_format()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->current_format());
}
// optional .TSK.FormatStructArchive number_format = 11;
if (has_number_format()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->number_format());
}
// optional .TSK.FormatStructArchive currency_format = 12;
if (has_currency_format()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->currency_format());
}
// optional .TSK.FormatStructArchive duration_format = 13;
if (has_duration_format()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->duration_format());
}
// optional .TSK.FormatStructArchive date_format = 14;
if (has_date_format()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->date_format());
}
// optional .TSK.FormatStructArchive control_format = 15;
if (has_control_format()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->control_format());
}
// optional .TSK.FormatStructArchive custom_format = 16;
if (has_custom_format()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->custom_format());
}
// optional .TSK.FormatStructArchive base_format = 17;
if (has_base_format()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->base_format());
}
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
// optional .TSK.FormatStructArchive multiple_choice_list_format = 18;
if (has_multiple_choice_list_format()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->multiple_choice_list_format());
}
// optional uint32 explicit_format_flags = 19;
if (has_explicit_format_flags()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->explicit_format_flags());
}
// optional .TSP.Reference richTextPayload = 20;
if (has_richtextpayload()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->richtextpayload());
}
// optional .TSP.Reference conditional_style = 21;
if (has_conditional_style()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->conditional_style());
}
// optional .TSP.Reference multiple_choice_list = 22;
if (has_multiple_choice_list()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->multiple_choice_list());
}
// optional .TSP.Reference comment_storage = 23;
if (has_comment_storage()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->comment_storage());
}
// optional uint32 conditional_style_applied_rule = 24;
if (has_conditional_style_applied_rule()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->conditional_style_applied_rule());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Cell::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Cell* source =
::google::protobuf::internal::dynamic_cast_if_available<const Cell*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Cell::MergeFrom(const Cell& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_valuetype()) {
set_valuetype(from.valuetype());
}
if (from.has_numbervalue()) {
set_numbervalue(from.numbervalue());
}
if (from.has_stringvalue()) {
set_stringvalue(from.stringvalue());
}
if (from.has_boolvalue()) {
set_boolvalue(from.boolvalue());
}
if (from.has_cell_style()) {
mutable_cell_style()->::TSP::Reference::MergeFrom(from.cell_style());
}
if (from.has_text_style()) {
mutable_text_style()->::TSP::Reference::MergeFrom(from.text_style());
}
if (from.has_formula()) {
mutable_formula()->::TSCE::FormulaArchive::MergeFrom(from.formula());
}
if (from.has_formulaerror()) {
mutable_formulaerror()->::TSP::Reference::MergeFrom(from.formulaerror());
}
}
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (from.has_current_format()) {
mutable_current_format()->::TSK::FormatStructArchive::MergeFrom(from.current_format());
}
if (from.has_number_format()) {
mutable_number_format()->::TSK::FormatStructArchive::MergeFrom(from.number_format());
}
if (from.has_currency_format()) {
mutable_currency_format()->::TSK::FormatStructArchive::MergeFrom(from.currency_format());
}
if (from.has_duration_format()) {
mutable_duration_format()->::TSK::FormatStructArchive::MergeFrom(from.duration_format());
}
if (from.has_date_format()) {
mutable_date_format()->::TSK::FormatStructArchive::MergeFrom(from.date_format());
}
if (from.has_control_format()) {
mutable_control_format()->::TSK::FormatStructArchive::MergeFrom(from.control_format());
}
if (from.has_custom_format()) {
mutable_custom_format()->::TSK::FormatStructArchive::MergeFrom(from.custom_format());
}
if (from.has_base_format()) {
mutable_base_format()->::TSK::FormatStructArchive::MergeFrom(from.base_format());
}
}
if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
if (from.has_multiple_choice_list_format()) {
mutable_multiple_choice_list_format()->::TSK::FormatStructArchive::MergeFrom(from.multiple_choice_list_format());
}
if (from.has_explicit_format_flags()) {
set_explicit_format_flags(from.explicit_format_flags());
}
if (from.has_richtextpayload()) {
mutable_richtextpayload()->::TSP::Reference::MergeFrom(from.richtextpayload());
}
if (from.has_conditional_style()) {
mutable_conditional_style()->::TSP::Reference::MergeFrom(from.conditional_style());
}
if (from.has_multiple_choice_list()) {
mutable_multiple_choice_list()->::TSP::Reference::MergeFrom(from.multiple_choice_list());
}
if (from.has_comment_storage()) {
mutable_comment_storage()->::TSP::Reference::MergeFrom(from.comment_storage());
}
if (from.has_conditional_style_applied_rule()) {
set_conditional_style_applied_rule(from.conditional_style_applied_rule());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Cell::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Cell::CopyFrom(const Cell& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Cell::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_cell_style()) {
if (!this->cell_style().IsInitialized()) return false;
}
if (has_text_style()) {
if (!this->text_style().IsInitialized()) return false;
}
if (has_formula()) {
if (!this->formula().IsInitialized()) return false;
}
if (has_formulaerror()) {
if (!this->formulaerror().IsInitialized()) return false;
}
if (has_current_format()) {
if (!this->current_format().IsInitialized()) return false;
}
if (has_number_format()) {
if (!this->number_format().IsInitialized()) return false;
}
if (has_currency_format()) {
if (!this->currency_format().IsInitialized()) return false;
}
if (has_duration_format()) {
if (!this->duration_format().IsInitialized()) return false;
}
if (has_date_format()) {
if (!this->date_format().IsInitialized()) return false;
}
if (has_control_format()) {
if (!this->control_format().IsInitialized()) return false;
}
if (has_custom_format()) {
if (!this->custom_format().IsInitialized()) return false;
}
if (has_base_format()) {
if (!this->base_format().IsInitialized()) return false;
}
if (has_multiple_choice_list_format()) {
if (!this->multiple_choice_list_format().IsInitialized()) return false;
}
if (has_richtextpayload()) {
if (!this->richtextpayload().IsInitialized()) return false;
}
if (has_conditional_style()) {
if (!this->conditional_style().IsInitialized()) return false;
}
if (has_multiple_choice_list()) {
if (!this->multiple_choice_list().IsInitialized()) return false;
}
if (has_comment_storage()) {
if (!this->comment_storage().IsInitialized()) return false;
}
return true;
}
void Cell::Swap(Cell* other) {
if (other != this) {
std::swap(valuetype_, other->valuetype_);
std::swap(numbervalue_, other->numbervalue_);
std::swap(stringvalue_, other->stringvalue_);
std::swap(boolvalue_, other->boolvalue_);
std::swap(cell_style_, other->cell_style_);
std::swap(text_style_, other->text_style_);
std::swap(formula_, other->formula_);
std::swap(formulaerror_, other->formulaerror_);
std::swap(current_format_, other->current_format_);
std::swap(number_format_, other->number_format_);
std::swap(currency_format_, other->currency_format_);
std::swap(duration_format_, other->duration_format_);
std::swap(date_format_, other->date_format_);
std::swap(control_format_, other->control_format_);
std::swap(custom_format_, other->custom_format_);
std::swap(base_format_, other->base_format_);
std::swap(multiple_choice_list_format_, other->multiple_choice_list_format_);
std::swap(explicit_format_flags_, other->explicit_format_flags_);
std::swap(richtextpayload_, other->richtextpayload_);
std::swap(conditional_style_, other->conditional_style_);
std::swap(multiple_choice_list_, other->multiple_choice_list_);
std::swap(comment_storage_, other->comment_storage_);
std::swap(conditional_style_applied_rule_, other->conditional_style_applied_rule_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Cell::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Cell_descriptor_;
metadata.reflection = Cell_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int MergeRegionMapArchive::kCellRangeFieldNumber;
#endif // !_MSC_VER
MergeRegionMapArchive::MergeRegionMapArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void MergeRegionMapArchive::InitAsDefaultInstance() {
}
MergeRegionMapArchive::MergeRegionMapArchive(const MergeRegionMapArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void MergeRegionMapArchive::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
MergeRegionMapArchive::~MergeRegionMapArchive() {
SharedDtor();
}
void MergeRegionMapArchive::SharedDtor() {
if (this != default_instance_) {
}
}
void MergeRegionMapArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* MergeRegionMapArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return MergeRegionMapArchive_descriptor_;
}
const MergeRegionMapArchive& MergeRegionMapArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
MergeRegionMapArchive* MergeRegionMapArchive::default_instance_ = NULL;
MergeRegionMapArchive* MergeRegionMapArchive::New() const {
return new MergeRegionMapArchive;
}
void MergeRegionMapArchive::Clear() {
cell_range_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool MergeRegionMapArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .TST.CellRange cell_range = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cell_range:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_cell_range()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_cell_range;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void MergeRegionMapArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .TST.CellRange cell_range = 1;
for (int i = 0; i < this->cell_range_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->cell_range(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* MergeRegionMapArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .TST.CellRange cell_range = 1;
for (int i = 0; i < this->cell_range_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->cell_range(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int MergeRegionMapArchive::ByteSize() const {
int total_size = 0;
// repeated .TST.CellRange cell_range = 1;
total_size += 1 * this->cell_range_size();
for (int i = 0; i < this->cell_range_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell_range(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void MergeRegionMapArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const MergeRegionMapArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const MergeRegionMapArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void MergeRegionMapArchive::MergeFrom(const MergeRegionMapArchive& from) {
GOOGLE_CHECK_NE(&from, this);
cell_range_.MergeFrom(from.cell_range_);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void MergeRegionMapArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void MergeRegionMapArchive::CopyFrom(const MergeRegionMapArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool MergeRegionMapArchive::IsInitialized() const {
for (int i = 0; i < cell_range_size(); i++) {
if (!this->cell_range(i).IsInitialized()) return false;
}
return true;
}
void MergeRegionMapArchive::Swap(MergeRegionMapArchive* other) {
if (other != this) {
cell_range_.Swap(&other->cell_range_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata MergeRegionMapArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = MergeRegionMapArchive_descriptor_;
metadata.reflection = MergeRegionMapArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int CellMapArchive_CellMapEntry::kCellIDFieldNumber;
const int CellMapArchive_CellMapEntry::kCellFieldNumber;
#endif // !_MSC_VER
CellMapArchive_CellMapEntry::CellMapArchive_CellMapEntry()
: ::google::protobuf::Message() {
SharedCtor();
}
void CellMapArchive_CellMapEntry::InitAsDefaultInstance() {
cellid_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
cell_ = const_cast< ::TST::Cell*>(&::TST::Cell::default_instance());
}
CellMapArchive_CellMapEntry::CellMapArchive_CellMapEntry(const CellMapArchive_CellMapEntry& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void CellMapArchive_CellMapEntry::SharedCtor() {
_cached_size_ = 0;
cellid_ = NULL;
cell_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
CellMapArchive_CellMapEntry::~CellMapArchive_CellMapEntry() {
SharedDtor();
}
void CellMapArchive_CellMapEntry::SharedDtor() {
if (this != default_instance_) {
delete cellid_;
delete cell_;
}
}
void CellMapArchive_CellMapEntry::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CellMapArchive_CellMapEntry::descriptor() {
protobuf_AssignDescriptorsOnce();
return CellMapArchive_CellMapEntry_descriptor_;
}
const CellMapArchive_CellMapEntry& CellMapArchive_CellMapEntry::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
CellMapArchive_CellMapEntry* CellMapArchive_CellMapEntry::default_instance_ = NULL;
CellMapArchive_CellMapEntry* CellMapArchive_CellMapEntry::New() const {
return new CellMapArchive_CellMapEntry;
}
void CellMapArchive_CellMapEntry::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_cellid()) {
if (cellid_ != NULL) cellid_->::TST::CellID::Clear();
}
if (has_cell()) {
if (cell_ != NULL) cell_->::TST::Cell::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool CellMapArchive_CellMapEntry::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.CellID cellID = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cellid()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_cell;
break;
}
// optional .TST.Cell cell = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cell:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cell()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void CellMapArchive_CellMapEntry::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.CellID cellID = 1;
if (has_cellid()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->cellid(), output);
}
// optional .TST.Cell cell = 2;
if (has_cell()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->cell(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* CellMapArchive_CellMapEntry::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.CellID cellID = 1;
if (has_cellid()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->cellid(), target);
}
// optional .TST.Cell cell = 2;
if (has_cell()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->cell(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int CellMapArchive_CellMapEntry::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.CellID cellID = 1;
if (has_cellid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cellid());
}
// optional .TST.Cell cell = 2;
if (has_cell()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void CellMapArchive_CellMapEntry::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const CellMapArchive_CellMapEntry* source =
::google::protobuf::internal::dynamic_cast_if_available<const CellMapArchive_CellMapEntry*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void CellMapArchive_CellMapEntry::MergeFrom(const CellMapArchive_CellMapEntry& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_cellid()) {
mutable_cellid()->::TST::CellID::MergeFrom(from.cellid());
}
if (from.has_cell()) {
mutable_cell()->::TST::Cell::MergeFrom(from.cell());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CellMapArchive_CellMapEntry::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CellMapArchive_CellMapEntry::CopyFrom(const CellMapArchive_CellMapEntry& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CellMapArchive_CellMapEntry::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_cellid()) {
if (!this->cellid().IsInitialized()) return false;
}
if (has_cell()) {
if (!this->cell().IsInitialized()) return false;
}
return true;
}
void CellMapArchive_CellMapEntry::Swap(CellMapArchive_CellMapEntry* other) {
if (other != this) {
std::swap(cellid_, other->cellid_);
std::swap(cell_, other->cell_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata CellMapArchive_CellMapEntry::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = CellMapArchive_CellMapEntry_descriptor_;
metadata.reflection = CellMapArchive_CellMapEntry_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int CellMapArchive::kCapacityFieldNumber;
const int CellMapArchive::kCountFieldNumber;
const int CellMapArchive::kCellMapEntryFieldNumber;
const int CellMapArchive::kMayModifyFormulasInCellsFieldNumber;
const int CellMapArchive::kMayModifyValuesReferencedByFormulasFieldNumber;
const int CellMapArchive::kAppliesToHiddenFieldNumber;
#endif // !_MSC_VER
CellMapArchive::CellMapArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void CellMapArchive::InitAsDefaultInstance() {
}
CellMapArchive::CellMapArchive(const CellMapArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void CellMapArchive::SharedCtor() {
_cached_size_ = 0;
capacity_ = 0u;
count_ = 0u;
may_modify_formulas_in_cells_ = true;
may_modify_values_referenced_by_formulas_ = true;
applies_to_hidden_ = false;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
CellMapArchive::~CellMapArchive() {
SharedDtor();
}
void CellMapArchive::SharedDtor() {
if (this != default_instance_) {
}
}
void CellMapArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CellMapArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return CellMapArchive_descriptor_;
}
const CellMapArchive& CellMapArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
CellMapArchive* CellMapArchive::default_instance_ = NULL;
CellMapArchive* CellMapArchive::New() const {
return new CellMapArchive;
}
void CellMapArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
capacity_ = 0u;
count_ = 0u;
may_modify_formulas_in_cells_ = true;
may_modify_values_referenced_by_formulas_ = true;
applies_to_hidden_ = false;
}
cellmapentry_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool CellMapArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 capacity = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &capacity_)));
set_has_capacity();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_count;
break;
}
// required uint32 count = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_count:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &count_)));
set_has_count();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_cellMapEntry;
break;
}
// repeated .TST.CellMapArchive.CellMapEntry cellMapEntry = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cellMapEntry:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_cellmapentry()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_cellMapEntry;
if (input->ExpectTag(32)) goto parse_may_modify_formulas_in_cells;
break;
}
// optional bool may_modify_formulas_in_cells = 4 [default = true];
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_may_modify_formulas_in_cells:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &may_modify_formulas_in_cells_)));
set_has_may_modify_formulas_in_cells();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_may_modify_values_referenced_by_formulas;
break;
}
// optional bool may_modify_values_referenced_by_formulas = 5 [default = true];
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_may_modify_values_referenced_by_formulas:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &may_modify_values_referenced_by_formulas_)));
set_has_may_modify_values_referenced_by_formulas();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(48)) goto parse_applies_to_hidden;
break;
}
// optional bool applies_to_hidden = 6 [default = false];
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_applies_to_hidden:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &applies_to_hidden_)));
set_has_applies_to_hidden();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void CellMapArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 capacity = 1;
if (has_capacity()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->capacity(), output);
}
// required uint32 count = 2;
if (has_count()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->count(), output);
}
// repeated .TST.CellMapArchive.CellMapEntry cellMapEntry = 3;
for (int i = 0; i < this->cellmapentry_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->cellmapentry(i), output);
}
// optional bool may_modify_formulas_in_cells = 4 [default = true];
if (has_may_modify_formulas_in_cells()) {
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->may_modify_formulas_in_cells(), output);
}
// optional bool may_modify_values_referenced_by_formulas = 5 [default = true];
if (has_may_modify_values_referenced_by_formulas()) {
::google::protobuf::internal::WireFormatLite::WriteBool(5, this->may_modify_values_referenced_by_formulas(), output);
}
// optional bool applies_to_hidden = 6 [default = false];
if (has_applies_to_hidden()) {
::google::protobuf::internal::WireFormatLite::WriteBool(6, this->applies_to_hidden(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* CellMapArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 capacity = 1;
if (has_capacity()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->capacity(), target);
}
// required uint32 count = 2;
if (has_count()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->count(), target);
}
// repeated .TST.CellMapArchive.CellMapEntry cellMapEntry = 3;
for (int i = 0; i < this->cellmapentry_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->cellmapentry(i), target);
}
// optional bool may_modify_formulas_in_cells = 4 [default = true];
if (has_may_modify_formulas_in_cells()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->may_modify_formulas_in_cells(), target);
}
// optional bool may_modify_values_referenced_by_formulas = 5 [default = true];
if (has_may_modify_values_referenced_by_formulas()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->may_modify_values_referenced_by_formulas(), target);
}
// optional bool applies_to_hidden = 6 [default = false];
if (has_applies_to_hidden()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->applies_to_hidden(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int CellMapArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 capacity = 1;
if (has_capacity()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->capacity());
}
// required uint32 count = 2;
if (has_count()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->count());
}
// optional bool may_modify_formulas_in_cells = 4 [default = true];
if (has_may_modify_formulas_in_cells()) {
total_size += 1 + 1;
}
// optional bool may_modify_values_referenced_by_formulas = 5 [default = true];
if (has_may_modify_values_referenced_by_formulas()) {
total_size += 1 + 1;
}
// optional bool applies_to_hidden = 6 [default = false];
if (has_applies_to_hidden()) {
total_size += 1 + 1;
}
}
// repeated .TST.CellMapArchive.CellMapEntry cellMapEntry = 3;
total_size += 1 * this->cellmapentry_size();
for (int i = 0; i < this->cellmapentry_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cellmapentry(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void CellMapArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const CellMapArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const CellMapArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void CellMapArchive::MergeFrom(const CellMapArchive& from) {
GOOGLE_CHECK_NE(&from, this);
cellmapentry_.MergeFrom(from.cellmapentry_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_capacity()) {
set_capacity(from.capacity());
}
if (from.has_count()) {
set_count(from.count());
}
if (from.has_may_modify_formulas_in_cells()) {
set_may_modify_formulas_in_cells(from.may_modify_formulas_in_cells());
}
if (from.has_may_modify_values_referenced_by_formulas()) {
set_may_modify_values_referenced_by_formulas(from.may_modify_values_referenced_by_formulas());
}
if (from.has_applies_to_hidden()) {
set_applies_to_hidden(from.applies_to_hidden());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CellMapArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CellMapArchive::CopyFrom(const CellMapArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CellMapArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
for (int i = 0; i < cellmapentry_size(); i++) {
if (!this->cellmapentry(i).IsInitialized()) return false;
}
return true;
}
void CellMapArchive::Swap(CellMapArchive* other) {
if (other != this) {
std::swap(capacity_, other->capacity_);
std::swap(count_, other->count_);
cellmapentry_.Swap(&other->cellmapentry_);
std::swap(may_modify_formulas_in_cells_, other->may_modify_formulas_in_cells_);
std::swap(may_modify_values_referenced_by_formulas_, other->may_modify_values_referenced_by_formulas_);
std::swap(applies_to_hidden_, other->applies_to_hidden_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata CellMapArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = CellMapArchive_descriptor_;
metadata.reflection = CellMapArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int DoubleStyleMapArchive_DoubleStyleMapEntryArchive::kCellIdFieldNumber;
const int DoubleStyleMapArchive_DoubleStyleMapEntryArchive::kOldStyleFieldNumber;
const int DoubleStyleMapArchive_DoubleStyleMapEntryArchive::kNewStyleFieldNumber;
#endif // !_MSC_VER
DoubleStyleMapArchive_DoubleStyleMapEntryArchive::DoubleStyleMapArchive_DoubleStyleMapEntryArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::InitAsDefaultInstance() {
cell_id_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
old_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
new_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
DoubleStyleMapArchive_DoubleStyleMapEntryArchive::DoubleStyleMapArchive_DoubleStyleMapEntryArchive(const DoubleStyleMapArchive_DoubleStyleMapEntryArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::SharedCtor() {
_cached_size_ = 0;
cell_id_ = NULL;
old_style_ = NULL;
new_style_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
DoubleStyleMapArchive_DoubleStyleMapEntryArchive::~DoubleStyleMapArchive_DoubleStyleMapEntryArchive() {
SharedDtor();
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::SharedDtor() {
if (this != default_instance_) {
delete cell_id_;
delete old_style_;
delete new_style_;
}
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DoubleStyleMapArchive_DoubleStyleMapEntryArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return DoubleStyleMapArchive_DoubleStyleMapEntryArchive_descriptor_;
}
const DoubleStyleMapArchive_DoubleStyleMapEntryArchive& DoubleStyleMapArchive_DoubleStyleMapEntryArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
DoubleStyleMapArchive_DoubleStyleMapEntryArchive* DoubleStyleMapArchive_DoubleStyleMapEntryArchive::default_instance_ = NULL;
DoubleStyleMapArchive_DoubleStyleMapEntryArchive* DoubleStyleMapArchive_DoubleStyleMapEntryArchive::New() const {
return new DoubleStyleMapArchive_DoubleStyleMapEntryArchive;
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_cell_id()) {
if (cell_id_ != NULL) cell_id_->::TST::CellID::Clear();
}
if (has_old_style()) {
if (old_style_ != NULL) old_style_->::TSP::Reference::Clear();
}
if (has_new_style()) {
if (new_style_ != NULL) new_style_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool DoubleStyleMapArchive_DoubleStyleMapEntryArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.CellID cell_id = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cell_id()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_old_style;
break;
}
// required .TSP.Reference old_style = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_old_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_old_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_new_style;
break;
}
// required .TSP.Reference new_style = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_new_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_new_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.CellID cell_id = 1;
if (has_cell_id()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->cell_id(), output);
}
// required .TSP.Reference old_style = 2;
if (has_old_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->old_style(), output);
}
// required .TSP.Reference new_style = 3;
if (has_new_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->new_style(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* DoubleStyleMapArchive_DoubleStyleMapEntryArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.CellID cell_id = 1;
if (has_cell_id()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->cell_id(), target);
}
// required .TSP.Reference old_style = 2;
if (has_old_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->old_style(), target);
}
// required .TSP.Reference new_style = 3;
if (has_new_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->new_style(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int DoubleStyleMapArchive_DoubleStyleMapEntryArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.CellID cell_id = 1;
if (has_cell_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell_id());
}
// required .TSP.Reference old_style = 2;
if (has_old_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->old_style());
}
// required .TSP.Reference new_style = 3;
if (has_new_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->new_style());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const DoubleStyleMapArchive_DoubleStyleMapEntryArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const DoubleStyleMapArchive_DoubleStyleMapEntryArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::MergeFrom(const DoubleStyleMapArchive_DoubleStyleMapEntryArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_cell_id()) {
mutable_cell_id()->::TST::CellID::MergeFrom(from.cell_id());
}
if (from.has_old_style()) {
mutable_old_style()->::TSP::Reference::MergeFrom(from.old_style());
}
if (from.has_new_style()) {
mutable_new_style()->::TSP::Reference::MergeFrom(from.new_style());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::CopyFrom(const DoubleStyleMapArchive_DoubleStyleMapEntryArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DoubleStyleMapArchive_DoubleStyleMapEntryArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
if (has_cell_id()) {
if (!this->cell_id().IsInitialized()) return false;
}
if (has_old_style()) {
if (!this->old_style().IsInitialized()) return false;
}
if (has_new_style()) {
if (!this->new_style().IsInitialized()) return false;
}
return true;
}
void DoubleStyleMapArchive_DoubleStyleMapEntryArchive::Swap(DoubleStyleMapArchive_DoubleStyleMapEntryArchive* other) {
if (other != this) {
std::swap(cell_id_, other->cell_id_);
std::swap(old_style_, other->old_style_);
std::swap(new_style_, other->new_style_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata DoubleStyleMapArchive_DoubleStyleMapEntryArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = DoubleStyleMapArchive_DoubleStyleMapEntryArchive_descriptor_;
metadata.reflection = DoubleStyleMapArchive_DoubleStyleMapEntryArchive_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int DoubleStyleMapArchive::kCapacityFieldNumber;
const int DoubleStyleMapArchive::kCountFieldNumber;
const int DoubleStyleMapArchive::kCellMapEntryFieldNumber;
#endif // !_MSC_VER
DoubleStyleMapArchive::DoubleStyleMapArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void DoubleStyleMapArchive::InitAsDefaultInstance() {
}
DoubleStyleMapArchive::DoubleStyleMapArchive(const DoubleStyleMapArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void DoubleStyleMapArchive::SharedCtor() {
_cached_size_ = 0;
capacity_ = 0u;
count_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
DoubleStyleMapArchive::~DoubleStyleMapArchive() {
SharedDtor();
}
void DoubleStyleMapArchive::SharedDtor() {
if (this != default_instance_) {
}
}
void DoubleStyleMapArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DoubleStyleMapArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return DoubleStyleMapArchive_descriptor_;
}
const DoubleStyleMapArchive& DoubleStyleMapArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
DoubleStyleMapArchive* DoubleStyleMapArchive::default_instance_ = NULL;
DoubleStyleMapArchive* DoubleStyleMapArchive::New() const {
return new DoubleStyleMapArchive;
}
void DoubleStyleMapArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
capacity_ = 0u;
count_ = 0u;
}
cell_map_entry_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool DoubleStyleMapArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 capacity = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &capacity_)));
set_has_capacity();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_count;
break;
}
// required uint32 count = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_count:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &count_)));
set_has_count();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_cell_map_entry;
break;
}
// repeated .TST.DoubleStyleMapArchive.DoubleStyleMapEntryArchive cell_map_entry = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cell_map_entry:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_cell_map_entry()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_cell_map_entry;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void DoubleStyleMapArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 capacity = 1;
if (has_capacity()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->capacity(), output);
}
// required uint32 count = 2;
if (has_count()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->count(), output);
}
// repeated .TST.DoubleStyleMapArchive.DoubleStyleMapEntryArchive cell_map_entry = 3;
for (int i = 0; i < this->cell_map_entry_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->cell_map_entry(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* DoubleStyleMapArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 capacity = 1;
if (has_capacity()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->capacity(), target);
}
// required uint32 count = 2;
if (has_count()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->count(), target);
}
// repeated .TST.DoubleStyleMapArchive.DoubleStyleMapEntryArchive cell_map_entry = 3;
for (int i = 0; i < this->cell_map_entry_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->cell_map_entry(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int DoubleStyleMapArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 capacity = 1;
if (has_capacity()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->capacity());
}
// required uint32 count = 2;
if (has_count()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->count());
}
}
// repeated .TST.DoubleStyleMapArchive.DoubleStyleMapEntryArchive cell_map_entry = 3;
total_size += 1 * this->cell_map_entry_size();
for (int i = 0; i < this->cell_map_entry_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell_map_entry(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DoubleStyleMapArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const DoubleStyleMapArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const DoubleStyleMapArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void DoubleStyleMapArchive::MergeFrom(const DoubleStyleMapArchive& from) {
GOOGLE_CHECK_NE(&from, this);
cell_map_entry_.MergeFrom(from.cell_map_entry_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_capacity()) {
set_capacity(from.capacity());
}
if (from.has_count()) {
set_count(from.count());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DoubleStyleMapArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DoubleStyleMapArchive::CopyFrom(const DoubleStyleMapArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DoubleStyleMapArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
for (int i = 0; i < cell_map_entry_size(); i++) {
if (!this->cell_map_entry(i).IsInitialized()) return false;
}
return true;
}
void DoubleStyleMapArchive::Swap(DoubleStyleMapArchive* other) {
if (other != this) {
std::swap(capacity_, other->capacity_);
std::swap(count_, other->count_);
cell_map_entry_.Swap(&other->cell_map_entry_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata DoubleStyleMapArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = DoubleStyleMapArchive_descriptor_;
metadata.reflection = DoubleStyleMapArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int StyleTableMapArchive_StyleTableMapEntryArchive::kKeyFieldNumber;
const int StyleTableMapArchive_StyleTableMapEntryArchive::kOldStyleFieldNumber;
const int StyleTableMapArchive_StyleTableMapEntryArchive::kNewStyleFieldNumber;
#endif // !_MSC_VER
StyleTableMapArchive_StyleTableMapEntryArchive::StyleTableMapArchive_StyleTableMapEntryArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void StyleTableMapArchive_StyleTableMapEntryArchive::InitAsDefaultInstance() {
old_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
new_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
StyleTableMapArchive_StyleTableMapEntryArchive::StyleTableMapArchive_StyleTableMapEntryArchive(const StyleTableMapArchive_StyleTableMapEntryArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void StyleTableMapArchive_StyleTableMapEntryArchive::SharedCtor() {
_cached_size_ = 0;
key_ = 0u;
old_style_ = NULL;
new_style_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
StyleTableMapArchive_StyleTableMapEntryArchive::~StyleTableMapArchive_StyleTableMapEntryArchive() {
SharedDtor();
}
void StyleTableMapArchive_StyleTableMapEntryArchive::SharedDtor() {
if (this != default_instance_) {
delete old_style_;
delete new_style_;
}
}
void StyleTableMapArchive_StyleTableMapEntryArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* StyleTableMapArchive_StyleTableMapEntryArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return StyleTableMapArchive_StyleTableMapEntryArchive_descriptor_;
}
const StyleTableMapArchive_StyleTableMapEntryArchive& StyleTableMapArchive_StyleTableMapEntryArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
StyleTableMapArchive_StyleTableMapEntryArchive* StyleTableMapArchive_StyleTableMapEntryArchive::default_instance_ = NULL;
StyleTableMapArchive_StyleTableMapEntryArchive* StyleTableMapArchive_StyleTableMapEntryArchive::New() const {
return new StyleTableMapArchive_StyleTableMapEntryArchive;
}
void StyleTableMapArchive_StyleTableMapEntryArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
key_ = 0u;
if (has_old_style()) {
if (old_style_ != NULL) old_style_->::TSP::Reference::Clear();
}
if (has_new_style()) {
if (new_style_ != NULL) new_style_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool StyleTableMapArchive_StyleTableMapEntryArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 key = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &key_)));
set_has_key();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_old_style;
break;
}
// required .TSP.Reference old_style = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_old_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_old_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_new_style;
break;
}
// required .TSP.Reference new_style = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_new_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_new_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void StyleTableMapArchive_StyleTableMapEntryArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 key = 1;
if (has_key()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->key(), output);
}
// required .TSP.Reference old_style = 2;
if (has_old_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->old_style(), output);
}
// required .TSP.Reference new_style = 3;
if (has_new_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->new_style(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* StyleTableMapArchive_StyleTableMapEntryArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 key = 1;
if (has_key()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->key(), target);
}
// required .TSP.Reference old_style = 2;
if (has_old_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->old_style(), target);
}
// required .TSP.Reference new_style = 3;
if (has_new_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->new_style(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int StyleTableMapArchive_StyleTableMapEntryArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 key = 1;
if (has_key()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->key());
}
// required .TSP.Reference old_style = 2;
if (has_old_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->old_style());
}
// required .TSP.Reference new_style = 3;
if (has_new_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->new_style());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void StyleTableMapArchive_StyleTableMapEntryArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const StyleTableMapArchive_StyleTableMapEntryArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const StyleTableMapArchive_StyleTableMapEntryArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void StyleTableMapArchive_StyleTableMapEntryArchive::MergeFrom(const StyleTableMapArchive_StyleTableMapEntryArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_key()) {
set_key(from.key());
}
if (from.has_old_style()) {
mutable_old_style()->::TSP::Reference::MergeFrom(from.old_style());
}
if (from.has_new_style()) {
mutable_new_style()->::TSP::Reference::MergeFrom(from.new_style());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void StyleTableMapArchive_StyleTableMapEntryArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void StyleTableMapArchive_StyleTableMapEntryArchive::CopyFrom(const StyleTableMapArchive_StyleTableMapEntryArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool StyleTableMapArchive_StyleTableMapEntryArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
if (has_old_style()) {
if (!this->old_style().IsInitialized()) return false;
}
if (has_new_style()) {
if (!this->new_style().IsInitialized()) return false;
}
return true;
}
void StyleTableMapArchive_StyleTableMapEntryArchive::Swap(StyleTableMapArchive_StyleTableMapEntryArchive* other) {
if (other != this) {
std::swap(key_, other->key_);
std::swap(old_style_, other->old_style_);
std::swap(new_style_, other->new_style_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata StyleTableMapArchive_StyleTableMapEntryArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = StyleTableMapArchive_StyleTableMapEntryArchive_descriptor_;
metadata.reflection = StyleTableMapArchive_StyleTableMapEntryArchive_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int StyleTableMapArchive::kCapacityFieldNumber;
const int StyleTableMapArchive::kCountFieldNumber;
const int StyleTableMapArchive::kMapEntryFieldNumber;
#endif // !_MSC_VER
StyleTableMapArchive::StyleTableMapArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void StyleTableMapArchive::InitAsDefaultInstance() {
}
StyleTableMapArchive::StyleTableMapArchive(const StyleTableMapArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void StyleTableMapArchive::SharedCtor() {
_cached_size_ = 0;
capacity_ = 0u;
count_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
StyleTableMapArchive::~StyleTableMapArchive() {
SharedDtor();
}
void StyleTableMapArchive::SharedDtor() {
if (this != default_instance_) {
}
}
void StyleTableMapArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* StyleTableMapArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return StyleTableMapArchive_descriptor_;
}
const StyleTableMapArchive& StyleTableMapArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
StyleTableMapArchive* StyleTableMapArchive::default_instance_ = NULL;
StyleTableMapArchive* StyleTableMapArchive::New() const {
return new StyleTableMapArchive;
}
void StyleTableMapArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
capacity_ = 0u;
count_ = 0u;
}
map_entry_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool StyleTableMapArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 capacity = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &capacity_)));
set_has_capacity();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_count;
break;
}
// required uint32 count = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_count:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &count_)));
set_has_count();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_map_entry;
break;
}
// repeated .TST.StyleTableMapArchive.StyleTableMapEntryArchive map_entry = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_map_entry:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_map_entry()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_map_entry;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void StyleTableMapArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 capacity = 1;
if (has_capacity()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->capacity(), output);
}
// required uint32 count = 2;
if (has_count()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->count(), output);
}
// repeated .TST.StyleTableMapArchive.StyleTableMapEntryArchive map_entry = 3;
for (int i = 0; i < this->map_entry_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->map_entry(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* StyleTableMapArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 capacity = 1;
if (has_capacity()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->capacity(), target);
}
// required uint32 count = 2;
if (has_count()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->count(), target);
}
// repeated .TST.StyleTableMapArchive.StyleTableMapEntryArchive map_entry = 3;
for (int i = 0; i < this->map_entry_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->map_entry(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int StyleTableMapArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 capacity = 1;
if (has_capacity()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->capacity());
}
// required uint32 count = 2;
if (has_count()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->count());
}
}
// repeated .TST.StyleTableMapArchive.StyleTableMapEntryArchive map_entry = 3;
total_size += 1 * this->map_entry_size();
for (int i = 0; i < this->map_entry_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->map_entry(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void StyleTableMapArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const StyleTableMapArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const StyleTableMapArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void StyleTableMapArchive::MergeFrom(const StyleTableMapArchive& from) {
GOOGLE_CHECK_NE(&from, this);
map_entry_.MergeFrom(from.map_entry_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_capacity()) {
set_capacity(from.capacity());
}
if (from.has_count()) {
set_count(from.count());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void StyleTableMapArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void StyleTableMapArchive::CopyFrom(const StyleTableMapArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool StyleTableMapArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
for (int i = 0; i < map_entry_size(); i++) {
if (!this->map_entry(i).IsInitialized()) return false;
}
return true;
}
void StyleTableMapArchive::Swap(StyleTableMapArchive* other) {
if (other != this) {
std::swap(capacity_, other->capacity_);
std::swap(count_, other->count_);
map_entry_.Swap(&other->map_entry_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata StyleTableMapArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = StyleTableMapArchive_descriptor_;
metadata.reflection = StyleTableMapArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int SelectionArchive::kTableModelFieldNumber;
const int SelectionArchive::kSelectionTypeFieldNumber;
const int SelectionArchive::kAnchorCellFieldNumber;
const int SelectionArchive::kCellRangesFieldNumber;
const int SelectionArchive::kBaseRangesFieldNumber;
const int SelectionArchive::kCursorCellFieldNumber;
#endif // !_MSC_VER
SelectionArchive::SelectionArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void SelectionArchive::InitAsDefaultInstance() {
tablemodel_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
anchor_cell_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
cursor_cell_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
}
SelectionArchive::SelectionArchive(const SelectionArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void SelectionArchive::SharedCtor() {
_cached_size_ = 0;
tablemodel_ = NULL;
selection_type_ = 0;
anchor_cell_ = NULL;
cursor_cell_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
SelectionArchive::~SelectionArchive() {
SharedDtor();
}
void SelectionArchive::SharedDtor() {
if (this != default_instance_) {
delete tablemodel_;
delete anchor_cell_;
delete cursor_cell_;
}
}
void SelectionArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* SelectionArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return SelectionArchive_descriptor_;
}
const SelectionArchive& SelectionArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
SelectionArchive* SelectionArchive::default_instance_ = NULL;
SelectionArchive* SelectionArchive::New() const {
return new SelectionArchive;
}
void SelectionArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_tablemodel()) {
if (tablemodel_ != NULL) tablemodel_->::TSP::Reference::Clear();
}
selection_type_ = 0;
if (has_anchor_cell()) {
if (anchor_cell_ != NULL) anchor_cell_->::TST::CellID::Clear();
}
if (has_cursor_cell()) {
if (cursor_cell_ != NULL) cursor_cell_->::TST::CellID::Clear();
}
}
cell_ranges_.Clear();
base_ranges_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool SelectionArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .TSP.Reference tableModel = 1 [deprecated = true];
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_tablemodel()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_selection_type;
break;
}
// required .TST.SelectionTypeArchive selection_type = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_selection_type:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::TST::SelectionTypeArchive_IsValid(value)) {
set_selection_type(static_cast< ::TST::SelectionTypeArchive >(value));
} else {
mutable_unknown_fields()->AddVarint(4, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_anchor_cell;
break;
}
// optional .TST.CellID anchor_cell = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_anchor_cell:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_anchor_cell()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_cell_ranges;
break;
}
// repeated .TST.CellRange cell_ranges = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cell_ranges:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_cell_ranges()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_cell_ranges;
if (input->ExpectTag(58)) goto parse_base_ranges;
break;
}
// repeated .TST.CellRange base_ranges = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_base_ranges:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_base_ranges()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(58)) goto parse_base_ranges;
if (input->ExpectTag(66)) goto parse_cursor_cell;
break;
}
// optional .TST.CellID cursor_cell = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cursor_cell:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cursor_cell()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void SelectionArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .TSP.Reference tableModel = 1 [deprecated = true];
if (has_tablemodel()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->tablemodel(), output);
}
// required .TST.SelectionTypeArchive selection_type = 4;
if (has_selection_type()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
4, this->selection_type(), output);
}
// optional .TST.CellID anchor_cell = 5;
if (has_anchor_cell()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->anchor_cell(), output);
}
// repeated .TST.CellRange cell_ranges = 6;
for (int i = 0; i < this->cell_ranges_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, this->cell_ranges(i), output);
}
// repeated .TST.CellRange base_ranges = 7;
for (int i = 0; i < this->base_ranges_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7, this->base_ranges(i), output);
}
// optional .TST.CellID cursor_cell = 8;
if (has_cursor_cell()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8, this->cursor_cell(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* SelectionArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .TSP.Reference tableModel = 1 [deprecated = true];
if (has_tablemodel()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->tablemodel(), target);
}
// required .TST.SelectionTypeArchive selection_type = 4;
if (has_selection_type()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4, this->selection_type(), target);
}
// optional .TST.CellID anchor_cell = 5;
if (has_anchor_cell()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->anchor_cell(), target);
}
// repeated .TST.CellRange cell_ranges = 6;
for (int i = 0; i < this->cell_ranges_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
6, this->cell_ranges(i), target);
}
// repeated .TST.CellRange base_ranges = 7;
for (int i = 0; i < this->base_ranges_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
7, this->base_ranges(i), target);
}
// optional .TST.CellID cursor_cell = 8;
if (has_cursor_cell()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
8, this->cursor_cell(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int SelectionArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .TSP.Reference tableModel = 1 [deprecated = true];
if (has_tablemodel()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->tablemodel());
}
// required .TST.SelectionTypeArchive selection_type = 4;
if (has_selection_type()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->selection_type());
}
// optional .TST.CellID anchor_cell = 5;
if (has_anchor_cell()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->anchor_cell());
}
// optional .TST.CellID cursor_cell = 8;
if (has_cursor_cell()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cursor_cell());
}
}
// repeated .TST.CellRange cell_ranges = 6;
total_size += 1 * this->cell_ranges_size();
for (int i = 0; i < this->cell_ranges_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell_ranges(i));
}
// repeated .TST.CellRange base_ranges = 7;
total_size += 1 * this->base_ranges_size();
for (int i = 0; i < this->base_ranges_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->base_ranges(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void SelectionArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const SelectionArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const SelectionArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void SelectionArchive::MergeFrom(const SelectionArchive& from) {
GOOGLE_CHECK_NE(&from, this);
cell_ranges_.MergeFrom(from.cell_ranges_);
base_ranges_.MergeFrom(from.base_ranges_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_tablemodel()) {
mutable_tablemodel()->::TSP::Reference::MergeFrom(from.tablemodel());
}
if (from.has_selection_type()) {
set_selection_type(from.selection_type());
}
if (from.has_anchor_cell()) {
mutable_anchor_cell()->::TST::CellID::MergeFrom(from.anchor_cell());
}
if (from.has_cursor_cell()) {
mutable_cursor_cell()->::TST::CellID::MergeFrom(from.cursor_cell());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void SelectionArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void SelectionArchive::CopyFrom(const SelectionArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool SelectionArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
if (has_tablemodel()) {
if (!this->tablemodel().IsInitialized()) return false;
}
if (has_anchor_cell()) {
if (!this->anchor_cell().IsInitialized()) return false;
}
for (int i = 0; i < cell_ranges_size(); i++) {
if (!this->cell_ranges(i).IsInitialized()) return false;
}
for (int i = 0; i < base_ranges_size(); i++) {
if (!this->base_ranges(i).IsInitialized()) return false;
}
if (has_cursor_cell()) {
if (!this->cursor_cell().IsInitialized()) return false;
}
return true;
}
void SelectionArchive::Swap(SelectionArchive* other) {
if (other != this) {
std::swap(tablemodel_, other->tablemodel_);
std::swap(selection_type_, other->selection_type_);
std::swap(anchor_cell_, other->anchor_cell_);
cell_ranges_.Swap(&other->cell_ranges_);
base_ranges_.Swap(&other->base_ranges_);
std::swap(cursor_cell_, other->cursor_cell_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata SelectionArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = SelectionArchive_descriptor_;
metadata.reflection = SelectionArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int FilterRuleArchive::kPredicateFieldNumber;
const int FilterRuleArchive::kDisabledFieldNumber;
#endif // !_MSC_VER
FilterRuleArchive::FilterRuleArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void FilterRuleArchive::InitAsDefaultInstance() {
predicate_ = const_cast< ::TST::FormulaPredicateArchive*>(&::TST::FormulaPredicateArchive::default_instance());
}
FilterRuleArchive::FilterRuleArchive(const FilterRuleArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void FilterRuleArchive::SharedCtor() {
_cached_size_ = 0;
predicate_ = NULL;
disabled_ = false;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
FilterRuleArchive::~FilterRuleArchive() {
SharedDtor();
}
void FilterRuleArchive::SharedDtor() {
if (this != default_instance_) {
delete predicate_;
}
}
void FilterRuleArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* FilterRuleArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return FilterRuleArchive_descriptor_;
}
const FilterRuleArchive& FilterRuleArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
FilterRuleArchive* FilterRuleArchive::default_instance_ = NULL;
FilterRuleArchive* FilterRuleArchive::New() const {
return new FilterRuleArchive;
}
void FilterRuleArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_predicate()) {
if (predicate_ != NULL) predicate_->::TST::FormulaPredicateArchive::Clear();
}
disabled_ = false;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool FilterRuleArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.FormulaPredicateArchive predicate = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_predicate()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_disabled;
break;
}
// optional bool disabled = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_disabled:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &disabled_)));
set_has_disabled();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void FilterRuleArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.FormulaPredicateArchive predicate = 1;
if (has_predicate()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->predicate(), output);
}
// optional bool disabled = 2;
if (has_disabled()) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->disabled(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* FilterRuleArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.FormulaPredicateArchive predicate = 1;
if (has_predicate()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->predicate(), target);
}
// optional bool disabled = 2;
if (has_disabled()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->disabled(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int FilterRuleArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.FormulaPredicateArchive predicate = 1;
if (has_predicate()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->predicate());
}
// optional bool disabled = 2;
if (has_disabled()) {
total_size += 1 + 1;
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void FilterRuleArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const FilterRuleArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const FilterRuleArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void FilterRuleArchive::MergeFrom(const FilterRuleArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_predicate()) {
mutable_predicate()->::TST::FormulaPredicateArchive::MergeFrom(from.predicate());
}
if (from.has_disabled()) {
set_disabled(from.disabled());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FilterRuleArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FilterRuleArchive::CopyFrom(const FilterRuleArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FilterRuleArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_predicate()) {
if (!this->predicate().IsInitialized()) return false;
}
return true;
}
void FilterRuleArchive::Swap(FilterRuleArchive* other) {
if (other != this) {
std::swap(predicate_, other->predicate_);
std::swap(disabled_, other->disabled_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata FilterRuleArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = FilterRuleArchive_descriptor_;
metadata.reflection = FilterRuleArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TableStyleArchive::kSuperFieldNumber;
const int TableStyleArchive::kOverrideCountFieldNumber;
const int TableStyleArchive::kTablePropertiesFieldNumber;
#endif // !_MSC_VER
TableStyleArchive::TableStyleArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void TableStyleArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TSS::StyleArchive*>(&::TSS::StyleArchive::default_instance());
table_properties_ = const_cast< ::TST::TableStylePropertiesArchive*>(&::TST::TableStylePropertiesArchive::default_instance());
}
TableStyleArchive::TableStyleArchive(const TableStyleArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TableStyleArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
override_count_ = 0u;
table_properties_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TableStyleArchive::~TableStyleArchive() {
SharedDtor();
}
void TableStyleArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
delete table_properties_;
}
}
void TableStyleArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TableStyleArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return TableStyleArchive_descriptor_;
}
const TableStyleArchive& TableStyleArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TableStyleArchive* TableStyleArchive::default_instance_ = NULL;
TableStyleArchive* TableStyleArchive::New() const {
return new TableStyleArchive;
}
void TableStyleArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TSS::StyleArchive::Clear();
}
override_count_ = 0u;
if (has_table_properties()) {
if (table_properties_ != NULL) table_properties_->::TST::TableStylePropertiesArchive::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TableStyleArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TSS.StyleArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(80)) goto parse_override_count;
break;
}
// optional uint32 override_count = 10 [default = 0];
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_override_count:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &override_count_)));
set_has_override_count();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(90)) goto parse_table_properties;
break;
}
// optional .TST.TableStylePropertiesArchive table_properties = 11;
case 11: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_table_properties:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_table_properties()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TableStyleArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TSS.StyleArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// optional uint32 override_count = 10 [default = 0];
if (has_override_count()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->override_count(), output);
}
// optional .TST.TableStylePropertiesArchive table_properties = 11;
if (has_table_properties()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, this->table_properties(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TableStyleArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TSS.StyleArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// optional uint32 override_count = 10 [default = 0];
if (has_override_count()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->override_count(), target);
}
// optional .TST.TableStylePropertiesArchive table_properties = 11;
if (has_table_properties()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
11, this->table_properties(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TableStyleArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TSS.StyleArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// optional uint32 override_count = 10 [default = 0];
if (has_override_count()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->override_count());
}
// optional .TST.TableStylePropertiesArchive table_properties = 11;
if (has_table_properties()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->table_properties());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TableStyleArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TableStyleArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const TableStyleArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TableStyleArchive::MergeFrom(const TableStyleArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TSS::StyleArchive::MergeFrom(from.super());
}
if (from.has_override_count()) {
set_override_count(from.override_count());
}
if (from.has_table_properties()) {
mutable_table_properties()->::TST::TableStylePropertiesArchive::MergeFrom(from.table_properties());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TableStyleArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TableStyleArchive::CopyFrom(const TableStyleArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableStyleArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
if (has_table_properties()) {
if (!this->table_properties().IsInitialized()) return false;
}
return true;
}
void TableStyleArchive::Swap(TableStyleArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(override_count_, other->override_count_);
std::swap(table_properties_, other->table_properties_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TableStyleArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TableStyleArchive_descriptor_;
metadata.reflection = TableStyleArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int CellStyleArchive::kSuperFieldNumber;
const int CellStyleArchive::kOverrideCountFieldNumber;
const int CellStyleArchive::kCellPropertiesFieldNumber;
#endif // !_MSC_VER
CellStyleArchive::CellStyleArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void CellStyleArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TSS::StyleArchive*>(&::TSS::StyleArchive::default_instance());
cell_properties_ = const_cast< ::TST::CellStylePropertiesArchive*>(&::TST::CellStylePropertiesArchive::default_instance());
}
CellStyleArchive::CellStyleArchive(const CellStyleArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void CellStyleArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
override_count_ = 0u;
cell_properties_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
CellStyleArchive::~CellStyleArchive() {
SharedDtor();
}
void CellStyleArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
delete cell_properties_;
}
}
void CellStyleArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CellStyleArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return CellStyleArchive_descriptor_;
}
const CellStyleArchive& CellStyleArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
CellStyleArchive* CellStyleArchive::default_instance_ = NULL;
CellStyleArchive* CellStyleArchive::New() const {
return new CellStyleArchive;
}
void CellStyleArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TSS::StyleArchive::Clear();
}
override_count_ = 0u;
if (has_cell_properties()) {
if (cell_properties_ != NULL) cell_properties_->::TST::CellStylePropertiesArchive::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool CellStyleArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TSS.StyleArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(80)) goto parse_override_count;
break;
}
// optional uint32 override_count = 10 [default = 0];
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_override_count:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &override_count_)));
set_has_override_count();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(90)) goto parse_cell_properties;
break;
}
// optional .TST.CellStylePropertiesArchive cell_properties = 11;
case 11: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cell_properties:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cell_properties()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void CellStyleArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TSS.StyleArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// optional uint32 override_count = 10 [default = 0];
if (has_override_count()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->override_count(), output);
}
// optional .TST.CellStylePropertiesArchive cell_properties = 11;
if (has_cell_properties()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
11, this->cell_properties(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* CellStyleArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TSS.StyleArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// optional uint32 override_count = 10 [default = 0];
if (has_override_count()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->override_count(), target);
}
// optional .TST.CellStylePropertiesArchive cell_properties = 11;
if (has_cell_properties()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
11, this->cell_properties(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int CellStyleArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TSS.StyleArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// optional uint32 override_count = 10 [default = 0];
if (has_override_count()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->override_count());
}
// optional .TST.CellStylePropertiesArchive cell_properties = 11;
if (has_cell_properties()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell_properties());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void CellStyleArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const CellStyleArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const CellStyleArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void CellStyleArchive::MergeFrom(const CellStyleArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TSS::StyleArchive::MergeFrom(from.super());
}
if (from.has_override_count()) {
set_override_count(from.override_count());
}
if (from.has_cell_properties()) {
mutable_cell_properties()->::TST::CellStylePropertiesArchive::MergeFrom(from.cell_properties());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CellStyleArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CellStyleArchive::CopyFrom(const CellStyleArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CellStyleArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
if (has_cell_properties()) {
if (!this->cell_properties().IsInitialized()) return false;
}
return true;
}
void CellStyleArchive::Swap(CellStyleArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(override_count_, other->override_count_);
std::swap(cell_properties_, other->cell_properties_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata CellStyleArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = CellStyleArchive_descriptor_;
metadata.reflection = CellStyleArchive_reflection_;
return metadata;
}
// ===================================================================
const ::google::protobuf::EnumDescriptor* FormulaPredicateArchive_FormulaPredicateType_descriptor() {
protobuf_AssignDescriptorsOnce();
return FormulaPredicateArchive_FormulaPredicateType_descriptor_;
}
bool FormulaPredicateArchive_FormulaPredicateType_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
case 30:
case 31:
case 32:
case 33:
case 34:
case 35:
case 36:
case 37:
case 38:
case 39:
case 40:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
case 47:
case 48:
case 49:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::PredNone;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::TextStartsWith;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::TextEndsWith;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::TextContains;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::TextDoesNotContain;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueEqual;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueNotEqual;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueGreaterThan;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueGreaterThanOrEqual;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueLessThan;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueLessThanOrEqual;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueAboveAverage;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueBelowAverage;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueBetween;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::Formula;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::Duplicates;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::Uniques;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateIsToday;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateIsYesterday;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateIsTomorrow;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateIsTheDate;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateBeforeTheDate;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateAfterTheDate;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateIsInTheRange;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateInTheNext;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateInTheLast;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateIsExactly;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateBeforeRelative;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateAfterRelative;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateBetweenRelative;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueTop;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueBottom;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::ValueNotBetween;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DateInThis;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::IsBlank;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::IsNotBlank;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::TextIs;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::TextIsNot;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationEqual;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationNotEqual;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationGreaterThan;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationGreaterThanOrEqual;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationLessThan;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationLessThanOrEqual;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationBetween;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationNotBetween;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationAboveAverage;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationBelowAverage;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationTop;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::DurationBottom;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::FormulaPredicateType_MIN;
const FormulaPredicateArchive_FormulaPredicateType FormulaPredicateArchive::FormulaPredicateType_MAX;
const int FormulaPredicateArchive::FormulaPredicateType_ARRAYSIZE;
#endif // _MSC_VER
const ::google::protobuf::EnumDescriptor* FormulaPredicateArchive_QualifierType_descriptor() {
protobuf_AssignDescriptorsOnce();
return FormulaPredicateArchive_QualifierType_descriptor_;
}
bool FormulaPredicateArchive_QualifierType_IsValid(int value) {
switch(value) {
case 0:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::QualNone;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::Days;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::Weeks;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::Months;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::Years;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::Ago;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::FromNow;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::Quarters;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::Percent;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::Values;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::QualifierType_MIN;
const FormulaPredicateArchive_QualifierType FormulaPredicateArchive::QualifierType_MAX;
const int FormulaPredicateArchive::QualifierType_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
const int FormulaPredicateArchive::kFormulaFieldNumber;
const int FormulaPredicateArchive::kPredicateTypeFieldNumber;
const int FormulaPredicateArchive::kQualifier1FieldNumber;
const int FormulaPredicateArchive::kQualifier2FieldNumber;
const int FormulaPredicateArchive::kParamIndex1FieldNumber;
const int FormulaPredicateArchive::kParamIndex2FieldNumber;
const int FormulaPredicateArchive::kParamIndex0FieldNumber;
#endif // !_MSC_VER
FormulaPredicateArchive::FormulaPredicateArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void FormulaPredicateArchive::InitAsDefaultInstance() {
formula_ = const_cast< ::TSCE::FormulaArchive*>(&::TSCE::FormulaArchive::default_instance());
}
FormulaPredicateArchive::FormulaPredicateArchive(const FormulaPredicateArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void FormulaPredicateArchive::SharedCtor() {
_cached_size_ = 0;
formula_ = NULL;
predicate_type_ = 0;
qualifier1_ = 0;
qualifier2_ = 0;
param_index1_ = 0;
param_index2_ = 0;
param_index0_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
FormulaPredicateArchive::~FormulaPredicateArchive() {
SharedDtor();
}
void FormulaPredicateArchive::SharedDtor() {
if (this != default_instance_) {
delete formula_;
}
}
void FormulaPredicateArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* FormulaPredicateArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return FormulaPredicateArchive_descriptor_;
}
const FormulaPredicateArchive& FormulaPredicateArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
FormulaPredicateArchive* FormulaPredicateArchive::default_instance_ = NULL;
FormulaPredicateArchive* FormulaPredicateArchive::New() const {
return new FormulaPredicateArchive;
}
void FormulaPredicateArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_formula()) {
if (formula_ != NULL) formula_->::TSCE::FormulaArchive::Clear();
}
predicate_type_ = 0;
qualifier1_ = 0;
qualifier2_ = 0;
param_index1_ = 0;
param_index2_ = 0;
param_index0_ = 0;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool FormulaPredicateArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TSCE.FormulaArchive formula = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_formula()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_predicate_type;
break;
}
// required .TST.FormulaPredicateArchive.FormulaPredicateType predicate_type = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_predicate_type:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::TST::FormulaPredicateArchive_FormulaPredicateType_IsValid(value)) {
set_predicate_type(static_cast< ::TST::FormulaPredicateArchive_FormulaPredicateType >(value));
} else {
mutable_unknown_fields()->AddVarint(2, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_qualifier1;
break;
}
// required .TST.FormulaPredicateArchive.QualifierType qualifier1 = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_qualifier1:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::TST::FormulaPredicateArchive_QualifierType_IsValid(value)) {
set_qualifier1(static_cast< ::TST::FormulaPredicateArchive_QualifierType >(value));
} else {
mutable_unknown_fields()->AddVarint(3, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_qualifier2;
break;
}
// required .TST.FormulaPredicateArchive.QualifierType qualifier2 = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_qualifier2:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::TST::FormulaPredicateArchive_QualifierType_IsValid(value)) {
set_qualifier2(static_cast< ::TST::FormulaPredicateArchive_QualifierType >(value));
} else {
mutable_unknown_fields()->AddVarint(4, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_param_index1;
break;
}
// required int32 param_index1 = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_param_index1:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, ¶m_index1_)));
set_has_param_index1();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(48)) goto parse_param_index2;
break;
}
// required int32 param_index2 = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_param_index2:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, ¶m_index2_)));
set_has_param_index2();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(56)) goto parse_param_index0;
break;
}
// required int32 param_index0 = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_param_index0:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, ¶m_index0_)));
set_has_param_index0();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void FormulaPredicateArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TSCE.FormulaArchive formula = 1;
if (has_formula()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->formula(), output);
}
// required .TST.FormulaPredicateArchive.FormulaPredicateType predicate_type = 2;
if (has_predicate_type()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->predicate_type(), output);
}
// required .TST.FormulaPredicateArchive.QualifierType qualifier1 = 3;
if (has_qualifier1()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->qualifier1(), output);
}
// required .TST.FormulaPredicateArchive.QualifierType qualifier2 = 4;
if (has_qualifier2()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
4, this->qualifier2(), output);
}
// required int32 param_index1 = 5;
if (has_param_index1()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->param_index1(), output);
}
// required int32 param_index2 = 6;
if (has_param_index2()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->param_index2(), output);
}
// required int32 param_index0 = 7;
if (has_param_index0()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->param_index0(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* FormulaPredicateArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TSCE.FormulaArchive formula = 1;
if (has_formula()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->formula(), target);
}
// required .TST.FormulaPredicateArchive.FormulaPredicateType predicate_type = 2;
if (has_predicate_type()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->predicate_type(), target);
}
// required .TST.FormulaPredicateArchive.QualifierType qualifier1 = 3;
if (has_qualifier1()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->qualifier1(), target);
}
// required .TST.FormulaPredicateArchive.QualifierType qualifier2 = 4;
if (has_qualifier2()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4, this->qualifier2(), target);
}
// required int32 param_index1 = 5;
if (has_param_index1()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->param_index1(), target);
}
// required int32 param_index2 = 6;
if (has_param_index2()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->param_index2(), target);
}
// required int32 param_index0 = 7;
if (has_param_index0()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->param_index0(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int FormulaPredicateArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TSCE.FormulaArchive formula = 1;
if (has_formula()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->formula());
}
// required .TST.FormulaPredicateArchive.FormulaPredicateType predicate_type = 2;
if (has_predicate_type()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->predicate_type());
}
// required .TST.FormulaPredicateArchive.QualifierType qualifier1 = 3;
if (has_qualifier1()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->qualifier1());
}
// required .TST.FormulaPredicateArchive.QualifierType qualifier2 = 4;
if (has_qualifier2()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->qualifier2());
}
// required int32 param_index1 = 5;
if (has_param_index1()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->param_index1());
}
// required int32 param_index2 = 6;
if (has_param_index2()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->param_index2());
}
// required int32 param_index0 = 7;
if (has_param_index0()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->param_index0());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void FormulaPredicateArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const FormulaPredicateArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const FormulaPredicateArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void FormulaPredicateArchive::MergeFrom(const FormulaPredicateArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_formula()) {
mutable_formula()->::TSCE::FormulaArchive::MergeFrom(from.formula());
}
if (from.has_predicate_type()) {
set_predicate_type(from.predicate_type());
}
if (from.has_qualifier1()) {
set_qualifier1(from.qualifier1());
}
if (from.has_qualifier2()) {
set_qualifier2(from.qualifier2());
}
if (from.has_param_index1()) {
set_param_index1(from.param_index1());
}
if (from.has_param_index2()) {
set_param_index2(from.param_index2());
}
if (from.has_param_index0()) {
set_param_index0(from.param_index0());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FormulaPredicateArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FormulaPredicateArchive::CopyFrom(const FormulaPredicateArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FormulaPredicateArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x0000007f) != 0x0000007f) return false;
if (has_formula()) {
if (!this->formula().IsInitialized()) return false;
}
return true;
}
void FormulaPredicateArchive::Swap(FormulaPredicateArchive* other) {
if (other != this) {
std::swap(formula_, other->formula_);
std::swap(predicate_type_, other->predicate_type_);
std::swap(qualifier1_, other->qualifier1_);
std::swap(qualifier2_, other->qualifier2_);
std::swap(param_index1_, other->param_index1_);
std::swap(param_index2_, other->param_index2_);
std::swap(param_index0_, other->param_index0_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata FormulaPredicateArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = FormulaPredicateArchive_descriptor_;
metadata.reflection = FormulaPredicateArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int ConditionalStyleSetArchive_ConditionalStyleRule::kPredicateFieldNumber;
const int ConditionalStyleSetArchive_ConditionalStyleRule::kCellStyleFieldNumber;
const int ConditionalStyleSetArchive_ConditionalStyleRule::kTextStyleFieldNumber;
#endif // !_MSC_VER
ConditionalStyleSetArchive_ConditionalStyleRule::ConditionalStyleSetArchive_ConditionalStyleRule()
: ::google::protobuf::Message() {
SharedCtor();
}
void ConditionalStyleSetArchive_ConditionalStyleRule::InitAsDefaultInstance() {
predicate_ = const_cast< ::TST::FormulaPredicateArchive*>(&::TST::FormulaPredicateArchive::default_instance());
cell_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
text_style_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
ConditionalStyleSetArchive_ConditionalStyleRule::ConditionalStyleSetArchive_ConditionalStyleRule(const ConditionalStyleSetArchive_ConditionalStyleRule& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ConditionalStyleSetArchive_ConditionalStyleRule::SharedCtor() {
_cached_size_ = 0;
predicate_ = NULL;
cell_style_ = NULL;
text_style_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ConditionalStyleSetArchive_ConditionalStyleRule::~ConditionalStyleSetArchive_ConditionalStyleRule() {
SharedDtor();
}
void ConditionalStyleSetArchive_ConditionalStyleRule::SharedDtor() {
if (this != default_instance_) {
delete predicate_;
delete cell_style_;
delete text_style_;
}
}
void ConditionalStyleSetArchive_ConditionalStyleRule::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ConditionalStyleSetArchive_ConditionalStyleRule::descriptor() {
protobuf_AssignDescriptorsOnce();
return ConditionalStyleSetArchive_ConditionalStyleRule_descriptor_;
}
const ConditionalStyleSetArchive_ConditionalStyleRule& ConditionalStyleSetArchive_ConditionalStyleRule::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
ConditionalStyleSetArchive_ConditionalStyleRule* ConditionalStyleSetArchive_ConditionalStyleRule::default_instance_ = NULL;
ConditionalStyleSetArchive_ConditionalStyleRule* ConditionalStyleSetArchive_ConditionalStyleRule::New() const {
return new ConditionalStyleSetArchive_ConditionalStyleRule;
}
void ConditionalStyleSetArchive_ConditionalStyleRule::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_predicate()) {
if (predicate_ != NULL) predicate_->::TST::FormulaPredicateArchive::Clear();
}
if (has_cell_style()) {
if (cell_style_ != NULL) cell_style_->::TSP::Reference::Clear();
}
if (has_text_style()) {
if (text_style_ != NULL) text_style_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ConditionalStyleSetArchive_ConditionalStyleRule::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.FormulaPredicateArchive predicate = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_predicate()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_cell_style;
break;
}
// required .TSP.Reference cell_style = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cell_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cell_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_text_style;
break;
}
// required .TSP.Reference text_style = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_text_style:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_text_style()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void ConditionalStyleSetArchive_ConditionalStyleRule::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.FormulaPredicateArchive predicate = 1;
if (has_predicate()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->predicate(), output);
}
// required .TSP.Reference cell_style = 2;
if (has_cell_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->cell_style(), output);
}
// required .TSP.Reference text_style = 3;
if (has_text_style()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->text_style(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ConditionalStyleSetArchive_ConditionalStyleRule::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.FormulaPredicateArchive predicate = 1;
if (has_predicate()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->predicate(), target);
}
// required .TSP.Reference cell_style = 2;
if (has_cell_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->cell_style(), target);
}
// required .TSP.Reference text_style = 3;
if (has_text_style()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->text_style(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ConditionalStyleSetArchive_ConditionalStyleRule::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.FormulaPredicateArchive predicate = 1;
if (has_predicate()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->predicate());
}
// required .TSP.Reference cell_style = 2;
if (has_cell_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell_style());
}
// required .TSP.Reference text_style = 3;
if (has_text_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->text_style());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ConditionalStyleSetArchive_ConditionalStyleRule::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ConditionalStyleSetArchive_ConditionalStyleRule* source =
::google::protobuf::internal::dynamic_cast_if_available<const ConditionalStyleSetArchive_ConditionalStyleRule*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ConditionalStyleSetArchive_ConditionalStyleRule::MergeFrom(const ConditionalStyleSetArchive_ConditionalStyleRule& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_predicate()) {
mutable_predicate()->::TST::FormulaPredicateArchive::MergeFrom(from.predicate());
}
if (from.has_cell_style()) {
mutable_cell_style()->::TSP::Reference::MergeFrom(from.cell_style());
}
if (from.has_text_style()) {
mutable_text_style()->::TSP::Reference::MergeFrom(from.text_style());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ConditionalStyleSetArchive_ConditionalStyleRule::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ConditionalStyleSetArchive_ConditionalStyleRule::CopyFrom(const ConditionalStyleSetArchive_ConditionalStyleRule& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ConditionalStyleSetArchive_ConditionalStyleRule::IsInitialized() const {
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
if (has_predicate()) {
if (!this->predicate().IsInitialized()) return false;
}
if (has_cell_style()) {
if (!this->cell_style().IsInitialized()) return false;
}
if (has_text_style()) {
if (!this->text_style().IsInitialized()) return false;
}
return true;
}
void ConditionalStyleSetArchive_ConditionalStyleRule::Swap(ConditionalStyleSetArchive_ConditionalStyleRule* other) {
if (other != this) {
std::swap(predicate_, other->predicate_);
std::swap(cell_style_, other->cell_style_);
std::swap(text_style_, other->text_style_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata ConditionalStyleSetArchive_ConditionalStyleRule::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ConditionalStyleSetArchive_ConditionalStyleRule_descriptor_;
metadata.reflection = ConditionalStyleSetArchive_ConditionalStyleRule_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int ConditionalStyleSetArchive::kRuleCountFieldNumber;
const int ConditionalStyleSetArchive::kRulesFieldNumber;
const int ConditionalStyleSetArchive::kCellIDFieldNumber;
#endif // !_MSC_VER
ConditionalStyleSetArchive::ConditionalStyleSetArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void ConditionalStyleSetArchive::InitAsDefaultInstance() {
cellid_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
}
ConditionalStyleSetArchive::ConditionalStyleSetArchive(const ConditionalStyleSetArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ConditionalStyleSetArchive::SharedCtor() {
_cached_size_ = 0;
rulecount_ = 0u;
cellid_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ConditionalStyleSetArchive::~ConditionalStyleSetArchive() {
SharedDtor();
}
void ConditionalStyleSetArchive::SharedDtor() {
if (this != default_instance_) {
delete cellid_;
}
}
void ConditionalStyleSetArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ConditionalStyleSetArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return ConditionalStyleSetArchive_descriptor_;
}
const ConditionalStyleSetArchive& ConditionalStyleSetArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
ConditionalStyleSetArchive* ConditionalStyleSetArchive::default_instance_ = NULL;
ConditionalStyleSetArchive* ConditionalStyleSetArchive::New() const {
return new ConditionalStyleSetArchive;
}
void ConditionalStyleSetArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
rulecount_ = 0u;
if (has_cellid()) {
if (cellid_ != NULL) cellid_->::TST::CellID::Clear();
}
}
rules_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ConditionalStyleSetArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 ruleCount = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &rulecount_)));
set_has_rulecount();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_rules;
break;
}
// repeated .TST.ConditionalStyleSetArchive.ConditionalStyleRule rules = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_rules:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_rules()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_rules;
if (input->ExpectTag(26)) goto parse_cellID;
break;
}
// optional .TST.CellID cellID = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cellID:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cellid()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void ConditionalStyleSetArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 ruleCount = 1;
if (has_rulecount()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->rulecount(), output);
}
// repeated .TST.ConditionalStyleSetArchive.ConditionalStyleRule rules = 2;
for (int i = 0; i < this->rules_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->rules(i), output);
}
// optional .TST.CellID cellID = 3;
if (has_cellid()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->cellid(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ConditionalStyleSetArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 ruleCount = 1;
if (has_rulecount()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->rulecount(), target);
}
// repeated .TST.ConditionalStyleSetArchive.ConditionalStyleRule rules = 2;
for (int i = 0; i < this->rules_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->rules(i), target);
}
// optional .TST.CellID cellID = 3;
if (has_cellid()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->cellid(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ConditionalStyleSetArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 ruleCount = 1;
if (has_rulecount()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->rulecount());
}
// optional .TST.CellID cellID = 3;
if (has_cellid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cellid());
}
}
// repeated .TST.ConditionalStyleSetArchive.ConditionalStyleRule rules = 2;
total_size += 1 * this->rules_size();
for (int i = 0; i < this->rules_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->rules(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ConditionalStyleSetArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ConditionalStyleSetArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const ConditionalStyleSetArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ConditionalStyleSetArchive::MergeFrom(const ConditionalStyleSetArchive& from) {
GOOGLE_CHECK_NE(&from, this);
rules_.MergeFrom(from.rules_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_rulecount()) {
set_rulecount(from.rulecount());
}
if (from.has_cellid()) {
mutable_cellid()->::TST::CellID::MergeFrom(from.cellid());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ConditionalStyleSetArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ConditionalStyleSetArchive::CopyFrom(const ConditionalStyleSetArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ConditionalStyleSetArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
for (int i = 0; i < rules_size(); i++) {
if (!this->rules(i).IsInitialized()) return false;
}
if (has_cellid()) {
if (!this->cellid().IsInitialized()) return false;
}
return true;
}
void ConditionalStyleSetArchive::Swap(ConditionalStyleSetArchive* other) {
if (other != this) {
std::swap(rulecount_, other->rulecount_);
rules_.Swap(&other->rules_);
std::swap(cellid_, other->cellid_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata ConditionalStyleSetArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ConditionalStyleSetArchive_descriptor_;
metadata.reflection = ConditionalStyleSetArchive_reflection_;
return metadata;
}
// ===================================================================
const ::google::protobuf::EnumDescriptor* FilterSetArchive_FilterSetType_descriptor() {
protobuf_AssignDescriptorsOnce();
return FilterSetArchive_FilterSetType_descriptor_;
}
bool FilterSetArchive_FilterSetType_IsValid(int value) {
switch(value) {
case 0:
case 1:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const FilterSetArchive_FilterSetType FilterSetArchive::FilterSetArchiveTypeAll;
const FilterSetArchive_FilterSetType FilterSetArchive::FilterSetArchiveTypeAny;
const FilterSetArchive_FilterSetType FilterSetArchive::FilterSetType_MIN;
const FilterSetArchive_FilterSetType FilterSetArchive::FilterSetType_MAX;
const int FilterSetArchive::FilterSetType_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
const int FilterSetArchive::kTypeFieldNumber;
const int FilterSetArchive::kIsEnabledFieldNumber;
const int FilterSetArchive::kFilterRulesFieldNumber;
const int FilterSetArchive::kNeedsFormulaRewriteForImportFieldNumber;
const int FilterSetArchive::kFilterOffsetsFieldNumber;
const int FilterSetArchive::kFilterEnabledFieldNumber;
#endif // !_MSC_VER
FilterSetArchive::FilterSetArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void FilterSetArchive::InitAsDefaultInstance() {
}
FilterSetArchive::FilterSetArchive(const FilterSetArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void FilterSetArchive::SharedCtor() {
_cached_size_ = 0;
type_ = 0;
is_enabled_ = true;
needs_formula_rewrite_for_import_ = false;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
FilterSetArchive::~FilterSetArchive() {
SharedDtor();
}
void FilterSetArchive::SharedDtor() {
if (this != default_instance_) {
}
}
void FilterSetArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* FilterSetArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return FilterSetArchive_descriptor_;
}
const FilterSetArchive& FilterSetArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
FilterSetArchive* FilterSetArchive::default_instance_ = NULL;
FilterSetArchive* FilterSetArchive::New() const {
return new FilterSetArchive;
}
void FilterSetArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
type_ = 0;
is_enabled_ = true;
needs_formula_rewrite_for_import_ = false;
}
filter_rules_.Clear();
filter_offsets_.Clear();
filter_enabled_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool FilterSetArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .TST.FilterSetArchive.FilterSetType type = 1 [default = FilterSetArchiveTypeAll];
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::TST::FilterSetArchive_FilterSetType_IsValid(value)) {
set_type(static_cast< ::TST::FilterSetArchive_FilterSetType >(value));
} else {
mutable_unknown_fields()->AddVarint(1, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_is_enabled;
break;
}
// optional bool is_enabled = 2 [default = true];
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_is_enabled:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &is_enabled_)));
set_has_is_enabled();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_filter_rules;
break;
}
// repeated .TST.FilterRuleArchive filter_rules = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_filter_rules:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_filter_rules()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_filter_rules;
if (input->ExpectTag(32)) goto parse_needs_formula_rewrite_for_import;
break;
}
// optional bool needs_formula_rewrite_for_import = 4 [default = false];
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_needs_formula_rewrite_for_import:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &needs_formula_rewrite_for_import_)));
set_has_needs_formula_rewrite_for_import();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_filter_offsets;
break;
}
// repeated uint32 filter_offsets = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_filter_offsets:
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1, 40, input, this->mutable_filter_offsets())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_LENGTH_DELIMITED) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, this->mutable_filter_offsets())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_filter_offsets;
if (input->ExpectTag(48)) goto parse_filter_enabled;
break;
}
// repeated bool filter_enabled = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_filter_enabled:
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1, 48, input, this->mutable_filter_enabled())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_LENGTH_DELIMITED) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, this->mutable_filter_enabled())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(48)) goto parse_filter_enabled;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void FilterSetArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .TST.FilterSetArchive.FilterSetType type = 1 [default = FilterSetArchiveTypeAll];
if (has_type()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->type(), output);
}
// optional bool is_enabled = 2 [default = true];
if (has_is_enabled()) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_enabled(), output);
}
// repeated .TST.FilterRuleArchive filter_rules = 3;
for (int i = 0; i < this->filter_rules_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->filter_rules(i), output);
}
// optional bool needs_formula_rewrite_for_import = 4 [default = false];
if (has_needs_formula_rewrite_for_import()) {
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->needs_formula_rewrite_for_import(), output);
}
// repeated uint32 filter_offsets = 5;
for (int i = 0; i < this->filter_offsets_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(
5, this->filter_offsets(i), output);
}
// repeated bool filter_enabled = 6;
for (int i = 0; i < this->filter_enabled_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteBool(
6, this->filter_enabled(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* FilterSetArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .TST.FilterSetArchive.FilterSetType type = 1 [default = FilterSetArchiveTypeAll];
if (has_type()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->type(), target);
}
// optional bool is_enabled = 2 [default = true];
if (has_is_enabled()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_enabled(), target);
}
// repeated .TST.FilterRuleArchive filter_rules = 3;
for (int i = 0; i < this->filter_rules_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->filter_rules(i), target);
}
// optional bool needs_formula_rewrite_for_import = 4 [default = false];
if (has_needs_formula_rewrite_for_import()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->needs_formula_rewrite_for_import(), target);
}
// repeated uint32 filter_offsets = 5;
for (int i = 0; i < this->filter_offsets_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteUInt32ToArray(5, this->filter_offsets(i), target);
}
// repeated bool filter_enabled = 6;
for (int i = 0; i < this->filter_enabled_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteBoolToArray(6, this->filter_enabled(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int FilterSetArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .TST.FilterSetArchive.FilterSetType type = 1 [default = FilterSetArchiveTypeAll];
if (has_type()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
}
// optional bool is_enabled = 2 [default = true];
if (has_is_enabled()) {
total_size += 1 + 1;
}
// optional bool needs_formula_rewrite_for_import = 4 [default = false];
if (has_needs_formula_rewrite_for_import()) {
total_size += 1 + 1;
}
}
// repeated .TST.FilterRuleArchive filter_rules = 3;
total_size += 1 * this->filter_rules_size();
for (int i = 0; i < this->filter_rules_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->filter_rules(i));
}
// repeated uint32 filter_offsets = 5;
{
int data_size = 0;
for (int i = 0; i < this->filter_offsets_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
UInt32Size(this->filter_offsets(i));
}
total_size += 1 * this->filter_offsets_size() + data_size;
}
// repeated bool filter_enabled = 6;
{
int data_size = 0;
data_size = 1 * this->filter_enabled_size();
total_size += 1 * this->filter_enabled_size() + data_size;
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void FilterSetArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const FilterSetArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const FilterSetArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void FilterSetArchive::MergeFrom(const FilterSetArchive& from) {
GOOGLE_CHECK_NE(&from, this);
filter_rules_.MergeFrom(from.filter_rules_);
filter_offsets_.MergeFrom(from.filter_offsets_);
filter_enabled_.MergeFrom(from.filter_enabled_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_type()) {
set_type(from.type());
}
if (from.has_is_enabled()) {
set_is_enabled(from.is_enabled());
}
if (from.has_needs_formula_rewrite_for_import()) {
set_needs_formula_rewrite_for_import(from.needs_formula_rewrite_for_import());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FilterSetArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FilterSetArchive::CopyFrom(const FilterSetArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FilterSetArchive::IsInitialized() const {
for (int i = 0; i < filter_rules_size(); i++) {
if (!this->filter_rules(i).IsInitialized()) return false;
}
return true;
}
void FilterSetArchive::Swap(FilterSetArchive* other) {
if (other != this) {
std::swap(type_, other->type_);
std::swap(is_enabled_, other->is_enabled_);
filter_rules_.Swap(&other->filter_rules_);
std::swap(needs_formula_rewrite_for_import_, other->needs_formula_rewrite_for_import_);
filter_offsets_.Swap(&other->filter_offsets_);
filter_enabled_.Swap(&other->filter_enabled_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata FilterSetArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = FilterSetArchive_descriptor_;
metadata.reflection = FilterSetArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int TokenAttachmentArchive::kSuperFieldNumber;
const int TokenAttachmentArchive::kExpressionNodeFieldNumber;
#endif // !_MSC_VER
TokenAttachmentArchive::TokenAttachmentArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void TokenAttachmentArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TSWP::UIGraphicalAttachment*>(&::TSWP::UIGraphicalAttachment::default_instance());
expressionnode_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
TokenAttachmentArchive::TokenAttachmentArchive(const TokenAttachmentArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void TokenAttachmentArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
expressionnode_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
TokenAttachmentArchive::~TokenAttachmentArchive() {
SharedDtor();
}
void TokenAttachmentArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
delete expressionnode_;
}
}
void TokenAttachmentArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* TokenAttachmentArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return TokenAttachmentArchive_descriptor_;
}
const TokenAttachmentArchive& TokenAttachmentArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
TokenAttachmentArchive* TokenAttachmentArchive::default_instance_ = NULL;
TokenAttachmentArchive* TokenAttachmentArchive::New() const {
return new TokenAttachmentArchive;
}
void TokenAttachmentArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TSWP::UIGraphicalAttachment::Clear();
}
if (has_expressionnode()) {
if (expressionnode_ != NULL) expressionnode_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool TokenAttachmentArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TSWP.UIGraphicalAttachment super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_expressionNode;
break;
}
// optional .TSP.Reference expressionNode = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_expressionNode:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_expressionnode()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void TokenAttachmentArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TSWP.UIGraphicalAttachment super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// optional .TSP.Reference expressionNode = 2;
if (has_expressionnode()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->expressionnode(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* TokenAttachmentArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TSWP.UIGraphicalAttachment super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// optional .TSP.Reference expressionNode = 2;
if (has_expressionnode()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->expressionnode(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int TokenAttachmentArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TSWP.UIGraphicalAttachment super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// optional .TSP.Reference expressionNode = 2;
if (has_expressionnode()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->expressionnode());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void TokenAttachmentArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const TokenAttachmentArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const TokenAttachmentArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void TokenAttachmentArchive::MergeFrom(const TokenAttachmentArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TSWP::UIGraphicalAttachment::MergeFrom(from.super());
}
if (from.has_expressionnode()) {
mutable_expressionnode()->::TSP::Reference::MergeFrom(from.expressionnode());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void TokenAttachmentArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void TokenAttachmentArchive::CopyFrom(const TokenAttachmentArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TokenAttachmentArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_expressionnode()) {
if (!this->expressionnode().IsInitialized()) return false;
}
return true;
}
void TokenAttachmentArchive::Swap(TokenAttachmentArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(expressionnode_, other->expressionnode_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata TokenAttachmentArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = TokenAttachmentArchive_descriptor_;
metadata.reflection = TokenAttachmentArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int FormulaArchive::kExpressionTreeFieldNumber;
#endif // !_MSC_VER
FormulaArchive::FormulaArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void FormulaArchive::InitAsDefaultInstance() {
expressiontree_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
}
FormulaArchive::FormulaArchive(const FormulaArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void FormulaArchive::SharedCtor() {
_cached_size_ = 0;
expressiontree_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
FormulaArchive::~FormulaArchive() {
SharedDtor();
}
void FormulaArchive::SharedDtor() {
if (this != default_instance_) {
delete expressiontree_;
}
}
void FormulaArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* FormulaArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return FormulaArchive_descriptor_;
}
const FormulaArchive& FormulaArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
FormulaArchive* FormulaArchive::default_instance_ = NULL;
FormulaArchive* FormulaArchive::New() const {
return new FormulaArchive;
}
void FormulaArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_expressiontree()) {
if (expressiontree_ != NULL) expressiontree_->::TSP::Reference::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool FormulaArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .TSP.Reference expressionTree = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_expressiontree()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void FormulaArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .TSP.Reference expressionTree = 1;
if (has_expressiontree()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->expressiontree(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* FormulaArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .TSP.Reference expressionTree = 1;
if (has_expressiontree()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->expressiontree(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int FormulaArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .TSP.Reference expressionTree = 1;
if (has_expressiontree()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->expressiontree());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void FormulaArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const FormulaArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const FormulaArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void FormulaArchive::MergeFrom(const FormulaArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_expressiontree()) {
mutable_expressiontree()->::TSP::Reference::MergeFrom(from.expressiontree());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FormulaArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FormulaArchive::CopyFrom(const FormulaArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FormulaArchive::IsInitialized() const {
if (has_expressiontree()) {
if (!this->expressiontree().IsInitialized()) return false;
}
return true;
}
void FormulaArchive::Swap(FormulaArchive* other) {
if (other != this) {
std::swap(expressiontree_, other->expressiontree_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata FormulaArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = FormulaArchive_descriptor_;
metadata.reflection = FormulaArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int ExpressionNodeArchive::kChildrenFieldNumber;
const int ExpressionNodeArchive::kFirstIndexFieldNumber;
const int ExpressionNodeArchive::kLastIndexFieldNumber;
#endif // !_MSC_VER
ExpressionNodeArchive::ExpressionNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void ExpressionNodeArchive::InitAsDefaultInstance() {
}
ExpressionNodeArchive::ExpressionNodeArchive(const ExpressionNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ExpressionNodeArchive::SharedCtor() {
_cached_size_ = 0;
first_index_ = GOOGLE_ULONGLONG(0);
last_index_ = GOOGLE_ULONGLONG(0);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ExpressionNodeArchive::~ExpressionNodeArchive() {
SharedDtor();
}
void ExpressionNodeArchive::SharedDtor() {
if (this != default_instance_) {
}
}
void ExpressionNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ExpressionNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return ExpressionNodeArchive_descriptor_;
}
const ExpressionNodeArchive& ExpressionNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
ExpressionNodeArchive* ExpressionNodeArchive::default_instance_ = NULL;
ExpressionNodeArchive* ExpressionNodeArchive::New() const {
return new ExpressionNodeArchive;
}
void ExpressionNodeArchive::Clear() {
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
first_index_ = GOOGLE_ULONGLONG(0);
last_index_ = GOOGLE_ULONGLONG(0);
}
children_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ExpressionNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .TSP.Reference children = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_children:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_children()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_children;
if (input->ExpectTag(16)) goto parse_first_index;
break;
}
// optional uint64 first_index = 2 [default = 0];
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_first_index:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &first_index_)));
set_has_first_index();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_last_index;
break;
}
// optional uint64 last_index = 3 [default = 0];
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_last_index:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
input, &last_index_)));
set_has_last_index();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void ExpressionNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .TSP.Reference children = 1;
for (int i = 0; i < this->children_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->children(i), output);
}
// optional uint64 first_index = 2 [default = 0];
if (has_first_index()) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->first_index(), output);
}
// optional uint64 last_index = 3 [default = 0];
if (has_last_index()) {
::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->last_index(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ExpressionNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .TSP.Reference children = 1;
for (int i = 0; i < this->children_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->children(i), target);
}
// optional uint64 first_index = 2 [default = 0];
if (has_first_index()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->first_index(), target);
}
// optional uint64 last_index = 3 [default = 0];
if (has_last_index()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->last_index(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ExpressionNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
// optional uint64 first_index = 2 [default = 0];
if (has_first_index()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->first_index());
}
// optional uint64 last_index = 3 [default = 0];
if (has_last_index()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt64Size(
this->last_index());
}
}
// repeated .TSP.Reference children = 1;
total_size += 1 * this->children_size();
for (int i = 0; i < this->children_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->children(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ExpressionNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ExpressionNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const ExpressionNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ExpressionNodeArchive::MergeFrom(const ExpressionNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
children_.MergeFrom(from.children_);
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
if (from.has_first_index()) {
set_first_index(from.first_index());
}
if (from.has_last_index()) {
set_last_index(from.last_index());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ExpressionNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ExpressionNodeArchive::CopyFrom(const ExpressionNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ExpressionNodeArchive::IsInitialized() const {
for (int i = 0; i < children_size(); i++) {
if (!this->children(i).IsInitialized()) return false;
}
return true;
}
void ExpressionNodeArchive::Swap(ExpressionNodeArchive* other) {
if (other != this) {
children_.Swap(&other->children_);
std::swap(first_index_, other->first_index_);
std::swap(last_index_, other->last_index_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata ExpressionNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ExpressionNodeArchive_descriptor_;
metadata.reflection = ExpressionNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int BooleanNodeArchive::kSuperFieldNumber;
const int BooleanNodeArchive::kValueFieldNumber;
#endif // !_MSC_VER
BooleanNodeArchive::BooleanNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void BooleanNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
BooleanNodeArchive::BooleanNodeArchive(const BooleanNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void BooleanNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
value_ = false;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
BooleanNodeArchive::~BooleanNodeArchive() {
SharedDtor();
}
void BooleanNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void BooleanNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BooleanNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return BooleanNodeArchive_descriptor_;
}
const BooleanNodeArchive& BooleanNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
BooleanNodeArchive* BooleanNodeArchive::default_instance_ = NULL;
BooleanNodeArchive* BooleanNodeArchive::New() const {
return new BooleanNodeArchive;
}
void BooleanNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
value_ = false;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool BooleanNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_value;
break;
}
// required bool value = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_value:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &value_)));
set_has_value();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void BooleanNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required bool value = 2;
if (has_value()) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->value(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* BooleanNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required bool value = 2;
if (has_value()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->value(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int BooleanNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required bool value = 2;
if (has_value()) {
total_size += 1 + 1;
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BooleanNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const BooleanNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const BooleanNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void BooleanNodeArchive::MergeFrom(const BooleanNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_value()) {
set_value(from.value());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void BooleanNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BooleanNodeArchive::CopyFrom(const BooleanNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BooleanNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void BooleanNodeArchive::Swap(BooleanNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(value_, other->value_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata BooleanNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = BooleanNodeArchive_descriptor_;
metadata.reflection = BooleanNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int NumberNodeArchive::kSuperFieldNumber;
const int NumberNodeArchive::kNumberFieldNumber;
#endif // !_MSC_VER
NumberNodeArchive::NumberNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void NumberNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
NumberNodeArchive::NumberNodeArchive(const NumberNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void NumberNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
number_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
NumberNodeArchive::~NumberNodeArchive() {
SharedDtor();
}
void NumberNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void NumberNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* NumberNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return NumberNodeArchive_descriptor_;
}
const NumberNodeArchive& NumberNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
NumberNodeArchive* NumberNodeArchive::default_instance_ = NULL;
NumberNodeArchive* NumberNodeArchive::New() const {
return new NumberNodeArchive;
}
void NumberNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
number_ = 0;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool NumberNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(17)) goto parse_number;
break;
}
// required double number = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
parse_number:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &number_)));
set_has_number();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void NumberNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required double number = 2;
if (has_number()) {
::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->number(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* NumberNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required double number = 2;
if (has_number()) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->number(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int NumberNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required double number = 2;
if (has_number()) {
total_size += 1 + 8;
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void NumberNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const NumberNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const NumberNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void NumberNodeArchive::MergeFrom(const NumberNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_number()) {
set_number(from.number());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void NumberNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void NumberNodeArchive::CopyFrom(const NumberNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool NumberNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void NumberNodeArchive::Swap(NumberNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(number_, other->number_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata NumberNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = NumberNodeArchive_descriptor_;
metadata.reflection = NumberNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int StringNodeArchive::kSuperFieldNumber;
const int StringNodeArchive::kValueFieldNumber;
#endif // !_MSC_VER
StringNodeArchive::StringNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void StringNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
StringNodeArchive::StringNodeArchive(const StringNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void StringNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
StringNodeArchive::~StringNodeArchive() {
SharedDtor();
}
void StringNodeArchive::SharedDtor() {
if (value_ != &::google::protobuf::internal::kEmptyString) {
delete value_;
}
if (this != default_instance_) {
delete super_;
}
}
void StringNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* StringNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return StringNodeArchive_descriptor_;
}
const StringNodeArchive& StringNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
StringNodeArchive* StringNodeArchive::default_instance_ = NULL;
StringNodeArchive* StringNodeArchive::New() const {
return new StringNodeArchive;
}
void StringNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
if (has_value()) {
if (value_ != &::google::protobuf::internal::kEmptyString) {
value_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool StringNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_value;
break;
}
// required string value = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_value:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_value()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->value().data(), this->value().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void StringNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required string value = 2;
if (has_value()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->value().data(), this->value().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->value(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* StringNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required string value = 2;
if (has_value()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->value().data(), this->value().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->value(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int StringNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required string value = 2;
if (has_value()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->value());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void StringNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const StringNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const StringNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void StringNodeArchive::MergeFrom(const StringNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_value()) {
set_value(from.value());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void StringNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void StringNodeArchive::CopyFrom(const StringNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool StringNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void StringNodeArchive::Swap(StringNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(value_, other->value_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata StringNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = StringNodeArchive_descriptor_;
metadata.reflection = StringNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int IdentifierNodeArchive::kSuperFieldNumber;
const int IdentifierNodeArchive::kIdentifierFieldNumber;
#endif // !_MSC_VER
IdentifierNodeArchive::IdentifierNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void IdentifierNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
IdentifierNodeArchive::IdentifierNodeArchive(const IdentifierNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void IdentifierNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
identifier_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
IdentifierNodeArchive::~IdentifierNodeArchive() {
SharedDtor();
}
void IdentifierNodeArchive::SharedDtor() {
if (identifier_ != &::google::protobuf::internal::kEmptyString) {
delete identifier_;
}
if (this != default_instance_) {
delete super_;
}
}
void IdentifierNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* IdentifierNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return IdentifierNodeArchive_descriptor_;
}
const IdentifierNodeArchive& IdentifierNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
IdentifierNodeArchive* IdentifierNodeArchive::default_instance_ = NULL;
IdentifierNodeArchive* IdentifierNodeArchive::New() const {
return new IdentifierNodeArchive;
}
void IdentifierNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
if (has_identifier()) {
if (identifier_ != &::google::protobuf::internal::kEmptyString) {
identifier_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool IdentifierNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_identifier;
break;
}
// optional string identifier = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_identifier:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_identifier()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->identifier().data(), this->identifier().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void IdentifierNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// optional string identifier = 2;
if (has_identifier()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->identifier().data(), this->identifier().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->identifier(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* IdentifierNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// optional string identifier = 2;
if (has_identifier()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->identifier().data(), this->identifier().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->identifier(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int IdentifierNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// optional string identifier = 2;
if (has_identifier()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->identifier());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void IdentifierNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const IdentifierNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const IdentifierNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void IdentifierNodeArchive::MergeFrom(const IdentifierNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_identifier()) {
set_identifier(from.identifier());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void IdentifierNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void IdentifierNodeArchive::CopyFrom(const IdentifierNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool IdentifierNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void IdentifierNodeArchive::Swap(IdentifierNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(identifier_, other->identifier_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata IdentifierNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = IdentifierNodeArchive_descriptor_;
metadata.reflection = IdentifierNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int ArrayNodeArchive::kSuperFieldNumber;
const int ArrayNodeArchive::kColumnsFieldNumber;
const int ArrayNodeArchive::kRowsFieldNumber;
#endif // !_MSC_VER
ArrayNodeArchive::ArrayNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void ArrayNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
ArrayNodeArchive::ArrayNodeArchive(const ArrayNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ArrayNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
columns_ = 0u;
rows_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ArrayNodeArchive::~ArrayNodeArchive() {
SharedDtor();
}
void ArrayNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void ArrayNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ArrayNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return ArrayNodeArchive_descriptor_;
}
const ArrayNodeArchive& ArrayNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
ArrayNodeArchive* ArrayNodeArchive::default_instance_ = NULL;
ArrayNodeArchive* ArrayNodeArchive::New() const {
return new ArrayNodeArchive;
}
void ArrayNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
columns_ = 0u;
rows_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ArrayNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_columns;
break;
}
// optional uint32 columns = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_columns:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &columns_)));
set_has_columns();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_rows;
break;
}
// optional uint32 rows = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_rows:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &rows_)));
set_has_rows();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void ArrayNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// optional uint32 columns = 2;
if (has_columns()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->columns(), output);
}
// optional uint32 rows = 3;
if (has_rows()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->rows(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ArrayNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// optional uint32 columns = 2;
if (has_columns()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->columns(), target);
}
// optional uint32 rows = 3;
if (has_rows()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->rows(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ArrayNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// optional uint32 columns = 2;
if (has_columns()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->columns());
}
// optional uint32 rows = 3;
if (has_rows()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->rows());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ArrayNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ArrayNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const ArrayNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ArrayNodeArchive::MergeFrom(const ArrayNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_columns()) {
set_columns(from.columns());
}
if (from.has_rows()) {
set_rows(from.rows());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ArrayNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ArrayNodeArchive::CopyFrom(const ArrayNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ArrayNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void ArrayNodeArchive::Swap(ArrayNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(columns_, other->columns_);
std::swap(rows_, other->rows_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata ArrayNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ArrayNodeArchive_descriptor_;
metadata.reflection = ArrayNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int ListNodeArchive::kSuperFieldNumber;
#endif // !_MSC_VER
ListNodeArchive::ListNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void ListNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
ListNodeArchive::ListNodeArchive(const ListNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ListNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ListNodeArchive::~ListNodeArchive() {
SharedDtor();
}
void ListNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void ListNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ListNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return ListNodeArchive_descriptor_;
}
const ListNodeArchive& ListNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
ListNodeArchive* ListNodeArchive::default_instance_ = NULL;
ListNodeArchive* ListNodeArchive::New() const {
return new ListNodeArchive;
}
void ListNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ListNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void ListNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ListNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ListNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ListNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ListNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const ListNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ListNodeArchive::MergeFrom(const ListNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ListNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ListNodeArchive::CopyFrom(const ListNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ListNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void ListNodeArchive::Swap(ListNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata ListNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ListNodeArchive_descriptor_;
metadata.reflection = ListNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int OperatorNodeArchive::kSuperFieldNumber;
const int OperatorNodeArchive::kOperatorCharFieldNumber;
#endif // !_MSC_VER
OperatorNodeArchive::OperatorNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void OperatorNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
OperatorNodeArchive::OperatorNodeArchive(const OperatorNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void OperatorNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
operatorchar_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
OperatorNodeArchive::~OperatorNodeArchive() {
SharedDtor();
}
void OperatorNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void OperatorNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* OperatorNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return OperatorNodeArchive_descriptor_;
}
const OperatorNodeArchive& OperatorNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
OperatorNodeArchive* OperatorNodeArchive::default_instance_ = NULL;
OperatorNodeArchive* OperatorNodeArchive::New() const {
return new OperatorNodeArchive;
}
void OperatorNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
operatorchar_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool OperatorNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_operatorChar;
break;
}
// required uint32 operatorChar = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_operatorChar:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &operatorchar_)));
set_has_operatorchar();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void OperatorNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required uint32 operatorChar = 2;
if (has_operatorchar()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->operatorchar(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* OperatorNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required uint32 operatorChar = 2;
if (has_operatorchar()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->operatorchar(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int OperatorNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required uint32 operatorChar = 2;
if (has_operatorchar()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->operatorchar());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void OperatorNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const OperatorNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const OperatorNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void OperatorNodeArchive::MergeFrom(const OperatorNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_operatorchar()) {
set_operatorchar(from.operatorchar());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void OperatorNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void OperatorNodeArchive::CopyFrom(const OperatorNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool OperatorNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void OperatorNodeArchive::Swap(OperatorNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(operatorchar_, other->operatorchar_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata OperatorNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = OperatorNodeArchive_descriptor_;
metadata.reflection = OperatorNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int PostfixOperatorNodeArchive::kSuperFieldNumber;
#endif // !_MSC_VER
PostfixOperatorNodeArchive::PostfixOperatorNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void PostfixOperatorNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::OperatorNodeArchive*>(&::TST::OperatorNodeArchive::default_instance());
}
PostfixOperatorNodeArchive::PostfixOperatorNodeArchive(const PostfixOperatorNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PostfixOperatorNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PostfixOperatorNodeArchive::~PostfixOperatorNodeArchive() {
SharedDtor();
}
void PostfixOperatorNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void PostfixOperatorNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PostfixOperatorNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return PostfixOperatorNodeArchive_descriptor_;
}
const PostfixOperatorNodeArchive& PostfixOperatorNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
PostfixOperatorNodeArchive* PostfixOperatorNodeArchive::default_instance_ = NULL;
PostfixOperatorNodeArchive* PostfixOperatorNodeArchive::New() const {
return new PostfixOperatorNodeArchive;
}
void PostfixOperatorNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::OperatorNodeArchive::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PostfixOperatorNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.OperatorNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PostfixOperatorNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.OperatorNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PostfixOperatorNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.OperatorNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PostfixOperatorNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.OperatorNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PostfixOperatorNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PostfixOperatorNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const PostfixOperatorNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PostfixOperatorNodeArchive::MergeFrom(const PostfixOperatorNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::OperatorNodeArchive::MergeFrom(from.super());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PostfixOperatorNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PostfixOperatorNodeArchive::CopyFrom(const PostfixOperatorNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PostfixOperatorNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void PostfixOperatorNodeArchive::Swap(PostfixOperatorNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata PostfixOperatorNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PostfixOperatorNodeArchive_descriptor_;
metadata.reflection = PostfixOperatorNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int PrefixOperatorNodeArchive::kSuperFieldNumber;
#endif // !_MSC_VER
PrefixOperatorNodeArchive::PrefixOperatorNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void PrefixOperatorNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::OperatorNodeArchive*>(&::TST::OperatorNodeArchive::default_instance());
}
PrefixOperatorNodeArchive::PrefixOperatorNodeArchive(const PrefixOperatorNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PrefixOperatorNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PrefixOperatorNodeArchive::~PrefixOperatorNodeArchive() {
SharedDtor();
}
void PrefixOperatorNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void PrefixOperatorNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PrefixOperatorNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return PrefixOperatorNodeArchive_descriptor_;
}
const PrefixOperatorNodeArchive& PrefixOperatorNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
PrefixOperatorNodeArchive* PrefixOperatorNodeArchive::default_instance_ = NULL;
PrefixOperatorNodeArchive* PrefixOperatorNodeArchive::New() const {
return new PrefixOperatorNodeArchive;
}
void PrefixOperatorNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::OperatorNodeArchive::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PrefixOperatorNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.OperatorNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PrefixOperatorNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.OperatorNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PrefixOperatorNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.OperatorNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PrefixOperatorNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.OperatorNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PrefixOperatorNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PrefixOperatorNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const PrefixOperatorNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PrefixOperatorNodeArchive::MergeFrom(const PrefixOperatorNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::OperatorNodeArchive::MergeFrom(from.super());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PrefixOperatorNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PrefixOperatorNodeArchive::CopyFrom(const PrefixOperatorNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PrefixOperatorNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void PrefixOperatorNodeArchive::Swap(PrefixOperatorNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata PrefixOperatorNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PrefixOperatorNodeArchive_descriptor_;
metadata.reflection = PrefixOperatorNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int FunctionNodeArchive::kSuperFieldNumber;
const int FunctionNodeArchive::kFunctionIndexFieldNumber;
const int FunctionNodeArchive::kInvalidFunctionNameFieldNumber;
#endif // !_MSC_VER
FunctionNodeArchive::FunctionNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void FunctionNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
FunctionNodeArchive::FunctionNodeArchive(const FunctionNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void FunctionNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
functionindex_ = 0u;
invalidfunctionname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
FunctionNodeArchive::~FunctionNodeArchive() {
SharedDtor();
}
void FunctionNodeArchive::SharedDtor() {
if (invalidfunctionname_ != &::google::protobuf::internal::kEmptyString) {
delete invalidfunctionname_;
}
if (this != default_instance_) {
delete super_;
}
}
void FunctionNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* FunctionNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return FunctionNodeArchive_descriptor_;
}
const FunctionNodeArchive& FunctionNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
FunctionNodeArchive* FunctionNodeArchive::default_instance_ = NULL;
FunctionNodeArchive* FunctionNodeArchive::New() const {
return new FunctionNodeArchive;
}
void FunctionNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
functionindex_ = 0u;
if (has_invalidfunctionname()) {
if (invalidfunctionname_ != &::google::protobuf::internal::kEmptyString) {
invalidfunctionname_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool FunctionNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_functionIndex;
break;
}
// required uint32 functionIndex = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_functionIndex:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &functionindex_)));
set_has_functionindex();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_invalidFunctionName;
break;
}
// optional string invalidFunctionName = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_invalidFunctionName:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_invalidfunctionname()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->invalidfunctionname().data(), this->invalidfunctionname().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void FunctionNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required uint32 functionIndex = 2;
if (has_functionindex()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->functionindex(), output);
}
// optional string invalidFunctionName = 3;
if (has_invalidfunctionname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->invalidfunctionname().data(), this->invalidfunctionname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
3, this->invalidfunctionname(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* FunctionNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required uint32 functionIndex = 2;
if (has_functionindex()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->functionindex(), target);
}
// optional string invalidFunctionName = 3;
if (has_invalidfunctionname()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->invalidfunctionname().data(), this->invalidfunctionname().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->invalidfunctionname(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int FunctionNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required uint32 functionIndex = 2;
if (has_functionindex()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->functionindex());
}
// optional string invalidFunctionName = 3;
if (has_invalidfunctionname()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->invalidfunctionname());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void FunctionNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const FunctionNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const FunctionNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void FunctionNodeArchive::MergeFrom(const FunctionNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_functionindex()) {
set_functionindex(from.functionindex());
}
if (from.has_invalidfunctionname()) {
set_invalidfunctionname(from.invalidfunctionname());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FunctionNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FunctionNodeArchive::CopyFrom(const FunctionNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FunctionNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void FunctionNodeArchive::Swap(FunctionNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(functionindex_, other->functionindex_);
std::swap(invalidfunctionname_, other->invalidfunctionname_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata FunctionNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = FunctionNodeArchive_descriptor_;
metadata.reflection = FunctionNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int FunctionEndNodeArchive::kSuperFieldNumber;
#endif // !_MSC_VER
FunctionEndNodeArchive::FunctionEndNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void FunctionEndNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
FunctionEndNodeArchive::FunctionEndNodeArchive(const FunctionEndNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void FunctionEndNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
FunctionEndNodeArchive::~FunctionEndNodeArchive() {
SharedDtor();
}
void FunctionEndNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void FunctionEndNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* FunctionEndNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return FunctionEndNodeArchive_descriptor_;
}
const FunctionEndNodeArchive& FunctionEndNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
FunctionEndNodeArchive* FunctionEndNodeArchive::default_instance_ = NULL;
FunctionEndNodeArchive* FunctionEndNodeArchive::New() const {
return new FunctionEndNodeArchive;
}
void FunctionEndNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool FunctionEndNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void FunctionEndNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* FunctionEndNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int FunctionEndNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void FunctionEndNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const FunctionEndNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const FunctionEndNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void FunctionEndNodeArchive::MergeFrom(const FunctionEndNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FunctionEndNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FunctionEndNodeArchive::CopyFrom(const FunctionEndNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FunctionEndNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void FunctionEndNodeArchive::Swap(FunctionEndNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata FunctionEndNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = FunctionEndNodeArchive_descriptor_;
metadata.reflection = FunctionEndNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int DateNodeArchive::kSuperFieldNumber;
const int DateNodeArchive::kValueFieldNumber;
const int DateNodeArchive::kFormatFieldNumber;
#endif // !_MSC_VER
DateNodeArchive::DateNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void DateNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
DateNodeArchive::DateNodeArchive(const DateNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void DateNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
value_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
format_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
DateNodeArchive::~DateNodeArchive() {
SharedDtor();
}
void DateNodeArchive::SharedDtor() {
if (value_ != &::google::protobuf::internal::kEmptyString) {
delete value_;
}
if (format_ != &::google::protobuf::internal::kEmptyString) {
delete format_;
}
if (this != default_instance_) {
delete super_;
}
}
void DateNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DateNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return DateNodeArchive_descriptor_;
}
const DateNodeArchive& DateNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
DateNodeArchive* DateNodeArchive::default_instance_ = NULL;
DateNodeArchive* DateNodeArchive::New() const {
return new DateNodeArchive;
}
void DateNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
if (has_value()) {
if (value_ != &::google::protobuf::internal::kEmptyString) {
value_->clear();
}
}
if (has_format()) {
if (format_ != &::google::protobuf::internal::kEmptyString) {
format_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool DateNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_value;
break;
}
// required string value = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_value:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_value()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->value().data(), this->value().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_format;
break;
}
// optional string format = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_format:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_format()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->format().data(), this->format().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void DateNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required string value = 2;
if (has_value()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->value().data(), this->value().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->value(), output);
}
// optional string format = 3;
if (has_format()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->format().data(), this->format().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
3, this->format(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* DateNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required string value = 2;
if (has_value()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->value().data(), this->value().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->value(), target);
}
// optional string format = 3;
if (has_format()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->format().data(), this->format().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->format(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int DateNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required string value = 2;
if (has_value()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->value());
}
// optional string format = 3;
if (has_format()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->format());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DateNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const DateNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const DateNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void DateNodeArchive::MergeFrom(const DateNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_value()) {
set_value(from.value());
}
if (from.has_format()) {
set_format(from.format());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DateNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DateNodeArchive::CopyFrom(const DateNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DateNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void DateNodeArchive::Swap(DateNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(value_, other->value_);
std::swap(format_, other->format_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata DateNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = DateNodeArchive_descriptor_;
metadata.reflection = DateNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int ReferenceNodeArchive::kSuperFieldNumber;
const int ReferenceNodeArchive::kRangeReferenceFieldNumber;
const int ReferenceNodeArchive::kStickyBitsFieldNumber;
const int ReferenceNodeArchive::kHostTableIDFieldNumber;
#endif // !_MSC_VER
ReferenceNodeArchive::ReferenceNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void ReferenceNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
rangereference_ = const_cast< ::TSCE::RangeReferenceArchive*>(&::TSCE::RangeReferenceArchive::default_instance());
}
ReferenceNodeArchive::ReferenceNodeArchive(const ReferenceNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ReferenceNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
rangereference_ = NULL;
stickybits_ = 0u;
hosttableid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ReferenceNodeArchive::~ReferenceNodeArchive() {
SharedDtor();
}
void ReferenceNodeArchive::SharedDtor() {
if (hosttableid_ != &::google::protobuf::internal::kEmptyString) {
delete hosttableid_;
}
if (this != default_instance_) {
delete super_;
delete rangereference_;
}
}
void ReferenceNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ReferenceNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return ReferenceNodeArchive_descriptor_;
}
const ReferenceNodeArchive& ReferenceNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
ReferenceNodeArchive* ReferenceNodeArchive::default_instance_ = NULL;
ReferenceNodeArchive* ReferenceNodeArchive::New() const {
return new ReferenceNodeArchive;
}
void ReferenceNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
if (has_rangereference()) {
if (rangereference_ != NULL) rangereference_->::TSCE::RangeReferenceArchive::Clear();
}
stickybits_ = 0u;
if (has_hosttableid()) {
if (hosttableid_ != &::google::protobuf::internal::kEmptyString) {
hosttableid_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ReferenceNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_rangeReference;
break;
}
// required .TSCE.RangeReferenceArchive rangeReference = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_rangeReference:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_rangereference()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_stickyBits;
break;
}
// required uint32 stickyBits = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_stickyBits:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &stickybits_)));
set_has_stickybits();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_hostTableID;
break;
}
// optional string hostTableID = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_hostTableID:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_hosttableid()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->hosttableid().data(), this->hosttableid().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void ReferenceNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required .TSCE.RangeReferenceArchive rangeReference = 2;
if (has_rangereference()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->rangereference(), output);
}
// required uint32 stickyBits = 3;
if (has_stickybits()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->stickybits(), output);
}
// optional string hostTableID = 4;
if (has_hosttableid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->hosttableid().data(), this->hosttableid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
4, this->hosttableid(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ReferenceNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required .TSCE.RangeReferenceArchive rangeReference = 2;
if (has_rangereference()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->rangereference(), target);
}
// required uint32 stickyBits = 3;
if (has_stickybits()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->stickybits(), target);
}
// optional string hostTableID = 4;
if (has_hosttableid()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->hosttableid().data(), this->hosttableid().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->hosttableid(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ReferenceNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required .TSCE.RangeReferenceArchive rangeReference = 2;
if (has_rangereference()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->rangereference());
}
// required uint32 stickyBits = 3;
if (has_stickybits()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->stickybits());
}
// optional string hostTableID = 4;
if (has_hosttableid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->hosttableid());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ReferenceNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ReferenceNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const ReferenceNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ReferenceNodeArchive::MergeFrom(const ReferenceNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_rangereference()) {
mutable_rangereference()->::TSCE::RangeReferenceArchive::MergeFrom(from.rangereference());
}
if (from.has_stickybits()) {
set_stickybits(from.stickybits());
}
if (from.has_hosttableid()) {
set_hosttableid(from.hosttableid());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ReferenceNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ReferenceNodeArchive::CopyFrom(const ReferenceNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ReferenceNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
if (has_rangereference()) {
if (!this->rangereference().IsInitialized()) return false;
}
return true;
}
void ReferenceNodeArchive::Swap(ReferenceNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(rangereference_, other->rangereference_);
std::swap(stickybits_, other->stickybits_);
std::swap(hosttableid_, other->hosttableid_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata ReferenceNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ReferenceNodeArchive_descriptor_;
metadata.reflection = ReferenceNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int DurationNodeArchive::kSuperFieldNumber;
const int DurationNodeArchive::kTimeintervalFieldNumber;
const int DurationNodeArchive::kSmallestFieldNumber;
const int DurationNodeArchive::kLargestFieldNumber;
const int DurationNodeArchive::kStyleFieldNumber;
#endif // !_MSC_VER
DurationNodeArchive::DurationNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void DurationNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
DurationNodeArchive::DurationNodeArchive(const DurationNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void DurationNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
timeinterval_ = 0;
smallest_ = 0u;
largest_ = 0u;
style_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
DurationNodeArchive::~DurationNodeArchive() {
SharedDtor();
}
void DurationNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void DurationNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DurationNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return DurationNodeArchive_descriptor_;
}
const DurationNodeArchive& DurationNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
DurationNodeArchive* DurationNodeArchive::default_instance_ = NULL;
DurationNodeArchive* DurationNodeArchive::New() const {
return new DurationNodeArchive;
}
void DurationNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
timeinterval_ = 0;
smallest_ = 0u;
largest_ = 0u;
style_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool DurationNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(17)) goto parse_timeinterval;
break;
}
// required double timeinterval = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
parse_timeinterval:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
input, &timeinterval_)));
set_has_timeinterval();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_smallest;
break;
}
// required uint32 smallest = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_smallest:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &smallest_)));
set_has_smallest();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_largest;
break;
}
// required uint32 largest = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_largest:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &largest_)));
set_has_largest();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_style;
break;
}
// required uint32 style = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_style:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &style_)));
set_has_style();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void DurationNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required double timeinterval = 2;
if (has_timeinterval()) {
::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->timeinterval(), output);
}
// required uint32 smallest = 3;
if (has_smallest()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->smallest(), output);
}
// required uint32 largest = 4;
if (has_largest()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->largest(), output);
}
// required uint32 style = 5;
if (has_style()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->style(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* DurationNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required double timeinterval = 2;
if (has_timeinterval()) {
target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->timeinterval(), target);
}
// required uint32 smallest = 3;
if (has_smallest()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->smallest(), target);
}
// required uint32 largest = 4;
if (has_largest()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->largest(), target);
}
// required uint32 style = 5;
if (has_style()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->style(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int DurationNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required double timeinterval = 2;
if (has_timeinterval()) {
total_size += 1 + 8;
}
// required uint32 smallest = 3;
if (has_smallest()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->smallest());
}
// required uint32 largest = 4;
if (has_largest()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->largest());
}
// required uint32 style = 5;
if (has_style()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->style());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DurationNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const DurationNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const DurationNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void DurationNodeArchive::MergeFrom(const DurationNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_timeinterval()) {
set_timeinterval(from.timeinterval());
}
if (from.has_smallest()) {
set_smallest(from.smallest());
}
if (from.has_largest()) {
set_largest(from.largest());
}
if (from.has_style()) {
set_style(from.style());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DurationNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DurationNodeArchive::CopyFrom(const DurationNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DurationNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void DurationNodeArchive::Swap(DurationNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(timeinterval_, other->timeinterval_);
std::swap(smallest_, other->smallest_);
std::swap(largest_, other->largest_);
std::swap(style_, other->style_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata DurationNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = DurationNodeArchive_descriptor_;
metadata.reflection = DurationNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int ArgumentPlaceholderNodeArchive::kSuperFieldNumber;
const int ArgumentPlaceholderNodeArchive::kFunctionIndexFieldNumber;
const int ArgumentPlaceholderNodeArchive::kArgumentIndexFieldNumber;
const int ArgumentPlaceholderNodeArchive::kModeFieldNumber;
#endif // !_MSC_VER
ArgumentPlaceholderNodeArchive::ArgumentPlaceholderNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void ArgumentPlaceholderNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
ArgumentPlaceholderNodeArchive::ArgumentPlaceholderNodeArchive(const ArgumentPlaceholderNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ArgumentPlaceholderNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
functionindex_ = 0u;
argumentindex_ = 0u;
mode_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ArgumentPlaceholderNodeArchive::~ArgumentPlaceholderNodeArchive() {
SharedDtor();
}
void ArgumentPlaceholderNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void ArgumentPlaceholderNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ArgumentPlaceholderNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return ArgumentPlaceholderNodeArchive_descriptor_;
}
const ArgumentPlaceholderNodeArchive& ArgumentPlaceholderNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
ArgumentPlaceholderNodeArchive* ArgumentPlaceholderNodeArchive::default_instance_ = NULL;
ArgumentPlaceholderNodeArchive* ArgumentPlaceholderNodeArchive::New() const {
return new ArgumentPlaceholderNodeArchive;
}
void ArgumentPlaceholderNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
functionindex_ = 0u;
argumentindex_ = 0u;
mode_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ArgumentPlaceholderNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_functionIndex;
break;
}
// required uint32 functionIndex = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_functionIndex:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &functionindex_)));
set_has_functionindex();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_argumentIndex;
break;
}
// required uint32 argumentIndex = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_argumentIndex:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &argumentindex_)));
set_has_argumentindex();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_mode;
break;
}
// optional uint32 mode = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_mode:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &mode_)));
set_has_mode();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void ArgumentPlaceholderNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// required uint32 functionIndex = 2;
if (has_functionindex()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->functionindex(), output);
}
// required uint32 argumentIndex = 3;
if (has_argumentindex()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->argumentindex(), output);
}
// optional uint32 mode = 4;
if (has_mode()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->mode(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ArgumentPlaceholderNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// required uint32 functionIndex = 2;
if (has_functionindex()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->functionindex(), target);
}
// required uint32 argumentIndex = 3;
if (has_argumentindex()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->argumentindex(), target);
}
// optional uint32 mode = 4;
if (has_mode()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->mode(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ArgumentPlaceholderNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// required uint32 functionIndex = 2;
if (has_functionindex()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->functionindex());
}
// required uint32 argumentIndex = 3;
if (has_argumentindex()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->argumentindex());
}
// optional uint32 mode = 4;
if (has_mode()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->mode());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ArgumentPlaceholderNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ArgumentPlaceholderNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const ArgumentPlaceholderNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ArgumentPlaceholderNodeArchive::MergeFrom(const ArgumentPlaceholderNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
if (from.has_functionindex()) {
set_functionindex(from.functionindex());
}
if (from.has_argumentindex()) {
set_argumentindex(from.argumentindex());
}
if (from.has_mode()) {
set_mode(from.mode());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ArgumentPlaceholderNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ArgumentPlaceholderNodeArchive::CopyFrom(const ArgumentPlaceholderNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ArgumentPlaceholderNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void ArgumentPlaceholderNodeArchive::Swap(ArgumentPlaceholderNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(functionindex_, other->functionindex_);
std::swap(argumentindex_, other->argumentindex_);
std::swap(mode_, other->mode_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata ArgumentPlaceholderNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ArgumentPlaceholderNodeArchive_descriptor_;
metadata.reflection = ArgumentPlaceholderNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int EmptyExpressionNodeArchive::kSuperFieldNumber;
#endif // !_MSC_VER
EmptyExpressionNodeArchive::EmptyExpressionNodeArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void EmptyExpressionNodeArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::ExpressionNodeArchive*>(&::TST::ExpressionNodeArchive::default_instance());
}
EmptyExpressionNodeArchive::EmptyExpressionNodeArchive(const EmptyExpressionNodeArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void EmptyExpressionNodeArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
EmptyExpressionNodeArchive::~EmptyExpressionNodeArchive() {
SharedDtor();
}
void EmptyExpressionNodeArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void EmptyExpressionNodeArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* EmptyExpressionNodeArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return EmptyExpressionNodeArchive_descriptor_;
}
const EmptyExpressionNodeArchive& EmptyExpressionNodeArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
EmptyExpressionNodeArchive* EmptyExpressionNodeArchive::default_instance_ = NULL;
EmptyExpressionNodeArchive* EmptyExpressionNodeArchive::New() const {
return new EmptyExpressionNodeArchive;
}
void EmptyExpressionNodeArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::ExpressionNodeArchive::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool EmptyExpressionNodeArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.ExpressionNodeArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void EmptyExpressionNodeArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* EmptyExpressionNodeArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int EmptyExpressionNodeArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.ExpressionNodeArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void EmptyExpressionNodeArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const EmptyExpressionNodeArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const EmptyExpressionNodeArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void EmptyExpressionNodeArchive::MergeFrom(const EmptyExpressionNodeArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::ExpressionNodeArchive::MergeFrom(from.super());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void EmptyExpressionNodeArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void EmptyExpressionNodeArchive::CopyFrom(const EmptyExpressionNodeArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool EmptyExpressionNodeArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void EmptyExpressionNodeArchive::Swap(EmptyExpressionNodeArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata EmptyExpressionNodeArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = EmptyExpressionNodeArchive_descriptor_;
metadata.reflection = EmptyExpressionNodeArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int LayoutHintArchive::kIsValidFieldNumber;
const int LayoutHintArchive::kCellRangeFieldNumber;
const int LayoutHintArchive::kHintIDFieldNumber;
const int LayoutHintArchive::kMaximumSizeFieldNumber;
const int LayoutHintArchive::kPartitionPositionFieldNumber;
const int LayoutHintArchive::kHorizontalFieldNumber;
const int LayoutHintArchive::kEffectiveSizeFieldNumber;
const int LayoutHintArchive::kPartitioningPassFieldNumber;
#endif // !_MSC_VER
LayoutHintArchive::LayoutHintArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void LayoutHintArchive::InitAsDefaultInstance() {
cellrange_ = const_cast< ::TST::CellRange*>(&::TST::CellRange::default_instance());
hintid_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
maximumsize_ = const_cast< ::TSP::Size*>(&::TSP::Size::default_instance());
effectivesize_ = const_cast< ::TSP::Size*>(&::TSP::Size::default_instance());
}
LayoutHintArchive::LayoutHintArchive(const LayoutHintArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void LayoutHintArchive::SharedCtor() {
_cached_size_ = 0;
isvalid_ = false;
cellrange_ = NULL;
hintid_ = NULL;
maximumsize_ = NULL;
partitionposition_ = 0u;
horizontal_ = false;
effectivesize_ = NULL;
partitioningpass_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
LayoutHintArchive::~LayoutHintArchive() {
SharedDtor();
}
void LayoutHintArchive::SharedDtor() {
if (this != default_instance_) {
delete cellrange_;
delete hintid_;
delete maximumsize_;
delete effectivesize_;
}
}
void LayoutHintArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* LayoutHintArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return LayoutHintArchive_descriptor_;
}
const LayoutHintArchive& LayoutHintArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
LayoutHintArchive* LayoutHintArchive::default_instance_ = NULL;
LayoutHintArchive* LayoutHintArchive::New() const {
return new LayoutHintArchive;
}
void LayoutHintArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
isvalid_ = false;
if (has_cellrange()) {
if (cellrange_ != NULL) cellrange_->::TST::CellRange::Clear();
}
if (has_hintid()) {
if (hintid_ != NULL) hintid_->::TST::CellID::Clear();
}
if (has_maximumsize()) {
if (maximumsize_ != NULL) maximumsize_->::TSP::Size::Clear();
}
partitionposition_ = 0u;
horizontal_ = false;
if (has_effectivesize()) {
if (effectivesize_ != NULL) effectivesize_->::TSP::Size::Clear();
}
partitioningpass_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool LayoutHintArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required bool isValid = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &isvalid_)));
set_has_isvalid();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_cellRange;
break;
}
// required .TST.CellRange cellRange = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cellRange:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cellrange()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_hintID;
break;
}
// required .TST.CellID hintID = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_hintID:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_hintid()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_maximumSize;
break;
}
// required .TSP.Size maximumSize = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_maximumSize:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_maximumsize()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_partitionPosition;
break;
}
// required uint32 partitionPosition = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_partitionPosition:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &partitionposition_)));
set_has_partitionposition();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(48)) goto parse_horizontal;
break;
}
// required bool horizontal = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_horizontal:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &horizontal_)));
set_has_horizontal();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(58)) goto parse_effectiveSize;
break;
}
// optional .TSP.Size effectiveSize = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_effectiveSize:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_effectivesize()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(64)) goto parse_partitioningPass;
break;
}
// optional uint32 partitioningPass = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_partitioningPass:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &partitioningpass_)));
set_has_partitioningpass();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void LayoutHintArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required bool isValid = 1;
if (has_isvalid()) {
::google::protobuf::internal::WireFormatLite::WriteBool(1, this->isvalid(), output);
}
// required .TST.CellRange cellRange = 2;
if (has_cellrange()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->cellrange(), output);
}
// required .TST.CellID hintID = 3;
if (has_hintid()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->hintid(), output);
}
// required .TSP.Size maximumSize = 4;
if (has_maximumsize()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->maximumsize(), output);
}
// required uint32 partitionPosition = 5;
if (has_partitionposition()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->partitionposition(), output);
}
// required bool horizontal = 6;
if (has_horizontal()) {
::google::protobuf::internal::WireFormatLite::WriteBool(6, this->horizontal(), output);
}
// optional .TSP.Size effectiveSize = 7;
if (has_effectivesize()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7, this->effectivesize(), output);
}
// optional uint32 partitioningPass = 8;
if (has_partitioningpass()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->partitioningpass(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* LayoutHintArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required bool isValid = 1;
if (has_isvalid()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->isvalid(), target);
}
// required .TST.CellRange cellRange = 2;
if (has_cellrange()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->cellrange(), target);
}
// required .TST.CellID hintID = 3;
if (has_hintid()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->hintid(), target);
}
// required .TSP.Size maximumSize = 4;
if (has_maximumsize()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->maximumsize(), target);
}
// required uint32 partitionPosition = 5;
if (has_partitionposition()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->partitionposition(), target);
}
// required bool horizontal = 6;
if (has_horizontal()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->horizontal(), target);
}
// optional .TSP.Size effectiveSize = 7;
if (has_effectivesize()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
7, this->effectivesize(), target);
}
// optional uint32 partitioningPass = 8;
if (has_partitioningpass()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->partitioningpass(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int LayoutHintArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required bool isValid = 1;
if (has_isvalid()) {
total_size += 1 + 1;
}
// required .TST.CellRange cellRange = 2;
if (has_cellrange()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cellrange());
}
// required .TST.CellID hintID = 3;
if (has_hintid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->hintid());
}
// required .TSP.Size maximumSize = 4;
if (has_maximumsize()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->maximumsize());
}
// required uint32 partitionPosition = 5;
if (has_partitionposition()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->partitionposition());
}
// required bool horizontal = 6;
if (has_horizontal()) {
total_size += 1 + 1;
}
// optional .TSP.Size effectiveSize = 7;
if (has_effectivesize()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->effectivesize());
}
// optional uint32 partitioningPass = 8;
if (has_partitioningpass()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->partitioningpass());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void LayoutHintArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const LayoutHintArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const LayoutHintArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void LayoutHintArchive::MergeFrom(const LayoutHintArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_isvalid()) {
set_isvalid(from.isvalid());
}
if (from.has_cellrange()) {
mutable_cellrange()->::TST::CellRange::MergeFrom(from.cellrange());
}
if (from.has_hintid()) {
mutable_hintid()->::TST::CellID::MergeFrom(from.hintid());
}
if (from.has_maximumsize()) {
mutable_maximumsize()->::TSP::Size::MergeFrom(from.maximumsize());
}
if (from.has_partitionposition()) {
set_partitionposition(from.partitionposition());
}
if (from.has_horizontal()) {
set_horizontal(from.horizontal());
}
if (from.has_effectivesize()) {
mutable_effectivesize()->::TSP::Size::MergeFrom(from.effectivesize());
}
if (from.has_partitioningpass()) {
set_partitioningpass(from.partitioningpass());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void LayoutHintArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void LayoutHintArchive::CopyFrom(const LayoutHintArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool LayoutHintArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false;
if (has_cellrange()) {
if (!this->cellrange().IsInitialized()) return false;
}
if (has_hintid()) {
if (!this->hintid().IsInitialized()) return false;
}
if (has_maximumsize()) {
if (!this->maximumsize().IsInitialized()) return false;
}
if (has_effectivesize()) {
if (!this->effectivesize().IsInitialized()) return false;
}
return true;
}
void LayoutHintArchive::Swap(LayoutHintArchive* other) {
if (other != this) {
std::swap(isvalid_, other->isvalid_);
std::swap(cellrange_, other->cellrange_);
std::swap(hintid_, other->hintid_);
std::swap(maximumsize_, other->maximumsize_);
std::swap(partitionposition_, other->partitionposition_);
std::swap(horizontal_, other->horizontal_);
std::swap(effectivesize_, other->effectivesize_);
std::swap(partitioningpass_, other->partitioningpass_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata LayoutHintArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = LayoutHintArchive_descriptor_;
metadata.reflection = LayoutHintArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int CompletionTokenAttachmentArchive::kSuperFieldNumber;
const int CompletionTokenAttachmentArchive::kCompletionTextFieldNumber;
const int CompletionTokenAttachmentArchive::kCaretPositionFieldNumber;
const int CompletionTokenAttachmentArchive::kPrefixStartFieldNumber;
#endif // !_MSC_VER
CompletionTokenAttachmentArchive::CompletionTokenAttachmentArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void CompletionTokenAttachmentArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TST::TokenAttachmentArchive*>(&::TST::TokenAttachmentArchive::default_instance());
}
CompletionTokenAttachmentArchive::CompletionTokenAttachmentArchive(const CompletionTokenAttachmentArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void CompletionTokenAttachmentArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
completiontext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
caretposition_ = 0u;
prefixstart_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
CompletionTokenAttachmentArchive::~CompletionTokenAttachmentArchive() {
SharedDtor();
}
void CompletionTokenAttachmentArchive::SharedDtor() {
if (completiontext_ != &::google::protobuf::internal::kEmptyString) {
delete completiontext_;
}
if (this != default_instance_) {
delete super_;
}
}
void CompletionTokenAttachmentArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CompletionTokenAttachmentArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return CompletionTokenAttachmentArchive_descriptor_;
}
const CompletionTokenAttachmentArchive& CompletionTokenAttachmentArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
CompletionTokenAttachmentArchive* CompletionTokenAttachmentArchive::default_instance_ = NULL;
CompletionTokenAttachmentArchive* CompletionTokenAttachmentArchive::New() const {
return new CompletionTokenAttachmentArchive;
}
void CompletionTokenAttachmentArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TST::TokenAttachmentArchive::Clear();
}
if (has_completiontext()) {
if (completiontext_ != &::google::protobuf::internal::kEmptyString) {
completiontext_->clear();
}
}
caretposition_ = 0u;
prefixstart_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool CompletionTokenAttachmentArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TST.TokenAttachmentArchive super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_completionText;
break;
}
// optional string completionText = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_completionText:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_completiontext()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->completiontext().data(), this->completiontext().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_caretPosition;
break;
}
// optional uint32 caretPosition = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_caretPosition:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &caretposition_)));
set_has_caretposition();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_prefixStart;
break;
}
// optional uint32 prefixStart = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_prefixStart:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &prefixstart_)));
set_has_prefixstart();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void CompletionTokenAttachmentArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TST.TokenAttachmentArchive super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
// optional string completionText = 2;
if (has_completiontext()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->completiontext().data(), this->completiontext().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->completiontext(), output);
}
// optional uint32 caretPosition = 3;
if (has_caretposition()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->caretposition(), output);
}
// optional uint32 prefixStart = 4;
if (has_prefixstart()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->prefixstart(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* CompletionTokenAttachmentArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TST.TokenAttachmentArchive super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
// optional string completionText = 2;
if (has_completiontext()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->completiontext().data(), this->completiontext().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->completiontext(), target);
}
// optional uint32 caretPosition = 3;
if (has_caretposition()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->caretposition(), target);
}
// optional uint32 prefixStart = 4;
if (has_prefixstart()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->prefixstart(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int CompletionTokenAttachmentArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TST.TokenAttachmentArchive super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
// optional string completionText = 2;
if (has_completiontext()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->completiontext());
}
// optional uint32 caretPosition = 3;
if (has_caretposition()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->caretposition());
}
// optional uint32 prefixStart = 4;
if (has_prefixstart()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->prefixstart());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void CompletionTokenAttachmentArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const CompletionTokenAttachmentArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const CompletionTokenAttachmentArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void CompletionTokenAttachmentArchive::MergeFrom(const CompletionTokenAttachmentArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TST::TokenAttachmentArchive::MergeFrom(from.super());
}
if (from.has_completiontext()) {
set_completiontext(from.completiontext());
}
if (from.has_caretposition()) {
set_caretposition(from.caretposition());
}
if (from.has_prefixstart()) {
set_prefixstart(from.prefixstart());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CompletionTokenAttachmentArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CompletionTokenAttachmentArchive::CopyFrom(const CompletionTokenAttachmentArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CompletionTokenAttachmentArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_super()) {
if (!this->super().IsInitialized()) return false;
}
return true;
}
void CompletionTokenAttachmentArchive::Swap(CompletionTokenAttachmentArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(completiontext_, other->completiontext_);
std::swap(caretposition_, other->caretposition_);
std::swap(prefixstart_, other->prefixstart_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata CompletionTokenAttachmentArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = CompletionTokenAttachmentArchive_descriptor_;
metadata.reflection = CompletionTokenAttachmentArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int HiddenStateFormulaOwnerArchive::kOwnerIdFieldNumber;
const int HiddenStateFormulaOwnerArchive::kThresholdValueFieldNumber;
const int HiddenStateFormulaOwnerArchive::kNeedsToUpdateFilterSetForImportFieldNumber;
#endif // !_MSC_VER
HiddenStateFormulaOwnerArchive::HiddenStateFormulaOwnerArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void HiddenStateFormulaOwnerArchive::InitAsDefaultInstance() {
owner_id_ = const_cast< ::TSCE::CFUUIDArchive*>(&::TSCE::CFUUIDArchive::default_instance());
}
HiddenStateFormulaOwnerArchive::HiddenStateFormulaOwnerArchive(const HiddenStateFormulaOwnerArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void HiddenStateFormulaOwnerArchive::SharedCtor() {
_cached_size_ = 0;
owner_id_ = NULL;
needs_to_update_filter_set_for_import_ = false;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
HiddenStateFormulaOwnerArchive::~HiddenStateFormulaOwnerArchive() {
SharedDtor();
}
void HiddenStateFormulaOwnerArchive::SharedDtor() {
if (this != default_instance_) {
delete owner_id_;
}
}
void HiddenStateFormulaOwnerArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* HiddenStateFormulaOwnerArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return HiddenStateFormulaOwnerArchive_descriptor_;
}
const HiddenStateFormulaOwnerArchive& HiddenStateFormulaOwnerArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
HiddenStateFormulaOwnerArchive* HiddenStateFormulaOwnerArchive::default_instance_ = NULL;
HiddenStateFormulaOwnerArchive* HiddenStateFormulaOwnerArchive::New() const {
return new HiddenStateFormulaOwnerArchive;
}
void HiddenStateFormulaOwnerArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_owner_id()) {
if (owner_id_ != NULL) owner_id_->::TSCE::CFUUIDArchive::Clear();
}
needs_to_update_filter_set_for_import_ = false;
}
threshold_value_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool HiddenStateFormulaOwnerArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .TSCE.CFUUIDArchive owner_id = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_owner_id()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_threshold_value;
break;
}
// repeated .TSCE.CellValueArchive threshold_value = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_threshold_value:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_threshold_value()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_threshold_value;
if (input->ExpectTag(24)) goto parse_needs_to_update_filter_set_for_import;
break;
}
// optional bool needs_to_update_filter_set_for_import = 3 [default = false];
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_needs_to_update_filter_set_for_import:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &needs_to_update_filter_set_for_import_)));
set_has_needs_to_update_filter_set_for_import();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void HiddenStateFormulaOwnerArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .TSCE.CFUUIDArchive owner_id = 1;
if (has_owner_id()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->owner_id(), output);
}
// repeated .TSCE.CellValueArchive threshold_value = 2;
for (int i = 0; i < this->threshold_value_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->threshold_value(i), output);
}
// optional bool needs_to_update_filter_set_for_import = 3 [default = false];
if (has_needs_to_update_filter_set_for_import()) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->needs_to_update_filter_set_for_import(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* HiddenStateFormulaOwnerArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .TSCE.CFUUIDArchive owner_id = 1;
if (has_owner_id()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->owner_id(), target);
}
// repeated .TSCE.CellValueArchive threshold_value = 2;
for (int i = 0; i < this->threshold_value_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->threshold_value(i), target);
}
// optional bool needs_to_update_filter_set_for_import = 3 [default = false];
if (has_needs_to_update_filter_set_for_import()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->needs_to_update_filter_set_for_import(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int HiddenStateFormulaOwnerArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .TSCE.CFUUIDArchive owner_id = 1;
if (has_owner_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->owner_id());
}
// optional bool needs_to_update_filter_set_for_import = 3 [default = false];
if (has_needs_to_update_filter_set_for_import()) {
total_size += 1 + 1;
}
}
// repeated .TSCE.CellValueArchive threshold_value = 2;
total_size += 1 * this->threshold_value_size();
for (int i = 0; i < this->threshold_value_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->threshold_value(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void HiddenStateFormulaOwnerArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const HiddenStateFormulaOwnerArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const HiddenStateFormulaOwnerArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void HiddenStateFormulaOwnerArchive::MergeFrom(const HiddenStateFormulaOwnerArchive& from) {
GOOGLE_CHECK_NE(&from, this);
threshold_value_.MergeFrom(from.threshold_value_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_owner_id()) {
mutable_owner_id()->::TSCE::CFUUIDArchive::MergeFrom(from.owner_id());
}
if (from.has_needs_to_update_filter_set_for_import()) {
set_needs_to_update_filter_set_for_import(from.needs_to_update_filter_set_for_import());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void HiddenStateFormulaOwnerArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void HiddenStateFormulaOwnerArchive::CopyFrom(const HiddenStateFormulaOwnerArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HiddenStateFormulaOwnerArchive::IsInitialized() const {
for (int i = 0; i < threshold_value_size(); i++) {
if (!this->threshold_value(i).IsInitialized()) return false;
}
return true;
}
void HiddenStateFormulaOwnerArchive::Swap(HiddenStateFormulaOwnerArchive* other) {
if (other != this) {
std::swap(owner_id_, other->owner_id_);
threshold_value_.Swap(&other->threshold_value_);
std::swap(needs_to_update_filter_set_for_import_, other->needs_to_update_filter_set_for_import_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata HiddenStateFormulaOwnerArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = HiddenStateFormulaOwnerArchive_descriptor_;
metadata.reflection = HiddenStateFormulaOwnerArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int RichTextPayloadArchive::kStorageFieldNumber;
const int RichTextPayloadArchive::kRangeFieldNumber;
const int RichTextPayloadArchive::kCellidFieldNumber;
#endif // !_MSC_VER
RichTextPayloadArchive::RichTextPayloadArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void RichTextPayloadArchive::InitAsDefaultInstance() {
storage_ = const_cast< ::TSP::Reference*>(&::TSP::Reference::default_instance());
range_ = const_cast< ::TSP::Range*>(&::TSP::Range::default_instance());
cellid_ = const_cast< ::TST::CellID*>(&::TST::CellID::default_instance());
}
RichTextPayloadArchive::RichTextPayloadArchive(const RichTextPayloadArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void RichTextPayloadArchive::SharedCtor() {
_cached_size_ = 0;
storage_ = NULL;
range_ = NULL;
cellid_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
RichTextPayloadArchive::~RichTextPayloadArchive() {
SharedDtor();
}
void RichTextPayloadArchive::SharedDtor() {
if (this != default_instance_) {
delete storage_;
delete range_;
delete cellid_;
}
}
void RichTextPayloadArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* RichTextPayloadArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return RichTextPayloadArchive_descriptor_;
}
const RichTextPayloadArchive& RichTextPayloadArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
RichTextPayloadArchive* RichTextPayloadArchive::default_instance_ = NULL;
RichTextPayloadArchive* RichTextPayloadArchive::New() const {
return new RichTextPayloadArchive;
}
void RichTextPayloadArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_storage()) {
if (storage_ != NULL) storage_->::TSP::Reference::Clear();
}
if (has_range()) {
if (range_ != NULL) range_->::TSP::Range::Clear();
}
if (has_cellid()) {
if (cellid_ != NULL) cellid_->::TST::CellID::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool RichTextPayloadArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TSP.Reference storage = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_storage()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_range;
break;
}
// optional .TSP.Range range = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_range:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_range()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_cellid;
break;
}
// required .TST.CellID cellid = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cellid:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cellid()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void RichTextPayloadArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TSP.Reference storage = 1;
if (has_storage()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->storage(), output);
}
// optional .TSP.Range range = 2;
if (has_range()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->range(), output);
}
// required .TST.CellID cellid = 3;
if (has_cellid()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->cellid(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* RichTextPayloadArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TSP.Reference storage = 1;
if (has_storage()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->storage(), target);
}
// optional .TSP.Range range = 2;
if (has_range()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->range(), target);
}
// required .TST.CellID cellid = 3;
if (has_cellid()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->cellid(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int RichTextPayloadArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TSP.Reference storage = 1;
if (has_storage()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->storage());
}
// optional .TSP.Range range = 2;
if (has_range()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->range());
}
// required .TST.CellID cellid = 3;
if (has_cellid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cellid());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void RichTextPayloadArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const RichTextPayloadArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const RichTextPayloadArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void RichTextPayloadArchive::MergeFrom(const RichTextPayloadArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_storage()) {
mutable_storage()->::TSP::Reference::MergeFrom(from.storage());
}
if (from.has_range()) {
mutable_range()->::TSP::Range::MergeFrom(from.range());
}
if (from.has_cellid()) {
mutable_cellid()->::TST::CellID::MergeFrom(from.cellid());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void RichTextPayloadArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void RichTextPayloadArchive::CopyFrom(const RichTextPayloadArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RichTextPayloadArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000005) != 0x00000005) return false;
if (has_storage()) {
if (!this->storage().IsInitialized()) return false;
}
if (has_range()) {
if (!this->range().IsInitialized()) return false;
}
if (has_cellid()) {
if (!this->cellid().IsInitialized()) return false;
}
return true;
}
void RichTextPayloadArchive::Swap(RichTextPayloadArchive* other) {
if (other != this) {
std::swap(storage_, other->storage_);
std::swap(range_, other->range_);
std::swap(cellid_, other->cellid_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata RichTextPayloadArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = RichTextPayloadArchive_descriptor_;
metadata.reflection = RichTextPayloadArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int FormulaEqualsTokenAttachmentArchive::kSuperFieldNumber;
#endif // !_MSC_VER
FormulaEqualsTokenAttachmentArchive::FormulaEqualsTokenAttachmentArchive()
: ::google::protobuf::Message() {
SharedCtor();
}
void FormulaEqualsTokenAttachmentArchive::InitAsDefaultInstance() {
super_ = const_cast< ::TSWP::UIGraphicalAttachment*>(&::TSWP::UIGraphicalAttachment::default_instance());
}
FormulaEqualsTokenAttachmentArchive::FormulaEqualsTokenAttachmentArchive(const FormulaEqualsTokenAttachmentArchive& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void FormulaEqualsTokenAttachmentArchive::SharedCtor() {
_cached_size_ = 0;
super_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
FormulaEqualsTokenAttachmentArchive::~FormulaEqualsTokenAttachmentArchive() {
SharedDtor();
}
void FormulaEqualsTokenAttachmentArchive::SharedDtor() {
if (this != default_instance_) {
delete super_;
}
}
void FormulaEqualsTokenAttachmentArchive::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* FormulaEqualsTokenAttachmentArchive::descriptor() {
protobuf_AssignDescriptorsOnce();
return FormulaEqualsTokenAttachmentArchive_descriptor_;
}
const FormulaEqualsTokenAttachmentArchive& FormulaEqualsTokenAttachmentArchive::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
FormulaEqualsTokenAttachmentArchive* FormulaEqualsTokenAttachmentArchive::default_instance_ = NULL;
FormulaEqualsTokenAttachmentArchive* FormulaEqualsTokenAttachmentArchive::New() const {
return new FormulaEqualsTokenAttachmentArchive;
}
void FormulaEqualsTokenAttachmentArchive::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_super()) {
if (super_ != NULL) super_->::TSWP::UIGraphicalAttachment::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool FormulaEqualsTokenAttachmentArchive::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .TSWP.UIGraphicalAttachment super = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_super()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void FormulaEqualsTokenAttachmentArchive::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .TSWP.UIGraphicalAttachment super = 1;
if (has_super()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->super(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* FormulaEqualsTokenAttachmentArchive::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .TSWP.UIGraphicalAttachment super = 1;
if (has_super()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->super(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int FormulaEqualsTokenAttachmentArchive::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .TSWP.UIGraphicalAttachment super = 1;
if (has_super()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->super());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void FormulaEqualsTokenAttachmentArchive::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const FormulaEqualsTokenAttachmentArchive* source =
::google::protobuf::internal::dynamic_cast_if_available<const FormulaEqualsTokenAttachmentArchive*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void FormulaEqualsTokenAttachmentArchive::MergeFrom(const FormulaEqualsTokenAttachmentArchive& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_super()) {
mutable_super()->::TSWP::UIGraphicalAttachment::MergeFrom(from.super());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FormulaEqualsTokenAttachmentArchive::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FormulaEqualsTokenAttachmentArchive::CopyFrom(const FormulaEqualsTokenAttachmentArchive& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FormulaEqualsTokenAttachmentArchive::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void FormulaEqualsTokenAttachmentArchive::Swap(FormulaEqualsTokenAttachmentArchive* other) {
if (other != this) {
std::swap(super_, other->super_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata FormulaEqualsTokenAttachmentArchive::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = FormulaEqualsTokenAttachmentArchive_descriptor_;
metadata.reflection = FormulaEqualsTokenAttachmentArchive_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int CellRegion::kCellRangesFieldNumber;
#endif // !_MSC_VER
CellRegion::CellRegion()
: ::google::protobuf::Message() {
SharedCtor();
}
void CellRegion::InitAsDefaultInstance() {
}
CellRegion::CellRegion(const CellRegion& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void CellRegion::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
CellRegion::~CellRegion() {
SharedDtor();
}
void CellRegion::SharedDtor() {
if (this != default_instance_) {
}
}
void CellRegion::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CellRegion::descriptor() {
protobuf_AssignDescriptorsOnce();
return CellRegion_descriptor_;
}
const CellRegion& CellRegion::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_TSTArchives_2eproto();
return *default_instance_;
}
CellRegion* CellRegion::default_instance_ = NULL;
CellRegion* CellRegion::New() const {
return new CellRegion;
}
void CellRegion::Clear() {
cell_ranges_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool CellRegion::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .TST.CellRange cell_ranges = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cell_ranges:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_cell_ranges()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_cell_ranges;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void CellRegion::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .TST.CellRange cell_ranges = 1;
for (int i = 0; i < this->cell_ranges_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->cell_ranges(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* CellRegion::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .TST.CellRange cell_ranges = 1;
for (int i = 0; i < this->cell_ranges_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->cell_ranges(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int CellRegion::ByteSize() const {
int total_size = 0;
// repeated .TST.CellRange cell_ranges = 1;
total_size += 1 * this->cell_ranges_size();
for (int i = 0; i < this->cell_ranges_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cell_ranges(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void CellRegion::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const CellRegion* source =
::google::protobuf::internal::dynamic_cast_if_available<const CellRegion*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void CellRegion::MergeFrom(const CellRegion& from) {
GOOGLE_CHECK_NE(&from, this);
cell_ranges_.MergeFrom(from.cell_ranges_);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void CellRegion::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void CellRegion::CopyFrom(const CellRegion& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CellRegion::IsInitialized() const {
for (int i = 0; i < cell_ranges_size(); i++) {
if (!this->cell_ranges(i).IsInitialized()) return false;
}
return true;
}
void CellRegion::Swap(CellRegion* other) {
if (other != this) {
cell_ranges_.Swap(&other->cell_ranges_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata CellRegion::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = CellRegion_descriptor_;
metadata.reflection = CellRegion_reflection_;
return metadata;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace TST
// @@protoc_insertion_point(global_scope)
|
segment .text
align 4
f:
push ebp
mov ebp, esp
sub esp, 4
push dword 2
push dword [esp]
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
add esp, 4
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
pop eax
leave
ret
align 4
global _main:function
_main:
align 4
xpl:
push ebp
mov ebp, esp
sub esp, 4
push dword 0
lea eax, [ebp+-4]
push eax
pop ecx
pop eax
mov [ecx], eax
call f
add esp, 0
push eax
call printi
add esp, 4
lea eax, [ebp+-4]
push eax
pop eax
push dword [eax]
pop eax
leave
ret
extern argc
extern argv
extern envp
extern readi
extern readd
extern printi
extern prints
extern printd
extern println
|
dnl x86-64 mpn_addmul_1 and mpn_submul_1, optimized for "Core 2".
dnl Copyright 2003-2005, 2007-2009, 2011, 2012 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb
C AMD K8,K9 4.52
C AMD K10 4.01
C AMD bull 4.98
C AMD pile 4.83
C AMD steam
C AMD excavator
C AMD bobcat 5.56
C AMD jaguar 5.54
C Intel P4 16.3 17.3
C Intel core2 4.32 4.61
C Intel NHM 5.08
C Intel SBR 4.04
C Intel IBR 3.95
C Intel HWL 3.66
C Intel BWL 2.87
C Intel SKL 2.79
C Intel atom 20.6
C Intel SLM 7.6
C VIA nano 5.25
C INPUT PARAMETERS
define(`rp', `%rdi')
define(`up', `%rsi')
define(`n', `%rdx')
define(`v0', `%rcx')
ifdef(`OPERATION_addmul_1',`
define(`ADDSUB', `add')
define(`func', `mpn_addmul_1')
define(`func_1c', `mpn_addmul_1c')
')
ifdef(`OPERATION_submul_1',`
define(`ADDSUB', `sub')
define(`func', `mpn_submul_1')
define(`func_1c', `mpn_submul_1c')
')
MULFUNC_PROLOGUE(mpn_addmul_1 mpn_addmul_1c mpn_submul_1 mpn_submul_1c)
ABI_SUPPORT(DOS64)
ABI_SUPPORT(STD64)
C For DOS, on the stack we have four saved registers, return address,
C space for four register arguments, and finally the carry input.
IFDOS(` define(`carry_in', `72(%rsp)')') dnl
IFSTD(` define(`carry_in', `%r8')') dnl
ASM_START()
TEXT
ALIGN(16)
PROLOGUE(func_1c)
FUNC_ENTRY(4)
push %rbx
push %rbp
lea (%rdx), %rbx
neg %rbx
mov (up), %rax
mov (rp), %r10
lea -16(rp,%rdx,8), rp
lea (up,%rdx,8), up
mul %rcx
add carry_in, %rax
adc $0, %rdx
jmp L(start_nc)
EPILOGUE()
ALIGN(16)
PROLOGUE(func)
FUNC_ENTRY(4)
push %rbx
push %rbp
lea (%rdx), %rbx
neg %rbx
mov (up), %rax
mov (rp), %r10
lea -16(rp,%rdx,8), rp
lea (up,%rdx,8), up
mul %rcx
L(start_nc):
test $1, R8(%rbx)
jnz L(odd)
lea (%rax), %r11
mov 8(up,%rbx,8), %rax
lea (%rdx), %rbp
mul %rcx
add $2, %rbx
jz L(n2)
lea (%rax), %r8
mov (up,%rbx,8), %rax
lea (%rdx), %r9
jmp L(mid)
ALIGN(8)
L(odd): inc %rbx
jz L(n1)
lea (%rax), %r8
mov (up,%rbx,8), %rax
lea (%rdx), %r9
mul %rcx
lea (%rax), %r11
mov 8(up,%rbx,8), %rax
lea (%rdx), %rbp
jmp L(e)
ALIGN(16)
L(top): mul %rcx
ADDSUB %r8, %r10
lea (%rax), %r8
mov (up,%rbx,8), %rax
adc %r9, %r11
mov %r10, -8(rp,%rbx,8)
mov (rp,%rbx,8), %r10
lea (%rdx), %r9
adc $0, %rbp
L(mid): mul %rcx
ADDSUB %r11, %r10
lea (%rax), %r11
mov 8(up,%rbx,8), %rax
adc %rbp, %r8
mov %r10, (rp,%rbx,8)
mov 8(rp,%rbx,8), %r10
lea (%rdx), %rbp
adc $0, %r9
L(e): add $2, %rbx
js L(top)
mul %rcx
ADDSUB %r8, %r10
adc %r9, %r11
mov %r10, -8(rp)
adc %rbx, %rbp C rbx = 0
L(n2): mov (rp), %r10
ADDSUB %r11, %r10
adc %rbp, %rax
mov %r10, (rp)
adc %rbx, %rdx C rbx = 0
L(n1): mov 8(rp), %r10
ADDSUB %rax, %r10
mov %r10, 8(rp)
mov R32(%rbx), R32(%rax) C rbx = 0
adc %rdx, %rax
pop %rbp
pop %rbx
FUNC_EXIT()
ret
EPILOGUE()
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;; ADC HANDLER ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;This file is for storing the MAIN code used to control the adc.
;this is the code that handles the ADC interrupts. The ADC is on free
;running mode which means it will run a new ADC interrupt whenver the
;last ADC conversion is complete
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
handleADC:
push temp
in temp, SREG
push temp
push rmask
push cmask
push temp2
push col
;read from ADC
lds temp2, ADCL
lds temp, ADCH
cpii screenStageFol, stage_pot_reset
brne checkIfPotFind
ldi rmask, high(pot_pos_min)
cpi temp2, low(pot_pos_min)
cpc temp, rmask ;are we less than the min?
brge clrRowPreEndADC
ldi row, 1 ; this means that RESET is being held
rjmp endHandleADC
clrRowPreEndADC:
clr row
rjmp endHandleADC
checkIfPotFind: ;since we arent on reset pot screen, check if we are on pot find screen
cpii screenStageFol, stage_pot_find ;cmask is LOW bits, rmask is HIGH bits
breq performPotFind
rjmp endHandleADC
performPotFind:
clr col ;boolean for 'adc is higher' to check bounds so we can lose game :(
cp temp2, cmask
cpc temp, rmask
brlo adcIsLower
rjmp adcIsHigher
adcIsLower: ;adc is higher than target
sub cmask, temp2
sbc rmask, temp
rjmp checkBelow16
adcIsHigher: ;adc is lower than target
sub temp2, cmask
sbc temp, rmask
mov cmask, temp2
mov rmask, temp
ldi col, 1
checkBelow16: ;check if within 16 adc counts
ldi temp, high(17)
cpi cmask, low(17)
cpc rmask, temp
brsh checkBelow32
ldi temp2, 0xFF
ldi temp, 0b11 ;for LED
ldi row, 1 ; this means that POSITION is being held
rjmp endCheckIfPotFind
checkBelow32: ;check if within 32 adc counts
clr row ; clear flag (which says we are within 16 ADC)
ldi temp, high(33)
cpi cmask, low(33)
cpc rmask, temp
brsh checkBelow48
ldi temp2, 0xFF
ldi temp, 0b01
rjmp endCheckIfPotFind
checkBelow48: ;check if within 48 adc counts
ldi temp, high(49)
cpi cmask, low(49)
cpc rmask, temp
brsh notWithinAnyBounds
ldi temp2, 0xFF
ldi temp, 0b00
rjmp endCheckIfPotFind
notWithinAnyBounds:
clr temp ;clear these values, as the LED values will be placed in them
clr temp2 ;but they will remain blank for within the set bounds
cpi col, 1
brne endCheckIfPotFind
ldii screenStage, stage_pot_reset
endCheckIfPotFind:
out PORTC, temp2 ;put LED lights on display
out PORTG, temp
endHandleADC:
pop col
pop temp2
pop cmask
pop rmask
pop temp
out SREG, temp
pop temp
reti
|
; A329305: Denominators of convergents to A309930, the constant whose continued fraction representation consists of the cubes, [0; 1, 8, 27, 64, ...].
; Submitted by Christian Krause
; 1,1,9,244,15625,1953369,421943329,144728515216,74101421733921,54020081172543625,54020155273965358921,71900880689729065267476,124244775852007098747557449,272965844447740285677448982929,749018401409375195906018756714625
mov $2,1
mov $3,$0
lpb $3
mov $0,$2
mul $2,$3
mul $2,$3
mul $2,$3
add $2,$1
mov $1,$0
sub $3,1
lpe
mov $0,$2
|
#import "64spec/lib/64spec.asm"
#import "../lib/invoke-global.asm"
sfspec: init_spec()
describe("copyLargeMemForward")
it("copies 7 bytes forward non overlapping"); {
c64lib_pushParamW(dataToBeMoved)
c64lib_pushParamW(targetLocation)
c64lib_pushParamW(7)
jsr copyLargeMemForward
assert_bytes_equal 7: targetLocation: dataToBeMoved
}
it("copies 260 bytes forward non overlapping"); {
c64lib_pushParamW(largeDataToBeMoved)
c64lib_pushParamW(largeTargetLocation)
c64lib_pushParamW(260)
jsr copyLargeMemForward
assert_bytes_equal 19: largeTargetLocation: largeDataToBeMoved
}
finish_spec()
* = * "Data"
copyLargeMemForward:
#import "../lib/sub/copy-large-mem-forward.asm"
dataToBeMoved: .text "foo bar"
targetLocation: .text " "
largeDataToBeMoved: .fill 260, 127.5 + sin(toRadians(i*360/256))
largeTargetLocation: .fill 260, 0
|
; A208537: Number of 7-bead necklaces of n colors not allowing reversal, with no adjacent beads having the same color.
; 0,0,18,312,2340,11160,39990,117648,299592,683280,1428570,2783880,5118828,8964072,15059070,24408480,38347920,58619808,87460002,127695960,182857140,257298360,356336838,486403632,655210200,871930800,1147401450,1494336168,1927561212,2464268040,3124285710,3930373440,4908534048,6088348992,7503335730,9191328120,11194880580,13561696728,16345083222,19604429520,23405714280,27822039120,32934190458,38831230152,45611115660,53381350440,62259665310,72374731488,83866906032,96889010400,111607142850,128201525400,146867386068,167815877112,191275029990,217490747760,246727835640,279271070448,315426309642,355521640680,399908571420,448963262280,503087800878,562711519872,628292358720,700318270080,779308671570,865815943608,960426974052,1063764750360,1176489999990,1299302879760,1432944714888,1578199788432,1735897181850,1906912667400,2092170653100,2292646180968,2509366979262,2743415569440,2995931428560,3268113207840,3561221008098,3876578712792,4215576379380,4579672689720,4970397460230,5389354212528,5838222805272,6318762127920,6832812857130,7382300276520,7969237160508,8595726722952,9263965631310,9976247087040,10734963972960,11542612068288,12401793332082,13315219255800,14285714285700,15316219315800,16409795252118,17569626648912,18799025417640,20101434609360,21480432271290,22939735378248,24483203839692,26114844583080,27838815714270,29659430755680,31581162962928,33608649720672,35746697018370,38000284006680,40374567635220,42874887372408,45506770008102,48275934539760,51188297142840,54249976226160,57467297572938,60846799568232,64395238513500,68119594029000,72027074544750,76125122880768,80421421917312,84923900355840,89640738571410,94580374557240,99751509962148,105163116221592,110824440783030,116745013426320,122934652679880,129403472333328,136161888047322,143220624061320,150590719999980,158283537778920,166310768610558,174684440110752,183416923506960,192520940948640,202009572920610,211896265760088,222194839278132,232919494486200,244084821428550,255705807121200,267797843598168,280376736065712,293458711165290,307060425345960,321198973346940,335891896791048,351157192889742,367013323260480,383479222857120,400574309014080,418318490604978,436732177316472,455836289038020,475652265368280,496202075238870,517508226656208,539593776562152,562482340814160,586198104285690,610765831087560,636210874910988,662559189493032,689837339205150,718072509765600,747292519076400,777525828185568,808801552375362,841149472377240,874600045714260,909184418171640,944934435396198,981882654625392,1020062356546680,1059507557287920,1100253020539530,1142334269809128,1185787600809372,1230650093979720,1276959627142830,1324754888296320,1374075388540608,1424961475143552,1477454344742610,1531596056685240,1587429546508260,1644998639556888,1704348064744182,1765523468451600,1828571428571400,1893539468691600,1960476072424218,2029430697877512,2100453792272940,2173596806707560,2248912211062590,2326453509058848,2406275253459792,2488433061422880
mov $1,$0
pow $1,7
sub $1,$0
div $1,42
mul $1,6
|
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoinunits.h"
#include "chainparams.h"
#include "policy/feerate.h"
#include "primitives/transaction.h"
#include <QSettings>
#include <QStringList>
#include <iostream>
BitcoinUnits::BitcoinUnits(QObject* parent) : QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(SRG);
unitlist.append(mSRG);
unitlist.append(uSRG);
return unitlist;
}
bool BitcoinUnits::valid(int unit)
{
switch (unit) {
case SRG:
case mSRG:
case uSRG:
return true;
default:
return false;
}
}
QString BitcoinUnits::id(int unit)
{
switch (unit) {
case SRG:
return QString("surge");
case mSRG:
return QString("msurge");
case uSRG:
return QString::fromUtf8("usurge");
default:
return QString("???");
}
}
QString BitcoinUnits::name(int unit, bool isZsrg)
{
const QString CURR_UNIT = QString(CURRENCY_UNIT.c_str());
QString z = "";
if(isZsrg) z = "z";
if (Params().NetworkIDString() == CBaseChainParams::MAIN) {
switch (unit) {
case SRG:
return z + CURR_UNIT;
case mSRG:
return z + QString("m") + CURR_UNIT;
case uSRG:
return z + QString::fromUtf8("μ") + CURR_UNIT;
default:
return QString("???");
}
} else {
switch (unit) {
case SRG:
return z + QString("t") + CURR_UNIT;
case mSRG:
return z + QString("mt") + CURR_UNIT;
case uSRG:
return z + QString::fromUtf8("μt") + CURR_UNIT;
default:
return QString("???");
}
}
}
QString BitcoinUnits::description(int unit)
{
const QString CURR_UNIT = QString(CURRENCY_UNIT.c_str());
if (Params().NetworkIDString() == CBaseChainParams::MAIN) {
switch (unit) {
case SRG:
return CURR_UNIT;
case mSRG:
return QString("Milli-") + CURR_UNIT + QString(" (1 / 1" THIN_SP_UTF8 "000)");
case uSRG:
return QString("Micro-") + CURR_UNIT + QString(" (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default:
return QString("???");
}
} else {
switch (unit) {
case SRG:
return QString("Test") + CURR_UNIT;
case mSRG:
return QString("Milli-Test") + CURR_UNIT + QString(" (1 / 1" THIN_SP_UTF8 "000)");
case uSRG:
return QString("Micro-Test") + CURR_UNIT + QString(" (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
default:
return QString("???");
}
}
}
qint64 BitcoinUnits::factor(int unit)
{
switch (unit) {
case SRG:
return 100000000;
case mSRG:
return 100000;
case uSRG:
return 100;
default:
return 100000000;
}
}
int BitcoinUnits::decimals(int unit)
{
switch (unit) {
case SRG:
return 8;
case mSRG:
return 5;
case uSRG:
return 2;
default:
return 0;
}
}
QString BitcoinUnits::format(int unit, const CAmount& nIn, bool fPlus, SeparatorStyle separators, bool cleanRemainderZeros)
{
// Note: not using straight sprintf here because we do NOT want
// localized number formatting.
if (!valid(unit)){
return QString(); // Refuse to format invalid unit
}
qint64 n = (qint64)nIn;
qint64 coin = factor(unit);
int num_decimals = decimals(unit);
qint64 n_abs = (n > 0 ? n : -n);
qint64 quotient = n_abs / coin;
qint64 remainder = n_abs % coin;
QString quotient_str = QString::number(quotient);
QString remainder_str = QString::number(remainder).rightJustified(num_decimals, '0');
// Use SI-style thin space separators as these are locale independent and can't be
// confused with the decimal marker.
QChar thin_sp(THIN_SP_CP);
int q_size = quotient_str.size();
if (separators == separatorAlways || (separators == separatorStandard && q_size > 4))
for (int i = 3; i < q_size; i += 3)
quotient_str.insert(q_size - i, thin_sp);
if (n < 0)
quotient_str.insert(0, '-');
else if (fPlus && n > 0)
quotient_str.insert(0, '+');
if (num_decimals <= 0)
return quotient_str;
if(cleanRemainderZeros) {
// Clean remainder
QString cleanRemainder = remainder_str;
for (int i = (remainder_str.length() - 1); i > 1; i--) {
if (remainder_str.at(i) == QChar('0')) {
cleanRemainder = cleanRemainder.left(cleanRemainder.lastIndexOf("0"));
} else
break;
}
return quotient_str + QString(".") + cleanRemainder;
}
return quotient_str + QString(".") + remainder_str;
}
// TODO: Review all remaining calls to BitcoinUnits::formatWithUnit to
// TODO: determine whether the output is used in a plain text context
// TODO: or an HTML context (and replace with
// TODO: BtcoinUnits::formatHtmlWithUnit in the latter case). Hopefully
// TODO: there aren't instances where the result could be used in
// TODO: either context.
// NOTE: Using formatWithUnit in an HTML context risks wrapping
// quantities at the thousands separator. More subtly, it also results
// in a standard space rather than a thin space, due to a bug in Qt's
// XML whitespace canonicalisation
//
// Please take care to use formatHtmlWithUnit instead, when
// appropriate.
QString BitcoinUnits::formatWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators)
{
return format(unit, amount, plussign, separators) + QString(" ") + name(unit);
}
QString BitcoinUnits::formatHtmlWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators)
{
QString str(formatWithUnit(unit, amount, plussign, separators));
str.replace(QChar(THIN_SP_CP), QString(COMMA_HTML));
return QString("<span style='white-space: nowrap;'>%1</span>").arg(str);
}
QString BitcoinUnits::floorWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators, bool cleanRemainderZeros, bool isZSRG)
{
QSettings settings;
int digits = settings.value("digits").toInt();
QString result = format(unit, amount, plussign, separators, cleanRemainderZeros);
if(decimals(unit) > digits) {
if (!cleanRemainderZeros) {
result.chop(decimals(unit) - digits);
} else {
int lenght = result.mid(result.indexOf("."), result.length() - 1).length() - 1;
if (lenght > digits) {
result.chop(lenght - digits);
}
}
}
return result + QString(" ") + name(unit, isZSRG);
}
QString BitcoinUnits::floorHtmlWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators, bool cleanRemainderZeros, bool isZSRG)
{
QString str(floorWithUnit(unit, amount, plussign, separators, cleanRemainderZeros, isZSRG));
str.replace(QChar(THIN_SP_CP), QString(COMMA_HTML));
return QString("<span style='white-space: nowrap;'>%1</span>").arg(str);
}
bool BitcoinUnits::parse(int unit, const QString& value, CAmount* val_out)
{
if (!valid(unit) || value.isEmpty())
return false; // Refuse to parse invalid unit or empty string
int num_decimals = decimals(unit);
// Ignore spaces and thin spaces when parsing
QStringList parts = removeSpaces(value).replace(",", ".").split(".");
if (parts.size() > 2) {
return false; // More than one dot
}
QString whole = parts[0];
QString decimals;
if (parts.size() > 1) {
decimals = parts[1];
}
if (decimals.size() > num_decimals) {
return false; // Exceeds max precision
}
bool ok = false;
QString str = whole + decimals.leftJustified(num_decimals, '0');
if (str.size() > 18) {
return false; // Longer numbers will exceed 63 bits
}
CAmount retvalue(str.toLongLong(&ok));
if (val_out) {
*val_out = retvalue;
}
return ok;
}
QString BitcoinUnits::getAmountColumnTitle(int unit)
{
QString amountTitle = QObject::tr("Amount");
if (BitcoinUnits::valid(unit)) {
amountTitle += " (" + BitcoinUnits::name(unit) + ")";
}
return amountTitle;
}
int BitcoinUnits::rowCount(const QModelIndex& parent) const
{
Q_UNUSED(parent);
return unitlist.size();
}
QVariant BitcoinUnits::data(const QModelIndex& index, int role) const
{
int row = index.row();
if (row >= 0 && row < unitlist.size()) {
Unit unit = unitlist.at(row);
switch (role) {
case Qt::EditRole:
case Qt::DisplayRole:
return QVariant(name(unit));
case Qt::ToolTipRole:
return QVariant(description(unit));
case UnitRole:
return QVariant(static_cast<int>(unit));
}
}
return QVariant();
}
CAmount BitcoinUnits::maxMoney()
{
return Params().GetConsensus().nMaxMoneyOut;
}
|
; ---------------------------------------------------------------------------
; Subroutine to push Sonic down a slope
; ---------------------------------------------------------------------------
; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
Sonic_SlopeRepel:
nop
tst.b $38(a0)
bne.s locret_13580
tst.w $3E(a0)
bne.s loc_13582
move.b obAngle(a0),d0
addi.b #$20,d0
andi.b #$C0,d0
beq.s locret_13580
move.w obInertia(a0),d0
bpl.s loc_1356A
neg.w d0
loc_1356A:
cmpi.w #$280,d0
bcc.s locret_13580
clr.w obInertia(a0)
bset #1,obStatus(a0)
move.w #$1E,$3E(a0)
locret_13580:
rts
; ===========================================================================
loc_13582:
subq.w #1,$3E(a0)
rts
; End of function Sonic_SlopeRepel |
###############################################################################
# Copyright 2019 Intel Corporation
# All Rights Reserved.
#
# If this software was obtained under the Intel Simplified Software License,
# the following terms apply:
#
# The source code, information and material ("Material") contained herein is
# owned by Intel Corporation or its suppliers or licensors, and title to such
# Material remains with Intel Corporation or its suppliers or licensors. The
# Material contains proprietary information of Intel or its suppliers and
# licensors. The Material is protected by worldwide copyright laws and treaty
# provisions. No part of the Material may be used, copied, reproduced,
# modified, published, uploaded, posted, transmitted, distributed or disclosed
# in any way without Intel's prior express written permission. No license under
# any patent, copyright or other intellectual property rights in the Material
# is granted to or conferred upon you, either expressly, by implication,
# inducement, estoppel or otherwise. Any license under such intellectual
# property rights must be express and approved by Intel in writing.
#
# Unless otherwise agreed by Intel in writing, you may not remove or alter this
# notice or any other notice embedded in Materials by Intel or Intel's
# suppliers or licensors in any way.
#
#
# If this software was obtained under the Apache License, Version 2.0 (the
# "License"), the following terms apply:
#
# You may not use this file except in compliance with the License. You may
# obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
.text
.p2align 4, 0x90
.globl _p8_cpInc_BNU
_p8_cpInc_BNU:
push %ebp
mov %esp, %ebp
push %ebx
push %esi
push %edi
movl (8)(%ebp), %edi
movl (12)(%ebp), %esi
movl (20)(%ebp), %eax
movd (20)(%ebp), %mm0
movl (16)(%ebp), %edx
shl $(2), %edx
xor %ecx, %ecx
.p2align 4, 0x90
.Lmain_loopgas_1:
movd (%esi,%ecx), %mm1
paddq %mm0, %mm1
movd %mm1, (%edi,%ecx)
pshufw $(254), %mm1, %mm0
movd %mm0, %eax
add $(4), %ecx
cmp %edx, %ecx
jl .Lmain_loopgas_1
.Lexit_loopgas_1:
emms
pop %edi
pop %esi
pop %ebx
pop %ebp
ret
|
; https://adventofcode.com/2020/day/20 (part 2)
OPT listoff : DEVICE ZXSPECTRUMNEXT : MMU 0 7, 0, $0000
inputFile: ; load the input.txt into virtual device memory for processing
; INCBIN "input_t.txt" ; expected result: 273
INCBIN "input.txt"
inputEnd:
ASSERT "\n" == {b $-1} ; verify there is ending EOL
DS 128,0 : ALIGN 256,0 ; zeroed padding after + align address
; about input files:
; Tiles have 4-digit ID of [1000,9999] range, tiles are 10x10 chars in both inputs
; The test input has 9 tiles 10x10, forming 3x3 image
; 1951 2311 3079 internal Ids: 1 0 8
; 2729 1427 2473 7 3 5
; 2971 1489 1171 6 4 2
; The puzzle input has 144 tiles, supposedly forming 12x12 image
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; what follows is basically Part 1 copy -> it will find the corner tiles
; (maybe not the most optimal approach, but there's little incentive to rewrite it)
MACRO PARSE_VALUE symbol?
symbol? = 0
WHILE '0' <= {b inPtr} && {b inPtr} <= '9'
symbol? = symbol? * 10 + {b inPtr} - '0'
inPtr = inPtr + 1
ENDW
ENDM
parseEdgeCharPtr = 0
MACRO PARSE_EDGE charPtr?, symbol?
symbol? = 0
parseEdgeCharPtr = charPtr?
DUP 10
ASSERT '.' == {b parseEdgeCharPtr} || '#' == {b parseEdgeCharPtr}
symbol? = (symbol? << 1) | (1 & ('#' == {b parseEdgeCharPtr}))
parseEdgeCharPtr = parseEdgeCharPtr + 1
EDUP
ENDM
mirror2_10b_from = 0
MACRO MIRROR2_10B from?, to?
mirror2_10b_from = from?
to? = 0
DUP 10
to? = (to? << 1) | (1 & mirror2_10b_from)
mirror2_10b_from = mirror2_10b_from >>> 1
EDUP
ENDM
mirror10b_result = 0
MACRO MIRROR_10B symbol?
MIRROR2_10B symbol?, mirror10b_result
ENDM
addTileToEdgeNewCount = 0
MACRO ADD_TILE_TO_EDGE_IMPL edge?, tileId?
ORG edgeHasTile + (edge?) * EDGE_HAS_TILE_SZ
addTileToEdgeNewCount = 1 + {b $} : ASSERT addTileToEdgeNewCount < EDGE_HAS_TILE_SZ
DB addTileToEdgeNewCount
; DISPLAY "Adding tile ",/D,tileId?," to edge ",edge?,", current count ",/D,addTileToEdgeNewCount
ORG $ - 1 + addTileToEdgeNewCount : DB tileId?
ENDM
addTileToEdgeMirrored = 0
MACRO ADD_TILE_TO_EDGE edge?, tileId?
ADD_TILE_TO_EDGE_IMPL edge?, tileId?
MIRROR2_10B edge?, addTileToEdgeMirrored
ADD_TILE_TO_EDGE_IMPL addTileToEdgeMirrored, tileId?
ENDM
EDGE_HAS_TILE_SZ EQU 8 ; 1B counter + 7 bytes for internal tile ID
; transformations bits (could be combined into final transformation value)
T_ROT_90 EQU $01 ; rotate 90 degree clockwise
T_MIR_X EQU $02 ; mirror x-axis (right side to left)
T_MIR_Y EQU $04 ; mirror y-axis (bottom to top)
tileIds: DS 512,0
tileEdges: DS 256*4*2,$FF
finalEdges: DS 256*4*2,$FF ; same as tileEdges, but after transformations are applied
edgeHasTile: DS (1<<10)*EDGE_HAS_TILE_SZ,0
tileMap DS 12*12*2 ; max tile size is 12x12 (2 bytes per tile for transformation info)
tilePlaced DS 256,0
tiles = 0
tileId = 0
tId = 0 ; internal ID (0..143)
inEdgeT = 0
inEdgeR = 0
inEdgeB = 0
inEdgeL = 0
tEdgeT = 0
tEdgeR = 0
tEdgeB = 0
tEdgeL = 0
tEdge = 0
transformation = 0
inEdgeWorkBuffer: DS 32*2
inTileGfxWorkBuffer: DS 8*8
ALIGN 256
part2Image DS 100*100,' '
ORG part2Image+99 : DUP 100 : DB "\n" : ORG $+99 : EDUP ; put EOLs at +99 offset
ASSERT $ < $FFFF
; parse tiles from input
inPtr = inputFile
WHILE inPtr < inputEnd && 'T' == {b inPtr}
ASSERT 'iT' == {inPtr} && 'el' == {inPtr+2} && ' ' == {b inPtr+4}
inPtr = inPtr + 5
; parse + store 4-digit ID of next tile
tId = tiles
PARSE_VALUE tileId : ORG tileIds + (tId<<1) : DW tileId
tiles = tiles + 1
ASSERT "\n:" == {inPtr}
inPtr = inPtr + 2
; copy side-edge chars into work buffer from top line
ORG inEdgeWorkBuffer : DB {b inPtr} : ORG $+31 : DB {b inPtr+9} : ASSERT "\n" == {b inPtr+10}
PARSE_EDGE inPtr, inEdgeT ; turn top edge into 10 bit integer value
inPtr = inPtr + 11
DUP 8
; copy side-edge chars into work buffer from middle lines
ORG $-32 : DB {b inPtr} : ORG $+31 : DB {b inPtr+9} : ASSERT "\n" == {b inPtr+10}
inPtr = inPtr + 11
EDUP
; copy side-edge chars into work buffer from bottom line
ORG $-32 : DB {b inPtr} : ORG $+31 : DB {b inPtr+9} : ASSERT "\n\n" == {inPtr+10}
; turn bottom/left/right edge chars into 10 bit integer values
PARSE_EDGE inPtr, inEdgeB
PARSE_EDGE inEdgeWorkBuffer, inEdgeL
PARSE_EDGE (inEdgeWorkBuffer + 32), inEdgeR
inPtr = inPtr + 12
; top and bottom are left-to-right, left and right are top-to-bottom (msb-to-lsb)
; from the "clockwise" point of view the bottom and right edge are mirrored
DISPLAY "Reading tile ",/D,tileId," (internal: ",/D,tId,"),\tedges [top, right, bottom, left]: ",inEdgeT,",",inEdgeR,",",inEdgeB,",",inEdgeL
ORG tileEdges + (tId << 3) : DW inEdgeT,inEdgeR,inEdgeB,inEdgeL
ADD_TILE_TO_EDGE inEdgeT, tId
ADD_TILE_TO_EDGE inEdgeR, tId
ADD_TILE_TO_EDGE inEdgeB, tId
ADD_TILE_TO_EDGE inEdgeL, tId
ENDW
DISPLAY "Parsed tiles ",/D,tiles
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; part 2 changes...
; calculate possible size of big image in tiles (3x3 for test data, 12x12 for real)
Tsize = 1
WHILE Tsize * Tsize < tiles
Tsize = Tsize + 1
ENDW
ASSERT Tsize * Tsize == tiles && Tsize <= 12 : DISPLAY "Map size in tiles: ",/D,Tsize,"x",/D,Tsize
; search for one corner tile to start tiling process
cornerTileId = -1
tId = 0
WHILE -1 == cornerTileId && tId < tiles
inPtr = tileEdges + tId * 4 * 2 ; four edges of tile tId
inEdgeT = {b edgeHasTile + {inPtr+0} * EDGE_HAS_TILE_SZ} ; count of tiles with same edge (top)
inEdgeR = {b edgeHasTile + {inPtr+2} * EDGE_HAS_TILE_SZ} ; right
inEdgeB = {b edgeHasTile + {inPtr+4} * EDGE_HAS_TILE_SZ} ; bottom
inEdgeL = {b edgeHasTile + {inPtr+6} * EDGE_HAS_TILE_SZ} ; left
IF ((1 == inEdgeT) + (1 == inEdgeR) + (1 == inEdgeB) + (1 == inEdgeL)) <= -2 ; "true" in sjasmplus has value of -1
cornerTileId = tId ; the tile has two or more unique edges, must be a corner (border tiles have single unique edge, inner tiles zero)
ELSE
tId = tId + 1
ENDIF
ENDW
; tiling macro
placeTileTranform = 0
MACRO PLACE_TILE ; tId, tx, ty, inEdgeR, inEdgeB
DISPLAY "Place tile ",/D,tId," at [",/D,tx,",",/D,ty,"] with edges [L: ",inEdgeR&$FFFF,", T: ",inEdgeB&$FFFF,"]"
ASSERT 0 == {b tilePlaced + tId}
placeTileTranform = 0
inPtr = tileEdges + tId * 4 * 2 ; original four edges of tile tId
WHILE 3 == __PASS__ && 0 == {b tilePlaced + tId}
ASSERT placeTileTranform <= (T_ROT_90|T_MIR_X|T_MIR_Y)
; transform the original edges by placeTileTranform (rot = 1, mir_x = 2, mir_y = 4)
IF placeTileTranform&T_ROT_90
MIRROR2_10B {inPtr+6}, tEdgeT ; top = mirror(left)
tEdgeR = {inPtr+0} ; right = top
MIRROR2_10B {inPtr+2}, tEdgeB ; bottom = mirror(right)
tEdgeL = {inPtr+4} ; left = bottom
ELSE
tEdgeT = {inPtr+0}
tEdgeR = {inPtr+2}
tEdgeB = {inPtr+4}
tEdgeL = {inPtr+6}
ENDIF
IF placeTileTranform&T_MIR_X
tEdge = tEdgeR ; swap right<->left
tEdgeR = tEdgeL ; and mirror top and bottom
tEdgeL = tEdge
MIRROR2_10B tEdgeT, tEdgeT
MIRROR2_10B tEdgeB, tEdgeB
ENDIF
IF placeTileTranform&T_MIR_Y
tEdge = tEdgeT ; swap top<->bottom
tEdgeT = tEdgeB ; and mirror left and right
tEdgeB = tEdge
MIRROR2_10B tEdgeL, tEdgeL
MIRROR2_10B tEdgeR, tEdgeR
ENDIF
; store transformed edges
ORG finalEdges + tId * 4 * 2 : DW tEdgeT, tEdgeR, tEdgeB, tEdgeL
; reuse the bottom/right to find number of shared tiles for top/left
tEdgeR = {b edgeHasTile + tEdgeL * EDGE_HAS_TILE_SZ}
tEdgeB = {b edgeHasTile + tEdgeT * EDGE_HAS_TILE_SZ}
; if the current transformation fits the requirements, then place it
IF ((-1 == inEdgeR) || (tEdgeL == inEdgeR) || (1<<10 == inEdgeR && 1 == tEdgeR)) && ((-1 == inEdgeB) || (tEdgeT == inEdgeB) || (1<<10 == inEdgeB && 1 == tEdgeB))
ORG tilePlaced + tId : DB 1
ORG tileMap + ty * Tsize * 2 + tx * 2 : DB tId, placeTileTranform
ENDIF
placeTileTranform = placeTileTranform + 1
ENDW
ENDM
; start tiling (finding correct tiles and transformations, one by one
DISPLAY "Tile (",/D,cornerTileId,") ",/D,{tileIds + (cornerTileId<<1)}," choosen as corner tile (t ",/D,inEdgeT,", r ",/D,inEdgeR,", b ",/D,inEdgeB,", l ",/D,inEdgeL,")"
tmpId = 0
ty = 0
DUP Tsize
tx = 0
DUP Tsize
IF 0 == tx
IF 0 == ty
tId = cornerTileId ; top-left [0,0] corner is seeded from cornerTileId variable
inEdgeR = 1<<10 ; any edge, but must be unique
inEdgeB = 1<<10 ; any edge, but must be unique
ELSE
tmpId = {b tileMap + (ty - 1) * Tsize * 2} ; id of tile[0,ty-1] (above of [0,ty])
inEdgeR = -1 ; don't check
inEdgeB = {finalEdges + tmpId * 4 * 2 + 4} ; bottom-edge of tile above
; find the other tile id for the shared edge and assign to tId
ASSERT 2 <= {b edgeHasTile + inEdgeB * EDGE_HAS_TILE_SZ} ; must be shared
tId = {b edgeHasTile + inEdgeB * EDGE_HAS_TILE_SZ + 1}
IF tmpId == tId
tId = {b edgeHasTile + inEdgeB * EDGE_HAS_TILE_SZ + 2}
ENDIF
ENDIF
ELSE
tmpId = {b tileMap + ty * Tsize * 2 + (tx - 1) * 2} ; id of tile[tx-1,ty] (left of [tx,ty])
inEdgeR = {finalEdges + tmpId * 4 * 2 + 2} ; right-edge of tile left
inEdgeB = -1 ; don't check
; find the other tile id for the shared edge and assign to tId
ASSERT 2 <= {b edgeHasTile + inEdgeR * EDGE_HAS_TILE_SZ} ; must be shared
tId = {b edgeHasTile + inEdgeR * EDGE_HAS_TILE_SZ + 1}
IF tmpId == tId
tId = {b edgeHasTile + inEdgeR * EDGE_HAS_TILE_SZ + 2}
ENDIF
ENDIF
PLACE_TILE ; tId, tx, ty, inEdgeR, inEdgeB
tx = tx + 1
EDUP
ty = ty + 1
EDUP
; debug output of final tile map before re-reading input to get image
DISPLAY "Map ",/D,Tsize,"x",/D,Tsize,": (ignore extra values on line if map is smaller than 12x12)"
ty = 0
DUP Tsize
ORG tileMap+ty*Tsize*2
DISPLAY /D,{tileIds+({b $+0}<<1)}," t",/D,{b $+1}," ",/D,{tileIds+({b $+2}<<1)}," t",/D,{b $+3}," ",/D,{tileIds+({b $+4}<<1)}," t",/D,{b $+5}," ",/D,{tileIds+({b $+6}<<1)}," t",/D,{b $+7}," ",/D,{tileIds+({b $+8}<<1)}," t",/D,{b $+9}," ",/D,{tileIds+({b $+10}<<1)}," t",/D,{b $+11}," ",/D,{tileIds+({b $+12}<<1)}," t",/D,{b $+13}," ",/D,{tileIds+({b $+14}<<1)}," t",/D,{b $+15}," ",/D,{tileIds+({b $+16}<<1)}," t",/D,{b $+17}," ",/D,{tileIds+({b $+18}<<1)}," t",/D,{b $+19}," ",/D,{tileIds+({b $+20}<<1)}," t",/D,{b $+21}," ",/D,{tileIds+({b $+22}<<1)}," t",/D,{b $+23}
ty = ty + 1
EDUP
; "draw" into memory the full image without the tile-edges, so the monsters can be searched in it
gfxSrc = 0
gfxSrcDX = 1
gfxSrcDY = 0
gfxSrcLDX = 0
gfxSrcLDY = 1
roughWater = 0
IF 3 == __PASS__
inPtr = inputFile
tId = 0
DISPLAY "Reading tiles gfx and creating big image..."
DUP tiles
; read the tile "tId" gfx into inTileGfxWorkBuffer
ASSERT inPtr < inputEnd && 'iT' == {inPtr} && 'el' == {inPtr+2} && ' ' == {b inPtr+4} && "\n:" == {inPtr+9} && "\n" == {b inPtr+21}
inPtr = inPtr + 11 + 11 + 1 ; skip to second line to second character
ORG inTileGfxWorkBuffer ; read 8 lines of inner pixels into work buffer
DUP 8
DUP 8
IF '#' == {b inPtr}
roughWater = roughWater + 1
ENDIF
DB {b inPtr}
inPtr = inPtr + 1
EDUP
ASSERT "\n" == {b inPtr+1}
inPtr = inPtr + 3 ; skip last character, EOL and first character of next line
EDUP
inPtr = inPtr + 9 : ASSERT "\n\n" == {inPtr}
inPtr = inPtr + 2 ; point onto the next tile in input file
; find the "tId" in tileMap and read the transformation to do upon the gfx data
tx = 0
ty = 0
WHILE tId != {b tileMap + ty * Tsize * 2 + tx * 2}
tx = tx + 1
IF Tsize <= tx
tx = 0
ty = ty + 1
ENDIF
ENDW
transformation = {b tileMap + ty * Tsize * 2 + tx * 2 + 1}
; DISPLAY "Tile ",/D,tId," placed at [",/D,tx,",",/D,ty,"] with tranformation: ",/D,transformation
; "draw" the gfx data into big image with the correct transformation
gfxSrc = inTileGfxWorkBuffer
gfxSrcDX = 1
gfxSrcDY = 0
gfxSrcLDX = 0
gfxSrcLDY = 1
IF transformation&T_ROT_90
gfxSrc = inTileGfxWorkBuffer + 7*8
gfxSrcDX = 0
gfxSrcDY = -1
gfxSrcLDX = 1
gfxSrcLDY = 0
ENDIF
IF transformation&T_MIR_X
gfxSrc = gfxSrc + 7 * (gfxSrcDX + 8 * gfxSrcDY)
gfxSrcDX = -gfxSrcDX
gfxSrcDY = -gfxSrcDY
ENDIF
IF transformation&T_MIR_Y
gfxSrc = gfxSrc + 7 * (gfxSrcLDX + 8 * gfxSrcLDY)
gfxSrcLDX = -gfxSrcLDX
gfxSrcLDY = -gfxSrcLDY
ENDIF
ORG part2Image + ty*8*100 + tx*8
DUP 8
DUP 8
DB {b gfxSrc}
gfxSrc = gfxSrc + gfxSrcDX + 8 * gfxSrcDY
EDUP
ORG $ - 8 + 100
gfxSrc = gfxSrc - 8 * gfxSrcDX - 8 * 8 * gfxSrcDY
gfxSrc = gfxSrc + gfxSrcLDX + 8 * gfxSrcLDY
EDUP
tId = tId + 1
EDUP
; SAVEBIN "dbg_image.txt",part2Image,100*100
ENDIF
DISPLAY "Total roughness of water before monster search: ",/D,roughWater
; search for the sea monsters (in all possible orientations)
transformation = 0 ; transformation of sea monster
DUP (T_ROT_90|T_MIR_X|T_MIR_Y)+1
DISPLAY "Searching for sea monsters in transformation ",/D,transformation
smOfs = 0
smDX = 1
smDY = 0
smLDX = 0
smLDY = 1
smWidth = 20
smHeight = 3
IF transformation&T_ROT_90
smOfs = 20*100
smDX = 0
smDY = -1
smLDX = 1
smLDY = 0
smWidth = 3
smHeight = 20
ENDIF
IF transformation&T_MIR_X
smOfs = smOfs + 19 * (smDX + 100 * smDY)
smDX = -smDX
smDY = -smDY
ENDIF
IF transformation&T_MIR_Y
smOfs = smOfs + 2 * (smLDX + 100 * smLDY)
smLDX = -smLDX
smLDY = -smLDY
ENDIF
monsters = 0
IF 3 == __PASS__
ty = 0
DUP Tsize * 8 - smHeight
inPtr = part2Image + 100 * ty
DUP Tsize * 8 - smWidth
; head (three [+18,+0],[+18,+1],[+19,+1])
IF '#' == {b inPtr + smOfs + 18*(smDX + 100*smDY) + 0*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 18*(smDX + 100*smDY) + 1*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 19*(smDX + 100*smDY) + 1*(smLDX + 100*smLDY)}
; first "S" (four [+0,+1],[+1,+2],[+4,+2],[+5,+1])
IF '#' == {b inPtr + smOfs + 0*(smDX + 100*smDY) + 1*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 1*(smDX + 100*smDY) + 2*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 5*(smDX + 100*smDY) + 1*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 4*(smDX + 100*smDY) + 2*(smLDX + 100*smLDY)}
; second "S" (like first, but x+6)
IF '#' == {b inPtr + smOfs + 6*(smDX + 100*smDY) + 1*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 7*(smDX + 100*smDY) + 2*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 11*(smDX + 100*smDY) + 1*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 10*(smDX + 100*smDY) + 2*(smLDX + 100*smLDY)}
; third "S" (like first, but x+12)
IF '#' == {b inPtr + smOfs + 12*(smDX + 100*smDY) + 1*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 13*(smDX + 100*smDY) + 2*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 17*(smDX + 100*smDY) + 1*(smLDX + 100*smLDY)} && '#' == {b inPtr + smOfs + 16*(smDX + 100*smDY) + 2*(smLDX + 100*smLDY)}
monsters = monsters + 1
ENDIF : ENDIF : ENDIF : ENDIF
inPtr = inPtr + 1
EDUP
ty = ty + 1
EDUP
DISPLAY "Found ",/D,monsters,", roughness of water: ",/D,roughWater - 15*monsters
ENDIF
transformation = transformation + 1
EDUP
|
/******************************************************************************
*
* Project: SVG Translator
* Purpose: Implements OGRSVGDataSource class
* Author: Even Rouault, even dot rouault at spatialys.com
*
******************************************************************************
* Copyright (c) 2011, Even Rouault <even dot rouault at spatialys.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
****************************************************************************/
#include "ogr_svg.h"
#include "cpl_conv.h"
CPL_CVSID("$Id$")
/************************************************************************/
/* OGRSVGDataSource() */
/************************************************************************/
OGRSVGDataSource::OGRSVGDataSource() :
pszName(nullptr),
papoLayers(nullptr),
nLayers(0)
#ifdef HAVE_EXPAT
,
eValidity(SVG_VALIDITY_UNKNOWN),
bIsCloudmade(false),
oCurrentParser(nullptr),
nDataHandlerCounter(0)
#endif
{}
/************************************************************************/
/* ~OGRSVGDataSource() */
/************************************************************************/
OGRSVGDataSource::~OGRSVGDataSource()
{
for( int i = 0; i < nLayers; i++ )
delete papoLayers[i];
CPLFree( papoLayers );
CPLFree( pszName );
}
/************************************************************************/
/* GetLayer() */
/************************************************************************/
OGRLayer *OGRSVGDataSource::GetLayer( int iLayer )
{
if( iLayer < 0 || iLayer >= nLayers )
return nullptr;
else
return papoLayers[iLayer];
}
#ifdef HAVE_EXPAT
/************************************************************************/
/* startElementValidateCbk() */
/************************************************************************/
void OGRSVGDataSource::startElementValidateCbk(const char *pszNameIn,
const char **ppszAttr)
{
if (eValidity == SVG_VALIDITY_UNKNOWN)
{
if (strcmp(pszNameIn, "svg") == 0)
{
eValidity = SVG_VALIDITY_VALID;
for( int i = 0; ppszAttr[i] != nullptr; i += 2 )
{
if (strcmp(ppszAttr[i], "xmlns:cm") == 0 &&
strcmp(ppszAttr[i+1], "http://cloudmade.com/") == 0)
{
bIsCloudmade = true;
break;
}
}
}
else
{
eValidity = SVG_VALIDITY_INVALID;
}
}
}
/************************************************************************/
/* dataHandlerValidateCbk() */
/************************************************************************/
void OGRSVGDataSource::dataHandlerValidateCbk(CPL_UNUSED const char *data,
CPL_UNUSED int nLen)
{
nDataHandlerCounter ++;
if (nDataHandlerCounter >= BUFSIZ)
{
CPLError(CE_Failure, CPLE_AppDefined,
"File probably corrupted (million laugh pattern)");
XML_StopParser(oCurrentParser, XML_FALSE);
}
}
static void XMLCALL startElementValidateCbk(void *pUserData,
const char *pszName, const char **ppszAttr)
{
OGRSVGDataSource* poDS = (OGRSVGDataSource*) pUserData;
poDS->startElementValidateCbk(pszName, ppszAttr);
}
static void XMLCALL dataHandlerValidateCbk(void *pUserData, const char *data, int nLen)
{
OGRSVGDataSource* poDS = (OGRSVGDataSource*) pUserData;
poDS->dataHandlerValidateCbk(data, nLen);
}
#endif
/************************************************************************/
/* Open() */
/************************************************************************/
int OGRSVGDataSource::Open( const char * pszFilename )
{
#ifdef HAVE_EXPAT
pszName = CPLStrdup( pszFilename );
/* -------------------------------------------------------------------- */
/* Try to open the file. */
/* -------------------------------------------------------------------- */
CPLString osFilename(pszFilename);
if (EQUAL(CPLGetExtension(pszFilename), "svgz") &&
strstr(pszFilename, "/vsigzip/") == nullptr)
{
osFilename = CPLString("/vsigzip/") + pszFilename;
pszFilename = osFilename.c_str();
}
VSILFILE* fp = VSIFOpenL(pszFilename, "r");
if (fp == nullptr)
return FALSE;
eValidity = SVG_VALIDITY_UNKNOWN;
XML_Parser oParser = OGRCreateExpatXMLParser();
oCurrentParser = oParser;
XML_SetUserData(oParser, this);
XML_SetElementHandler(oParser, ::startElementValidateCbk, nullptr);
XML_SetCharacterDataHandler(oParser, ::dataHandlerValidateCbk);
char aBuf[BUFSIZ];
int nDone = 0;
unsigned int nLen = 0;
int nCount = 0;
/* Begin to parse the file and look for the <svg> element */
/* It *MUST* be the first element of an XML file */
/* So once we have read the first element, we know if we can */
/* handle the file or not with that driver */
do
{
nDataHandlerCounter = 0;
nLen = (unsigned int) VSIFReadL( aBuf, 1, sizeof(aBuf), fp );
nDone = VSIFEofL(fp);
if (XML_Parse(oParser, aBuf, nLen, nDone) == XML_STATUS_ERROR)
{
if (nLen <= BUFSIZ-1)
aBuf[nLen] = 0;
else
aBuf[BUFSIZ-1] = 0;
if (strstr(aBuf, "<?xml") && strstr(aBuf, "<svg"))
{
CPLError(CE_Failure, CPLE_AppDefined,
"XML parsing of SVG file failed : %s at line %d, column %d",
XML_ErrorString(XML_GetErrorCode(oParser)),
(int)XML_GetCurrentLineNumber(oParser),
(int)XML_GetCurrentColumnNumber(oParser));
}
eValidity = SVG_VALIDITY_INVALID;
break;
}
if (eValidity == SVG_VALIDITY_INVALID)
{
break;
}
else if (eValidity == SVG_VALIDITY_VALID)
{
break;
}
else
{
/* After reading 50 * BUFSIZE bytes, and not finding whether the file */
/* is SVG or not, we give up and fail silently */
nCount ++;
if (nCount == 50)
break;
}
} while (!nDone && nLen > 0 );
XML_ParserFree(oParser);
VSIFCloseL(fp);
if (eValidity == SVG_VALIDITY_VALID)
{
if (bIsCloudmade)
{
nLayers = 3;
papoLayers =(OGRSVGLayer **) CPLRealloc(papoLayers,
nLayers * sizeof(OGRSVGLayer*));
papoLayers[0] = new OGRSVGLayer( pszFilename, "points", SVG_POINTS, this );
papoLayers[1] = new OGRSVGLayer( pszFilename, "lines", SVG_LINES, this );
papoLayers[2] = new OGRSVGLayer( pszFilename, "polygons", SVG_POLYGONS, this );
}
else
{
CPLDebug("SVG",
"%s seems to be a SVG file, but not a Cloudmade vector one.",
pszFilename);
}
}
return nLayers > 0;
#else
char aBuf[256];
VSILFILE* fp = VSIFOpenL(pszFilename, "r");
if (fp)
{
unsigned int nLen = (unsigned int)VSIFReadL( aBuf, 1, 255, fp );
aBuf[nLen] = 0;
if (strstr(aBuf, "<?xml") && strstr(aBuf, "<svg") &&
strstr(aBuf, "http://cloudmade.com/"))
{
CPLError(CE_Failure, CPLE_NotSupported,
"OGR/SVG driver has not been built with read support. "
"Expat library required");
}
VSIFCloseL(fp);
}
return FALSE;
#endif
}
/************************************************************************/
/* TestCapability() */
/************************************************************************/
int OGRSVGDataSource::TestCapability( CPL_UNUSED const char *pszCap )
{
return FALSE;
}
|
li $t0,5 #a
li $t1,3 #b
li $t2,3 #c
beq $t0,$t1,if
j else
if:add $t2,$t0,$t1
else:sub $t2,$t0,$t1
print:
li $v0,1
move $a0,$t2
syscall
|
; A110801: Numbers n such that 12n + 1 is prime.
; 1,3,5,6,8,9,13,15,16,19,20,23,26,28,29,31,33,34,35,36,38,45,48,50,51,55,56,59,61,63,64,69,71,73,78,83,84,85,86,89,91,93,94,96,100,101,103,104,108,110,115,119,121,124,129,133,134,135,138,139,141,145,146,148,149,150,155,156,161,166,168,169,171,174,176,178,180,185,189,190,191,195,198,199,203,206,210,213,216,218,223,224,226,229,233,236,238,243,246,250
mov $2,$0
add $2,1
pow $2,2
lpb $2
add $1,12
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
mov $4,$0
max $4,0
add $5,1
lpb $5
cmp $4,$0
mul $2,$4
trn $5,4
lpe
lpe
div $1,12
mov $0,$1
|
//=================================================================================================
/*!
// \file src/eigen/TDMatTDMatMult.cpp
// \brief Source file for the Eigen transpose dense matrix/transpose dense matrix multiplication kernel
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This file is part of the Blaze library. You can redistribute it and/or modify it under
// the terms of the New (Revised) BSD License. Redistribution and use in source and binary
// forms, with or without modification, are permitted provided that the following conditions
// are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other materials
// provided with the distribution.
// 3. Neither the names of the Blaze development group nor the names of its contributors
// may be used to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
// SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
// DAMAGE.
*/
//=================================================================================================
//*************************************************************************************************
// Includes
//*************************************************************************************************
#include <iostream>
#include <Eigen/Dense>
#include <blaze/util/NumericCast.h>
#include <blaze/util/Timing.h>
#include <blazemark/eigen/init/Matrix.h>
#include <blazemark/eigen/TDMatTDMatMult.h>
#include <blazemark/system/Config.h>
namespace blazemark {
namespace eigen {
//=================================================================================================
//
// KERNEL FUNCTIONS
//
//=================================================================================================
//*************************************************************************************************
/*!\brief Eigen transpose dense matrix/transpose dense matrix multiplication kernel.
//
// \param N The number of rows and columns of the matrices.
// \param steps The number of iteration steps to perform.
// \return Minimum runtime of the kernel function.
//
// This kernel function implements the transpose dense matrix/transpose dense matrix
// multiplication by means of the Eigen functionality.
*/
double tdmattdmatmult( size_t N, size_t steps )
{
using ::blazemark::element_t;
using ::blaze::numeric_cast;
using ::Eigen::Dynamic;
using ::Eigen::ColMajor;
::blaze::setSeed( seed );
::Eigen::Matrix<element_t,Dynamic,Dynamic,ColMajor> A( N, N ), B( N, N ), C( N, N );
::blaze::timing::WcTimer timer;
init( A );
init( B );
C.noalias() = A * B;
for( size_t rep=0UL; rep<reps; ++rep )
{
timer.start();
for( size_t step=0UL; step<steps; ++step ) {
C.noalias() = A * B;
}
timer.end();
if( numeric_cast<size_t>( C.rows() ) != N )
std::cerr << " Line " << __LINE__ << ": ERROR detected!!!\n";
if( timer.last() > maxtime )
break;
}
const double minTime( timer.min() );
const double avgTime( timer.average() );
if( minTime * ( 1.0 + deviation*0.01 ) < avgTime )
std::cerr << " Eigen kernel 'tdmattdmatmult': Time deviation too large!!!\n";
return minTime;
}
//*************************************************************************************************
} // namespace eigen
} // namespace blazemark
|
.size 8000
.text@48
jp lstatint
.text@100
jp lbegin
.data@143
c0
.text@150
lbegin:
ld a, 00
ldff(ff), a
ld a, 30
ldff(00), a
ld a, 01
ldff(4d), a
stop, 00
ld a, ff
ldff(45), a
ld b, 91
call lwaitly_b
ld hl, fe00
ld d, 10
ld a, d
ld(hl++), a
ld a, 08
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), a
ld a, 0e
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), a
ld a, 14
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), a
ld a, 28
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), a
ld a, 2e
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), a
ld a, 34
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), a
ld a, 48
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), a
ld a, 4e
ld(hl++), a
inc l
inc l
ld a, d
ld(hl++), a
ld a, 54
ld(hl++), a
ld a, 40
ldff(41), a
ld a, 02
ldff(ff), a
xor a, a
ldff(0f), a
ei
ld a, 01
ldff(45), a
ld c, 41
ld a, 93
ldff(40), a
.text@1000
lstatint:
nop
.text@1098
ldff a, (c)
and a, 03
jp lprint_a
.text@7000
lprint_a:
push af
ld b, 91
call lwaitly_b
xor a, a
ldff(40), a
pop af
ld(9800), a
ld bc, 7a00
ld hl, 8000
ld d, a0
lprint_copytiles:
ld a, (bc)
inc bc
ld(hl++), a
dec d
jrnz lprint_copytiles
ld a, c0
ldff(47), a
ld a, 80
ldff(68), a
ld a, ff
ldff(69), a
ldff(69), a
ldff(69), a
ldff(69), a
ldff(69), a
ldff(69), a
xor a, a
ldff(69), a
ldff(69), a
ldff(43), a
ld a, 91
ldff(40), a
lprint_limbo:
jr lprint_limbo
.text@7400
lwaitly_b:
ld c, 44
lwaitly_b_loop:
ldff a, (c)
cmp a, b
jrnz lwaitly_b_loop
ret
.data@7a00
00 00 7f 7f 41 41 41 41
41 41 41 41 41 41 7f 7f
00 00 08 08 08 08 08 08
08 08 08 08 08 08 08 08
00 00 7f 7f 01 01 01 01
7f 7f 40 40 40 40 7f 7f
00 00 7f 7f 01 01 01 01
3f 3f 01 01 01 01 7f 7f
00 00 41 41 41 41 41 41
7f 7f 01 01 01 01 01 01
00 00 7f 7f 40 40 40 40
7e 7e 01 01 01 01 7e 7e
00 00 7f 7f 40 40 40 40
7f 7f 41 41 41 41 7f 7f
00 00 7f 7f 01 01 02 02
04 04 08 08 10 10 10 10
00 00 3e 3e 41 41 41 41
3e 3e 41 41 41 41 3e 3e
00 00 7f 7f 41 41 41 41
7f 7f 01 01 01 01 7f 7f
|
#include <cstdio>
#include "fish.h"
#include "bird.h"
#include "beast.h"
/**
* Enter Animal parameters from file.
* @param \*file The file stream used for the data.
* @return The Animal with given properties.
*/
Animal* Animal::staticIn(FILE *file) {
Animal* a = nullptr;
int k;
fscanf(file,"%i", &k);
switch (k) {
case 1:
a = new Fish;
break;
case 2:
a = new Bird;
break;
case 3:
a = new Beast;
break;
}
a ->in(file);
return a;
}
Animal* Animal::staticInRnd() {
Animal* animal;
auto k = rand() % 3 + 1;
switch (k) {
case 1:
animal = new Fish;
break;
case 2:
animal = new Bird;
break;
case 3:
animal = new Beast;
break;
}
animal->inRnd();
return animal;
}
|
.module teste1
.pseg
;; testa salto condicional neg, carry e overflow
;; r7=0x0001
;; r0 = 0xaa55
;; r1 = 0xffff
;; r2 = 0xaa55 (0x0000 Errado)
;; r3 = 0xaa55 (senao flag de carry no lsl)
;; r4 = r3(0xaa55) (0x54aa Errado)
main:
loadlit r7,-1
loadlit r6, 1
OV: add r6,r6,r7
jf.carry OV
HLT: j HLT
nop
.end
|
Name: zel_vma.asm
Type: file
Size: 47524
Last-Modified: '2016-05-13T04:27:09Z'
SHA-1: 703CD95A3CBC3077B0F3141CE8B3A92FA5219F4B
Description: null
|
; A122788: (1,3)-entry of the 3 X 3 matrix M^n, where M = {{0, -1, 1}, {1, 1, 0}, {0, 1, 1}}.
; 0,1,1,0,0,2,4,4,4,8,16,24,32,48,80,128,192,288,448,704,1088,1664,2560,3968,6144,9472,14592,22528,34816,53760,82944,128000,197632,305152,471040,727040,1122304,1732608,2674688,4128768,6373376,9838592,15187968,23445504,36192256,55869440,86245376,133136384,205520896,317259776,489750528,756023296,1167065088,1801584640,2781085696,4293132288,6627262464,10230431744,15792603136,24378867712,37633392640,58094256128,89679462400,138437197824,213703983104,329892495360,509251420160,786125815808,1213533782016,1873318772736,2891821613056,4464073244672,6891140808704,10637778354176,16421421580288,25349568069632,39131849687040,60407406395392,93250249555968,143949385695232,222213085069312,343027897860096,529528396972032,817427168362496,1261853338501120,1947909134221312,3006965928165376,4641820264890368,7165526941892608,11061345210335232,17075277066665984,26358917596446720,40689971480231936,62812661900902400,96963216034234368,149681051227127808,231060994187591680,356686317989396480,550612750057865216,849974852512120832
lpb $0
sub $0,1
mov $1,$0
mov $0,0
max $1,0
seq $1,78003 ; Expansion of (1-x)/(1-2*x+2*x^2-2*x^3).
lpe
mov $0,$1
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: CD Audio Interface
FILE: cdplayer.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 Initial version
Fred 11/91 First Revision
DESCRIPTION:
This file contains the main code for the Play Audio CD application
RCS STAMP:
$Id: cdplayer.asm,v 1.1 97/04/04 14:42:41 newdeal Exp $
TO DO
------------------------------------------------------------------------------@
;------------------------------------------------------------------------------
; Common GEODE stuff
;------------------------------------------------------------------------------
_Application = 1
ACCESS_FILE_INT = 1 ; get constants for fileInt.def
;Standard include files
include geos.def
include geode.def
include library.def
include heap.def
include resource.def
include input.def
include localize.def
include driver.def
include initfile.def
;include text.def
;include object.def
include graphics.def
include gstring.def
include char.def
include win.def
include lmem.def
include timer.def
include system.def
include file.def
include fileEnum.def
include vm.def
include thread.def
include cdplayer.def
;------------------------------------------------------------------------------
; Libraries used
;------------------------------------------------------------------------------
UseLib ui.def
UseLib Objects/vTextC.def
UseLib Objects/gListC.def
UseLib cdrom.def
; Structure which contains the active CD information
CDContent struc
CD_firstTrack byte
CD_lastTrack byte ; set to 1+ last track
CD_currentTrack byte
CD_currentTimeTrack word ; minutes high : seconds low
CD_nextTrackStart word ; minutes high : seconds low
CD_currentTimeDisk word ; minutes high : seconds low
CD_remainingTime word ; minutes high : seconds low
CD_totalTimeTrack word ; length of track
CD_totalTimeDisk word ; length of disk
CD_volumeLevel word ; loudness of cd
CD_skipTracks dword ; set bits to skip tracks
CD_startSector dword ; Start sector for loop
CD_endSector dword ; End sector for loop play
CD_volumeSize dword ; volume size (ABSOLUTE SECTOR)
CD_BCDSize dword
CD_UPCcode byte 12 dup (?) ; UPC number
CDContent ends ;end of struc definition
CDTimeModes etype byte, 0
TIME_IN_TRACK enum CDTimeModes
TIME_IN_DISK enum CDTimeModes
TIME_REMAINING_IN_TRACK enum CDTimeModes
TIME_REMAINING_IN_DISK enum CDTimeModes
CDStates etype byte, 0
CD_PLAYING enum CDStates
CD_PAUSED enum CDStates
CD_STOPPED enum CDStates
;------------------------------------------------------------------------------
; Resources
;------------------------------------------------------------------------------
include cdplayer.rdef ;include compiled UI definitions
;------------------------------------------------------------------------------
; Class & Method Definitions
;------------------------------------------------------------------------------
;This is the class for CD play's process.
CDProcessClass class GenProcessClass
;METHOD DEFINITIONS: these methods are defined for CDProcessClass.
CD_METHOD_STOP_PRESSED method
CD_METHOD_PLAY_PRESSED method
CD_METHOD_PAUSE_PRESSED method
CD_METHOD_NEXT_PRESSED method
CD_METHOD_PREVIOUS_PRESSED method
CD_METHOD_FORWARD_PRESSED method
CD_METHOD_BACK_PRESSED method
CD_METHOD_EJECT_PRESSED method
CD_METHOD_TIME_PRESSED method
CD_METHOD_SHUFFLE_PRESSED method
CD_METHOD_BUTTON_ITEM_SELECTED method
CD_METHOD_PLUS_10_SELECTED method
CD_METHOD_MINUS_10_SELECTED method
CD_METHOD_TIMER_TICK method
CD_METHOD_VOLUME_CONTROL method
CDProcessClass endc ;end of class definition
;------------------------------------------------------------------------------
; Initialized variables and class structures
;------------------------------------------------------------------------------
idata segment
;Class definition is stored in the application's idata resource here.
CDProcessClass mask CLASSF_NEVER_SAVED
;initialized variables
;SaveStart label word ;START of data saved to state file ---------
;variable1 dw 20 ; idata variable
;SaveEnd label word
cdUnion CDStrucs ; data structures to be passed to MSCDEX
cdInput InputStrucs
cdOutput OutputStrucs
idata ends
;------------------------------------------------------------------------------
; Uninitialized variables
;------------------------------------------------------------------------------
udata segment
cdFirstDrive word
cdNumDrives word
diskPresent byte
diskType byte ; CD_ROM or audio disk
startTrack byte
runTime byte
cdInfo CDContent ; info about current CD Disk
timerHandle word ; handle for interrupt timer
tcHandle word ; handle for Table of Contents block
BCDvolSize RBStruct
PlayThing PStruct ; structure for play information
udata ends
;------------------------------------------------------------------------------
; Code for CDProcessClass
;------------------------------------------------------------------------------
CommonCode segment resource ;start of code resource
COMMENT @----------------------------------------------------------------------
FUNCTION: CDPlayerOpenApplication
DESCRIPTION: This method is sent to this application as it is attached to
the system.
PASS: ds = segment of DGroup (idata, udata, stack, etc)
es = segment of class definition (is in DGroup)
bp = handle of block on global heap which contains vars.
RETURN: ds, si, es = same
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 5/91 initial version
------------------------------------------------------------------------------@
CDPlayerOpenApplication method CDProcessClass, MSG_GEN_PROCESS_OPEN_APPLICATION
push ax, bx, cx, dx, si, ds, es
mov di, offset CDProcessClass ;set es:di = class declaration
call ObjCallSuperNoLock ; put up UI superclass
; (UI_Class for default handling)
call Init_CD
;restore registers
pop ax, bx, cx, dx, si, ds, es
ret
CDPlayerOpenApplication endp
COMMENT @----------------------------------------------------------------------
FUNCTION: CDPlayerCloseApplication
DESCRIPTION: This method is sent to this application as it is detached from
the system.
PASS: ds = segment of DGroup (idata, udata, stack, etc)
es = segment of class definition (is in DGroup)
RETURN: ds, si, es = same
cx = handle of block on global heap which
contains variables
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 5/91 initial version
------------------------------------------------------------------------------@
CDPlayerCloseApplication method CDProcessClass, MSG_GEN_PROCESS_CLOSE_APPLICATION
mov ax, dgroup
mov ds, ax
call StopUpdateTimer
cmp ds:diskPresent, DISK ; see if disk is there
jne 91$
mov bx, ds:tcHandle ;Discard Table of Contents
cmp ds:tcHandle, 0 ;see if handle exists
je 91$
call MemFree ;Free mem block
mov ds:tcHandle, 0
91$:
clr cx ; pass no variable handle
ret
CDPlayerCloseApplication endp
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_STOP_PRESSED handler.
DESCRIPTION: This method is sent by UI thread when the user presses on the
"Stop" GenTrigger. Calls StopRoutine to stop CD play.
PASS: ds - dgroup
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDStopButton method CDProcessClass, CD_METHOD_STOP_PRESSED
cmp ds:diskPresent, DISK ; CD in drive?
jne 41$
call StopRoutine ; Stop play
41$:
ret
CDStopButton endm
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_PREVIOUS_PRESSED handler.
DESCRIPTION: This method is sent by UI thread when the user presses on the
"Reverse" GenTrigger. Rev plays previous track
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
cx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDPreviousButton method CDProcessClass, CD_METHOD_PREVIOUS_PRESSED
cmp ds:diskPresent, DISK
jne 41$
cmp ds:diskType, DISK_AUDIO
jne 41$
mov cl, ds:cdInfo.CD_currentTrack
cmp ds:cdInfo.CD_firstTrack, cl ; is current track 1st track?
jge atMin ; if yes, no adjust
dec ds:cdInfo.CD_currentTrack ; current track -= 1;
dec cl
cmp cl, ds:startTrack ; at beginning of list?
jge atMin ; no , no list adjust
sub ds:startTrack, 10 ; get previous page monikers
call ChangeMonikers ; change list monikers
atMin:
call MakeTracks
mov dh, ds:cdInfo.CD_lastTrack ; play to last track
inc dh
mov dl, ds:cdInfo.CD_currentTrack ; play from current track
mov cx, ds:cdFirstDrive
call CDPlayTrack
41$:
ret
CDPreviousButton endm
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_NEXT_PRESSED handler.
DESCRIPTION: This method is sent by UI thread when the user presses on the
"Next" GenTrigger. Advances play to next track
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDNextButton method CDProcessClass, CD_METHOD_NEXT_PRESSED
cmp ds:diskPresent, DISK ; test for valid audio disk
jne 41$
cmp ds:diskType, DISK_AUDIO
jne 41$
mov cl, ds:cdInfo.CD_currentTrack ;get current track
cmp ds:cdInfo.CD_lastTrack, cl ; = largest track?
jle atMax ; if so, don't increment
inc ds:cdInfo.CD_currentTrack ;add 1 to current track
inc cl
mov bl, ds:startTrack ; check to see if 10
add bl, 10 ; boundary crossed (for display)
cmp cl, bl
jl atMax
add ds:startTrack, 10 ; new start point for display
call ChangeMonikers ; change list monikers
atMax:
call MakeTracks
mov dh, ds:cdInfo.CD_lastTrack ; play to last track
inc dh
mov dl, ds:cdInfo.CD_currentTrack ; play from current track
mov cx, ds:cdFirstDrive
call CDPlayTrack
41$:
ret
CDNextButton endm
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_EJECT_PRESSED handler.
DESCRIPTION: This method is sent by UI thread when the user presses on the
"Eject" GenTrigger. Ejects CD from drive if function can be
supported by drive
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
cx
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDEjectButton method CDProcessClass, CD_METHOD_EJECT_PRESSED
cmp ds:diskPresent, DISK
jnz 40$
call StopUpdateTimer
mov ds:diskPresent, NO_DISK
call RemoveDiskRoutine
mov cx, ds:cdFirstDrive
push es, ds
call LoadOutputStructures
call CDEjectDisk ;Eject disk
pop es, ds
call StartUpdateTimer
40$:
ret
CDEjectButton endm
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_VOLUME_CONTROL handler.
DESCRIPTION: This method is sent by UI thread for volume-altering
if CD has this capability
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
ax, cx, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDVolumeControl method CDProcessClass, CD_METHOD_VOLUME_CONTROL
push ds, es
GetResourceHandleNS Interface, bx ;set ^lbx:si = VolRange object
mov si, offset VolRange
clr bp ;pass bp = flags (none set)
pop cx
push cx
mov ax, MSG_GEN_RANGE_GET_VALUE
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ;place method on UI's queue, and rest
mov dx, cx ;give 16 increments for volume
mov cl, 4
shl dx, cl ;volume for left channel
mov dh, dl ;volume for right channel
call LoadOutputStructures
mov al, CHANNEL0
mov ah, CHANNEL1
mov cx, ds:cdFirstDrive
call CDAudioChannelControl
pop ds, es
ret
CDVolumeControl endm
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_TIME_PRESSED handler.
DESCRIPTION: This method is sent by UI thread when the user presses on the
"Time" GenTrigger. Toggles displayed time between song time and
total time
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDTimeButton method CDProcessClass, CD_METHOD_TIME_PRESSED
xor ds:runTime, 1 ; toggle between song time & total time
ret
CDTimeButton endm
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_PLAY_PRESSED handler.
DESCRIPTION: This method is sent by UI thread when the user presses on the
"Play" GenTrigger.
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDPlayButton method CDProcessClass, CD_METHOD_PLAY_PRESSED
cmp ds:diskPresent, DISK
jne 41$
cmp ds:diskType, DISK_AUDIO
je 40$
call DialogNotAudioDisk
jmp 41$
40$:
mov dh, ds:cdInfo.CD_lastTrack ; play to last track
inc dh
mov dl, ds:cdInfo.CD_currentTrack ; play from current track
mov cx, ds:cdFirstDrive
call CDPlayTrack
41$:
ret
CDPlayButton endm
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_FORWARD_PRESSED handler.
DESCRIPTION: This method is sent by UI thread when the user presses on the
"Forward" GenTrigger. Increments track play by n seconds
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
ax, cx, dx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDForwardButton method CDProcessClass, CD_METHOD_FORWARD_PRESSED
cmp ds:diskPresent, DISK
jne 41$
clr cx
clr ax
mov cl, ds:cdInfo.CD_currentTimeDisk.high
mov ah, ds:cdInfo.CD_currentTimeDisk.low
; cl - minutes, ah - seconds, al - frames
cmp ah, 50
jge 37$
add ah, TEN_SECONDS ; add 10 seconds to current
jmp 38$ ; track
37$:
sub ah, 50
add cx, 1 ; update minutes
38$:
mov ds:PlayThing.startSector.low, ax
mov ds:PlayThing.startSector.high, cx
call ConvertRedBookToAbsolute
mov bx, ds:cdInfo.CD_volumeSize.low
mov dx, ds:cdInfo.CD_volumeSize.high
sub bx, ax
sbb dx, cx
mov ds:PlayThing.trackLen.low, bx
mov ds:PlayThing.trackLen.high, dx
call PlayAudio
41$:
ret
CDForwardButton endm
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_BACK_PRESSED handler.
DESCRIPTION: This method is sent by UI thread when the user presses on the
"Back" GenTrigger. Moves current play position back by 10
seconds.
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
ax, cx, dx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDBackButton method CDProcessClass, CD_METHOD_BACK_PRESSED
cmp ds:diskPresent, DISK
jne 19$
clr cx
clr ax
mov cl, ds:cdInfo.CD_currentTimeDisk.high
mov ah, ds:cdInfo.CD_currentTimeDisk.low
cmp ah, 10 ; check to see if <=10 seconds
jge 17$
cmp cx, 0 ; First ten seconds of CD
jle 19$ ; No correction if first 10 seconds
add ah, 50
dec cx
jmp 18$
17$:
sub ah, TEN_SECONDS ; - 10 seconds
18$:
mov ds:PlayThing.startSector.low, ax
mov ds:PlayThing.startSector.high, cx ; get starting sector
call ConvertRedBookToAbsolute
mov bx, ds:cdInfo.CD_volumeSize.low
mov dx, ds:cdInfo.CD_volumeSize.high
sub bx, ax
sbb dx, cx
mov ds:PlayThing.trackLen.low, bx
mov ds:PlayThing.trackLen.high, dx
call PlayAudio
19$:
ret
CDBackButton endm
COMMENT @----------------------------------------------------------------------
FUNCTION: CD_METHOD_PAUSE_PRESSED handler.
DESCRIPTION: This method is sent by UI thread when the user presses on the
"Pause" GenTrigger. When pushed while CD is playing, pauses
play at that spot. Pressing Pause again will start play
from the paused position
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
CDPauseButton method CDProcessClass, CD_METHOD_PAUSE_PRESSED
cmp ds:diskPresent, DISK
jne 91$
mov cx, ds:cdFirstDrive
push es, ds
call LoadInputStructures
call CDAudioStatus
pop es, ds
test ds:cdInput.inputName.StatStruct.AudStatus, 1
jnz 89$
call StopAudio ;send stop command to drive
jmp 91$
89$:
call CDResumeAudio ;resume play
91$:
ret
CDPauseButton endm
COMMENT @----------------------------------------------------------------------
FUNCTION: DoStatus - CD_METHOD_TIMER_TICK handler.
DESCRIPTION: This method is sent by UI thread when the timer tick occurs.
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
ax, cx
PSEUDO CODE/STRATEGY:
For every timer tick, test to see if disk is in drive. This
handles case where user ejects disk manually. If disk is in
drive, check to see if disk is playing. If so, update time
status = CheckForDisk();
switch (status) {
case NODISK:
if (diskPresent) {
RemoveDiskRoutine();
diskPresent = FALSE;
break;
}
case DISK:
status = DiskPlaying();
if (status == PLAY)
UpdateTimeAndTrack();
break;
}
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
DoStatus method CDProcessClass, CD_METHOD_TIMER_TICK
mov cx, ds:cdFirstDrive ; test for drive in disk
push es, ds
call LoadInputStructures
call CDDeviceStatus ; LMS disk does not respond
pop es, ds
test {word}cdInput.inputName.DevStruct.Parameters.low, mask DTS_DISK_ABSENT
jne nodisk
cmp ds:diskPresent, NO_DISK
jne diskthere
mov ds:cdInfo.CD_currentTrack, 1
call MakeTableofContents ; disk just inserted
mov ds:diskPresent, DISK
jmp 12$
diskthere:
push es, ds
call LoadInputStructures ; set up struct for library call
mov cx, ds:cdFirstDrive
call CDQChannelInfo ; test for CD playing
pop es, ds
test ah, mask CDS_ERROR shr 8 ; QChannel not implemented?
jnz noQChan
test ax, mask CDS_BUSY ; return error code
jz 12$ ; CD not playing?
call UpdateTimeAndTrack ; CD playing, update info
jmp 12$
noQChan:
call NoQUpdateTimeAndTrack ; for drives with no Q channel
jmp 12$
nodisk:
cmp ds:diskPresent, DISK ; see if disk just removed
jne 12$
call RemoveDiskRoutine
mov ds:diskPresent, NO_DISK
12$:
ret
DoStatus endm
COMMENT @----------------------------------------------------------------------
FUNCTION: RemoveDiskRoutine
DESCRIPTION: Handles tasks when CD is removed, purges Table of
Contents, frees memory, and zeros track and time display
PASS: nothing
RETURN: nothing
DESTROYED: bx, dx
PSEUDO CODE/STRATEGY:
Discard table of contents
Set time display to 0:00
Set track display to 0
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 5/91 initial version
------------------------------------------------------------------------------@
RemoveDiskRoutine proc near
mov bx, ds:tcHandle ;Discard Table of Contents
cmp ds:tcHandle, 0 ;see if handle exists
je 10$
call MemFree ;Free mem block
mov ds:tcHandle, 0
10$:
clr dx ;Clear time display
call MakeTime
mov al, 1
mov ds:cdInfo.CD_lastTrack, al ;Clear list
mov ds:startTrack, al ;Clear track display
mov ds:cdInfo.CD_currentTrack, al ;Clear track display
call ChangeMonikers
call MakeTracks
ret
RemoveDiskRoutine endp
COMMENT @---------------------------------------------------------------------
FUNCTION: UpdateTimeAndTrack
DESCRIPTION: Update the time and track display when requested by the
timer tick. Uses Q channel call.
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, dx
PSEUDO CODE/STRATEGY:
trackNum = CDQChannelInfo(drive);
if (trackNum != cdInfo.CD_currentTrack) {
cdInfo.CD_currentTrack = trackNum;
MakeTracks(cdInfo.CD_currentTrack)
}
if (runTime == TOTAL_CD_TIME)
MakeTime(totalTime);
else
MakeTime(trackTime);
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 5/91 initial version
------------------------------------------------------------------------------@
UpdateTimeAndTrack proc near
push bp
mov dl, RED_BOOK_MODE
mov cx, ds:cdFirstDrive
push es, ds
call LoadInputStructures
call CDHeadLocation ; get present position of head
mov ax, ds:cdInput.inputName.HeadStruct.HeadPosition.low
mov dx, ds:cdInput.inputName.HeadStruct.HeadPosition.high
mov dh, ah
call CDQChannelInfo ;get track num + running time
;cl - minutes, ah- seconds, al - frames
pop es, ds
mov dh, ds:cdInput.inputName.QStruct.Q_amin ;running time
mov dl, ds:cdInput.inputName.QStruct.Q_asec
mov ds:cdInfo.CD_currentTimeDisk, dx
mov cl, ds:cdInput.inputName.QStruct.Q_trackNum
call BCDtoBinary
clr ch
cmp cl, 0
jne running
pop bp
ret
running:
cmp ds:cdInfo.CD_currentTrack, cl
jz sameTrack
mov ds:cdInfo.CD_currentTrack, cl ; see if buttons need
mov bl, ds:startTrack ; updating
add bl, 10
cmp cl, bl
jl noUpdate
add ds:startTrack, 10
call ChangeMonikers ; add 10 to monikers
noUpdate:
call MakeTracks
sameTrack:
mov cl, ds:BCDvolSize.Minute
mov ch, ds:BCDvolSize.Second
mov dl, ds:cdInput.inputName.QStruct.Q_amin ;running time
mov dh, ds:cdInput.inputName.QStruct.Q_asec
cmp cx, dx
jne noStop
call StopRoutine
pop bp
ret
noStop:
cmp ds:runTime, 1
jnz 72$
mov dl, ds:cdInput.inputName.QStruct.Q_minutes ;time in track
mov dh, ds:cdInput.inputName.QStruct.Q_seconds
72$:
cmp ds:cdInfo.CD_currentTimeTrack, dx
jz sameTime ;time has not changed
mov ds:cdInfo.CD_currentTimeTrack, dx
call MakeTime
sameTime:
pop bp
ret
UpdateTimeAndTrack endp
COMMENT @----------------------------------------------------------------------
FUNCTION: NoQUpdateTimeAndTrack (TIME DISPLAY FOR CD PLAYERS THAT DON'T
RESPOND TO Q-CHANNEL CALLS)
DESCRIPTION: Update the time and track display when requested by the
timer tick. For CD players that don't support Q-channel
PASS: Nothing
RETURN: ds, es = same
DESTROYED: ax, cx, dx, si, di
PSEUDO CODE/STRATEGY:
trackNum = CDQChannelInfo(drive);
if (trackNum != cdInfo.CD_currentTrack) {
cdInfo.CD_currentTrack = trackNum;
MakeTracks(cdInfo.CD_currentTrack)
}
if (runTime == TOTAL_CD_TIME)
MakeTime(totalTime);
else
MakeTime(trackTime);
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 5/91 initial version
------------------------------------------------------------------------------@
NoQUpdateTimeAndTrack proc near
mov dl, RED_BOOK_MODE
push es, ds
call LoadInputStructures
call CDHeadLocation
pop es, ds
test ax, mask CDS_BUSY ; test error code
jnz 10$ ; disk not playing
ret
10$:
mov ax, ds:cdInput.inputName.HeadStruct.HeadPosition.low
mov dx, ds:cdInput.inputName.HeadStruct.HeadPosition.high
mov dh, ah
cmp ds:cdInfo.CD_currentTimeTrack, dx
jnz 11$ ;time has not changed
ret
11$:
mov bx, ds:tcHandle ; get handle to TOC
cmp bx, 0
jne 12$
ret
12$:
call MemLock ; lock down Table of Contents
push es
segmov es, ax
clr si
clr ch
clr di
mov cl, ds:cdInfo.CD_lastTrack
tLoop:
inc di
add si, size TableofContStruct ; set pointer to next entry
mov ax, es:[si].RBStartSec.low
mov bx, es:[si].RBStartSec.high
mov bh, ah ; ch is second of next track
; cl is minute of next track
cmp dl, bl ; dl is present minute
jl 59$
jg 58$
cmp dh, bh ; dh is present second
jl 59$
58$:
loop tLoop
59$:
mov bx, di ; di has current track
cmp bl, ds:cdInfo.CD_lastTrack
jle 60$
mov bl, ds:cdInfo.CD_lastTrack ; set upper track limit
60$:
cmp ds:cdInfo.CD_currentTrack, bl ; don't update track if same
je 79$
mov ds:cdInfo.CD_currentTrack, bl
mov al, ds:cdInfo.CD_lastTrack
cmp al, bl
je 79$
cmp bl, ds:startTrack ; monikers need updating
jge 61$
sub ds:startTrack, 10 ; subtract 10 from monikers
call ChangeMonikers
jmp 69$
61$:
mov cl, ds:startTrack ; monikers need updating
add cl, 10
cmp bl, cl ; bl has current track
jl 69$
add ds:startTrack, 10
call StopUpdateTimer
call ChangeMonikers ; add 10 to monikers
call StartUpdateTimer
69$:
call MakeTracks
79$:
sub si, size TableofContStruct
mov ax, es:[si].RBStartSec.low
mov cx, es:[si].RBStartSec.high
mov ch, ah ; ch is second of present track
; cl is minute of present track
sub dh, ch ; see if seconds need updating
jae 75$
add dh, 60
75$:
sbb dl, cl ; update minutes
mov ds:cdInfo.CD_currentTimeTrack, dx
; dl - minute, dh - second
call MakeTime
mov bx, ds:tcHandle ; unlock table of contents
call MemUnlock
pop es
ret
NoQUpdateTimeAndTrack endp
COMMENT @----------------------------------------------------------------------
FUNCTION: StartUpdateTimer
DESCRIPTION: Timer for updating time and track information while CD is
playing. Set for .75 seconds.
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, dx, si, di
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91
------------------------------------------------------------------------------@
StartUpdateTimer proc far
push ds, es, bp
mov al, TIMER_EVENT_CONTINUAL ;set continuous timer
clr cx
call GeodeGetProcessHandle ;BX:SI
clr si ;SI
mov di, 50 ;DI <- interval between ticks
mov dx, CD_METHOD_TIMER_TICK ;DX <- method sent out by timer
mov cx, 50 ;CX <- time until first tick
call TimerStart
mov ds:timerHandle, bx ;save timer handle returned
;by TimerStart
pop ds, es, bp
ret
StartUpdateTimer endp
COMMENT @----------------------------------------------------------------------
FUNCTION: StopUpdateTimer
DESCRIPTION: Stops update timer
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, si
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91
------------------------------------------------------------------------------@
StopUpdateTimer proc far
push ds, es, bp
mov bx, ds:timerHandle ;BX - handle of timer
clr ax ;ax set to 0 for cont
call TimerStop
pop ds, es, bp
ret
StopUpdateTimer endp
COMMENT @----------------------------------------------------------------------
FUNCTION: GetButtonItem
DESCRIPTION: This method gets list entries from button list
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 6/91 initial version
------------------------------------------------------------------------------@
GetButtonItem method CDProcessClass, CD_METHOD_BUTTON_ITEM_SELECTED
cmp ds:[diskPresent], DISK
jne 41$
cmp ds:[diskType], DISK_AUDIO
jne 41$
push ax, cx
GetResourceHandleNS Interface, bx ;set ^lbx:si = SongList object
mov si, offset NumberList
mov ax, MSG_GEN_ITEM_GROUP_GET_SELECTION
mov di, mask MF_CALL
call ObjMessage ;place method on UI's queue, and
add cl, ds:startTrack ; cdInfo.CD_currentTrack = list position + 1
cmp cl, ds:cdInfo.CD_lastTrack
jle 44$
mov cl, ds:cdInfo.CD_lastTrack
44$:
mov ds:cdInfo.CD_currentTrack, cl ; save current track
call MakeTracks
mov dh, ds:cdInfo.CD_lastTrack ; play to last track
inc dh
mov dl, ds:[cdInfo.CD_currentTrack] ; play from current track
mov cx, ds:[cdFirstDrive]
call CDPlayTrack
pop ax, cx
41$:
ret
GetButtonItem endp
COMMENT @----------------------------------------------------------------------
FUNCTION: GetMinus10List
DESCRIPTION: This method processes the single-entry -10 list
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 6/91 initial version
------------------------------------------------------------------------------@
GetMinus10List method CDProcessClass, CD_METHOD_MINUS_10_SELECTED
cmp ds:[diskPresent], DISK
jne 41$
cmp ds:diskType, DISK_AUDIO
jne 41$
push ax, cx
GetResourceHandleNS Interface, bx ;set ^lbx:si = Minus10List object
mov si, offset Minus10List
; mov ax, MSG_GEN_LIST_DESELECT_ALL
; mov di, mask MF_CALL
; call ObjMessage
mov cl, ds:cdInfo.CD_currentTrack
cmp cl, 10
jle 42$ ; no action
sub cl, 10
sub ds:startTrack, 10
mov ds:cdInfo.CD_currentTrack, cl
call ChangeMonikers ; cl is preserved
call MakeTracks
mov dh, ds:cdInfo.CD_lastTrack ; play to last track
inc dh
mov dl, ds:cdInfo.CD_currentTrack ; play from current track
mov cx, ds:cdFirstDrive
call CDPlayTrack
42$:
pop ax, cx
41$:
ret
GetMinus10List endp
COMMENT @----------------------------------------------------------------------
FUNCTION: GetPlus10List
DESCRIPTION: This method processes the single-entry +10 list
PASS: ds - segment address of CDProcessClass
RETURN: nothing
DESTROYED: allowed to destroy - bx, si, di, ds, es
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 6/91 initial version
------------------------------------------------------------------------------@
GetPlus10List method CDProcessClass, CD_METHOD_PLUS_10_SELECTED
cmp ds:diskPresent, DISK
jne 41$
cmp ds:diskType, DISK_AUDIO
jne 41$
; this code debounces +10 button
push ax, cx
GetResourceHandleNS Interface, bx ;set ^lbx:si = Plus10List object
mov si, offset Plus10List
; mov ax, MSG_GEN_LIST_DESELECT_ALL
; mov di, mask MF_CALL
; call ObjMessage
mov cl, ds:startTrack
mov dl, ds:cdInfo.CD_lastTrack
sub dl, cl
cmp dl, 9 ; don't bother if <= 10 tracks to go
jle 45$ ; put test here so button is
; momentary
mov cl, 10
add cl, ds:cdInfo.CD_currentTrack ; cdInfo.CD_currentTrack = list position + 1
add ds:startTrack, 10
cmp cl, ds:cdInfo.CD_lastTrack
jle 44$
mov cl, ds:cdInfo.CD_lastTrack
cmp cl, ds:startTrack
jge 44$
sub ds:startTrack, 10
44$:
mov ds:cdInfo.CD_currentTrack, cl
call ChangeMonikers
call MakeTracks
mov dh, ds:cdInfo.CD_lastTrack ; play to last track
inc dh
mov dl, ds:cdInfo.CD_currentTrack ; play from current track
mov cx, ds:cdFirstDrive
call CDPlayTrack
45$:
pop ax, cx
41$:
ret
GetPlus10List endp
COMMENT @---------------------------------------------------------------------
FUNCTION: MakeTableofContents
DESCRIPTION: Reads table of contents from CD disk and creates copy in
memory
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, dx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
MakeTableofContents proc near
mov ax, dgroup
mov ds, ax
mov cx, ds:cdFirstDrive
push es, ds
call LoadInputStructures
call CDAudioDiskInfo ;see if disk is playing
pop es, ds
test ax, mask CDS_BUSY
jz 12$
; call StopAudio
12$:
mov ah, ds:cdInput.inputName.DiskStruct.HiTrackNum ;get high track
mov al, ds:cdInput.inputName.DiskStruct.LowTrackNum ;get low track
cmp ah, 1 ;see if audio disk
jg 14$
call DialogNotAudioDisk
mov ds:diskType, DISK_NOT_AUDIO ;set not audio disk flag
mov ds:tcHandle, 0 ;no memory handle
ret
14$:
mov ds:diskType, DISK_AUDIO ;
mov ds:cdInfo.CD_lastTrack, ah
mov ds:cdInfo.CD_firstTrack, al
mov ds:cdInfo.CD_currentTrack, al ;set current
;track to loTrack
mov ax, ds:cdInput.inputName.DiskStruct.LeadOut.low
mov cx, ds:cdInput.inputName.DiskStruct.LeadOut.high
mov ds:BCDvolSize.low, ax
mov ds:BCDvolSize.high, cx
call ConvertRedBookToAbsolute
mov ds:cdInfo.CD_volumeSize.low, ax
mov ds:cdInfo.CD_volumeSize.high, cx
call ChangeMonikers
mov ds:cdInfo.CD_currentTrack, 1
clr cx
call MakeTracks
ret
MakeTableofContents endp
COMMENT @---------------------------------------------------------------------
FUNCTION: StopRoutine
DESCRIPTION: Stop CD from playing. Reset time and track information on
UI.
PASS: nothing
RETURN: nothing
DESTROYED: bx, cx, dx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
StopRoutine proc near
call StopAudio ;send stop command to drive
mov dl, ds:BCDvolSize.Minute
mov dh, ds:BCDvolSize.Second
call MakeTime ; display length of CD
mov cl, ds:cdInfo.CD_lastTrack ; display maximum number of tracks
call MakeTracks
mov al, ds:cdInfo.CD_firstTrack
mov ds:startTrack, al
mov ds:cdInfo.CD_currentTrack, al ; reset current track to first track
call ChangeMonikers
clr cx ; first track
call UpdateNumberList
ret
StopRoutine endp
COMMENT @---------------------------------------------------------------------
FUNCTION: BCDtoBinary
DESCRIPTION: Converts BCD pair to binary
PASS: cx - BCD pair
RETURN: cx - binary value of BCD pair
DESTROYED: ax, bx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
BCDtoBinary proc near
mov al, cl
and cl, 0fh
shr al, 1
shr al, 1
shr al, 1
shr al, 1
mov bl, 10
mul bl
add cl, al
ret
BCDtoBinary endp
COMMENT @---------------------------------------------------------------------
FUNCTION: MakeTime
DESCRIPTION: Creates time string and displays it.
PASS: dl - Minute
dh - Second
RETURN:
DESTROYED: ax, bx, dx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
MakeTime proc near
displayBuf local 8 dup (char)
.enter
push ds, es, bp, cx
; the following code works for version 1.2
segmov es, ss
lea bp, displayBuf ;ES:bp <- ptr to dest string buf
; mov si, DTF_MS
; mov di, DR_LOCAL_FORMAT_DATE_TIME
; call SysLocalInfo TimeFormat
; DISPLAY THE TIME
mov dx, es ; DX:BP <- ptr to string
mov bp, di ; for 2.0
clr cx ; null-terminated
GetResourceHandleNS Interface, bx
mov si, offset TimeDisplay ;^lBX:SI <- OD of object
mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
pop ds, es, bp, cx
.leave
ret
MakeTime endp
COMMENT @---------------------------------------------------------------------
FUNCTION: MakeTracks
DESCRIPTION: Displays current track number on UI.
PASS: Nothing
RETURN: nothing
DESTROYED: bx
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
MakeTracks proc near
dispBuf local 8 dup (char)
.enter
push ds, es, bp, cx, dx, si
clr ah
mov al, ds:cdInfo.CD_currentTrack
call ConvertBinaryToASCII
mov dispBuf, ah ; tens digit
mov dispBuf+1, al ; ones digit
mov dispBuf+2, '-' ; string separator
mov al, ds:cdInfo.CD_lastTrack ;
clr ah ;
call ConvertBinaryToASCII
mov dispBuf+3, ah ; tens digit
mov dispBuf+4, al ; ones digit
mov dispBuf+5, 0 ; string terminator
segmov es, ss
lea bp, dispBuf ;ES:bp <- ptr to dest string buf
; DISPLAY THE TRACK NUMBER
mov dx, ss ;DX:BP <- ptr to string
clr cx ; null-term
GetResourceHandleNS Interface, bx
mov si, offset TrackDisplay ;^lBX:SI <- OD of object
mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage
clr cx
mov cl, ds:cdInfo.CD_currentTrack ; calculate active list entry
mov bl, ds:startTrack
sub cl, bl
call UpdateNumberList
pop ds, es, bp, cx, dx, si
.leave
ret
MakeTracks endp
COMMENT @----------------------------------------------------------------------
FUNCTION: UpdateNumberList
DESCRIPTION: This method updates list entries when song changes
PASS: cx - position to set exclusive
RETURN:
DESTROYED: ax
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
UpdateNumberList proc near
push bp, si, di, ds
GetResourceHandleNS Interface, bx ;set ^lbx:si = NumberList object
mov si, offset NumberList
mov ax, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION
; mov bp, LET_POSITION shl offset LF_ENTRY_TYPE or \
; mask LF_REFERENCE_USER_EXCL or mask LF_OVERRIDE_DISABLED \
; or mask LF_FORCE_VISIBLE or mask LF_SUPPRESS_APPLY
mov di, mask MF_CALL
call ObjMessage ;place method on UI's queue, and
pop bp, si, di, ds
ret
UpdateNumberList endp
COMMENT @---------------------------------------------------------------------
FUNCTION: EnableButtonList
DESCRIPTION: Enable button entries to select track from list.
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, si, di
PSEUDOCODE STRATEGY
for (i=0; i< cdInfo.CD_lastTrack; i++)
EnableButton();
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
Table word Button1, Button2, Button3, Button4, Button5, Button6, Button7, Button8, Button9, Button10, Button10
MakeButtonList proc near
mov cx, 10
clr bx
34$:
mov si, cs:Table[bx] ; get offset to Button object
push cx
push bx
GetResourceHandleNS Interface, bx ;set ^lbx:si = Button object
mov ax, MSG_GEN_SET_ENABLED; enable buttons
mov dl, VUM_DELAYED_VIA_UI_QUEUE
mov di, mask MF_CALL
call ObjMessage ;place method on UI's queue, and
pop bx
add bl, size word ; get next entry in table (word)
pop cx
loop 34$
ret
MakeButtonList endp
COMMENT @---------------------------------------------------------------------
FUNCTION: ChangeMonikers
DESCRIPTION: Changes monikers on Track List
PASS: Nothing
RETURN: nothing
DESTROYED: ax, bx, di
PSEUDOCODE STRATEGY
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 4/91 initial version
------------------------------------------------------------------------------@
ChangeMonikers proc near
vmonBuf local 4 dup (char)
.enter
push ds, es, bp, cx, dx, si
clr ax
mov al, ds:startTrack
call ConvertBinaryToASCII
clr dx
mov dl, ds:startTrack
clr bx ; Table entry pointer
mov cx, 9 ; 10 entries
bigLoop$:
push cx
push ax
push bx
push dx
mov vmonBuf, ah ; tens digit
mov vmonBuf+1, al ; ones digit
mov vmonBuf+2, 0 ; t-t-terminator
lea dx, vmonBuf
mov cx, ss ;
mov si, cs:Table[bx] ; get offset to Button object
GetResourceHandleNS Interface, bx ;set ^lbx:si = NumberList object
call ChangeMonikerToNumber ; cx:dx points to vmonBuf
pop dx
push dx ; si is preserved
GetResourceHandleNS Interface, bx ;set ^lbx:si = ButtonList object
cmp dl, ds:cdInfo.CD_lastTrack
jle 26$
call GreyOutListEntry
jmp 27$
26$:
call TurnOnListEntry
27$:
pop dx
pop bx
pop ax
inc al
add bl, 2 ; get next entry in table (word)
inc dl
pop cx
loop bigLoop$
; special case for tenth entry
push dx
cmp ah, ' '
jne 25$
mov ah, '0'
25$:
inc ah ; always equals digit
mov vmonBuf, ah
mov vmonBuf+1, '0' ; ones digit
mov vmonBuf+2, 0 ; terminator
lea dx, vmonBuf
mov cx, ss
mov si, cs:Table[bx] ; get offset to Button object
GetResourceHandleNS Interface, bx ;set ^lbx:si = NumberList object
call ChangeMonikerToNumber ; cx:dx points to vmonBuf
GetResourceHandleNS Interface, bx ;set ^lbx:si = ButtonList object
pop dx
cmp dl, ds:cdInfo.CD_lastTrack
jle 28$
call GreyOutListEntry
jmp 29$
28$:
call TurnOnListEntry
29$:
; now check to see if we grey out -10 button
GetResourceHandleNS Interface, bx ;set ^lbx:si = ButtonList object
mov si, offset Minus10List
cmp ds:startTrack, 1
jne 30$
call GreyOutListEntry
jmp 31$
30$:
call TurnOnListEntry
31$:
; now check to see if we grey out +10 button
GetResourceHandleNS Interface, bx ;set ^lbx:si = ButtonList object
mov si, offset Plus10List
mov ch, ds:cdInfo.CD_lastTrack
mov cl, ds:startTrack
sub ch, cl
cmp ch, 10
jge 32$
call GreyOutListEntry
jmp 33$
32$:
call TurnOnListEntry
33$:
pop ds, es, bp, cx, dx, si
.leave
ret
ChangeMonikers endp
COMMENT @----------------------------------------------------------------------
FUNCTION: DialogNoExtensions
DESCRIPTION: This dialog is displayed whenever the MSCDEX extensions are
not present
PASS: nothing
RETURN: nothing
DESTROYED: ax, cx, dx,di, es, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 5/91 initial version
------------------------------------------------------------------------------@
DialogNoExtensions proc near
GetResourceHandleNS CustomNoCDString, bx
call MemLock
mov di, ax
mov es, ax
mov bp, offset CustomNoExString
mov bp, es:[bp]
mov cx, es
mov si, offset CustomNoExArg
mov dx, es:[si]
mov al, SDBT_CUSTOM
mov ah, CustomDialogBoxFlags <FALSE, CDT_ERROR, GIT_NOTIFICATION>
call UserStandardDialog
call MemUnlock
ret
DialogNoExtensions endp
COMMENT @----------------------------------------------------------------------
FUNCTION: DialogNotAudioDisk
DESCRIPTION: This dialog is displayed whenever non-audio disk is detected
in drive
PASS: nothing
RETURN: nothing
DESTROYED: ax, cx, dx,di, es, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 5/91 initial version
------------------------------------------------------------------------------@
DialogNotAudioDisk proc near
GetResourceHandleNS CustomNotAudioString, bx
call MemLock
mov di, ax
mov es, ax
mov bp, offset CustomNotAudioString
mov bp, es:[bp]
mov cx, es
mov si, offset CustomNotAudioArg
mov dx, es:[si]
mov al, SDBT_CUSTOM
mov ah, CustomDialogBoxFlags <FALSE, CDT_ERROR, GIT_NOTIFICATION>
call UserStandardDialog
call MemUnlock
ret
DialogNotAudioDisk endp
COMMENT @----------------------------------------------------------------------
FUNCTION: DialogWrongCDExtension
DESCRIPTION: This dialog is displayed when an inadequate version of MSCDEX
is detected on the system. Must have at least version 2.2 of
MSCDEX to run this application.
PASS: nothing
RETURN: nothing
DESTROYED: ax, cx, dx,di, es, bp
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 5/91 initial version
------------------------------------------------------------------------------@
DialogWrongCDExtension proc near
GetResourceHandleNS CustomWrongExtensions, bx
call MemLock
mov di, ax
mov es, ax
mov bp, offset CustomWrongExtensions
mov bp, es:[bp]
mov cx, es
mov si, offset CustomWrongArg
mov dx, es:[si]
mov al, SDBT_CUSTOM
mov ah, CustomDialogBoxFlags <FALSE, CDT_ERROR, GIT_NOTIFICATION>
call UserStandardDialog
call MemUnlock
ret
DialogWrongCDExtension endp
COMMENT @---------------------------------------------------------------------
FUNCTION: Init_CD
DESCRIPTION: System initialization
PASS: Nothing
RETURN: Nothing
DESTROYED: bx
PSEUDO CODE/STRATEGY:
Get CD drive configuration
Check to see if CD Extensions are loaded
Check to see if MSCDEX Version 2.2 or greater is loaded
If all is well, start status timer
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 5/91 initial version
------------------------------------------------------------------------------@
Init_CD proc near
; system initialization
call CDGetDriveNumbers
cmp bx, 0 ; see if MSCDEX is installed
jnz 11$
call DialogNoExtensions ; MSCDEX not installed
ret
11$:
mov ds:cdNumDrives, bx
mov ds:cdFirstDrive, cx
mov ds:runTime, 1
mov ds:cdInfo.CD_currentTrack, 1
mov ds:cdInfo.CD_currentTimeDisk, 0
mov ds:startTrack, 1
mov ds:cdInfo.CD_lastTrack, 1
mov ds:diskPresent, NO_DISK
mov ds:diskType, DISK_NOT_AUDIO
mov ds:tcHandle, 0 ; zero handle
clr bx
call CDGetExtenVersion ; check to see if 2.2 is loaded
cmp bh,2 ;
jl wrongVer
cmp bl, 2
jge rightVer
wrongVer:
call DialogWrongCDExtension ;
ret
rightVer: ; initialize CD-ROM system
clr dx ; initialize display
call MakeTime
call StartUpdateTimer
call MakeButtonList
call ChangeMonikers
call MakeTracks
ret
Init_CD endp
COMMENT @---------------------------------------------------------------------
FUNCTION: ChangeMonikerToNumber
DESCRIPTION: Change list moniker to number
CALLED BY: (METHOD_LIST_REQUEST_ENTRY_MONIKER)
PASS: ss:di - CopyVisMonikerFrame
RETURN: nothing
DESTROYED: ax, cx, dx, di
REGISTER/STACK USE:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 7/91 initial version
------------------------------------------------------------------------------@
ChangeMonikerToNumber proc near
ret
ret
ChangeMonikerToNumber endp
COMMENT @---------------------------------------------------------------------
FUNCTION: ConvertBinaryToASCII
DESCRIPTION: Converts binary value less than 100 to ASCII
PASS: ax - binary value to be converted (to 99)
RETURN:
ah - tens ASCII value
al - ones ASCII value
DESTROYED: nothing
REGISTER/STACK USE:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 7/91 initial version
------------------------------------------------------------------------------@
ConvertBinaryToASCII proc near
mov ah, ' '
cmp al, 9 ; less than 10?
jle 43$
clr ah
42$:
sub al, 10
inc ah ; calculate tens place
cmp al, 10
jge 42$
add ah, '0' ; convert digit to ASCII
43$:
add al, '0'
ret
ConvertBinaryToASCII endp
COMMENT @---------------------------------------------------------------------
FUNCTION: PlayAudio
DESCRIPTION: Plays audio CD from specified sector. Sectors passed in
CD structures cdUnion and playThing.
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, di
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 7/91 initial version
------------------------------------------------------------------------------@
PlayAudio proc near
call StopAudio ; es:[bx] preserved in this call
push ds, es
mov ax, segment cdUnion
mov es, ax
mov bx, offset cdUnion
mov ax, segment PlayThing ; make ds:[di]
mov ds, ax
mov di, offset PlayThing
mov al, RED_BOOK_MODE
mov cx, ds:cdFirstDrive
call CDPlayAudio
pop ds, es
ret
PlayAudio endp
COMMENT @---------------------------------------------------------------------
FUNCTION: StopAudio
DESCRIPTION: Stops audio CD from playing.
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, di
REGISTER/STACK USE:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 7/91 initial version
------------------------------------------------------------------------------@
StopAudio proc near
push es
mov ax, segment cdUnion
mov es, ax
mov bx, offset cdUnion
mov cx, ds:cdFirstDrive
call CDStopAudio ; es:[bx] preserved in this call
pop es
ret
StopAudio endp
COMMENT @---------------------------------------------------------------------
FUNCTION: LoadInputStructures
DESCRIPTION: Sets up input structures used for MSCDEX calls
PASS: nothing
RETURN: es:bx - seg and offset of primary MSCDEX structure
ds:di - seg and offset of MSCDEX input structure
DESTROYED: ax
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 7/91 initial version
------------------------------------------------------------------------------@
LoadInputStructures proc near
mov ax, segment cdUnion
mov es, ax
mov bx, offset cdUnion
mov ax, segment cdInput
mov ds, ax
mov di, offset cdInput
ret
LoadInputStructures endp
COMMENT @---------------------------------------------------------------------
FUNCTION: LoadOutputStructures
DESCRIPTION: Set up output structures for CD Library calls
CALLED BY: Before calling any output routine in CD Library that requires
a data structure
PASS: nothing
RETURN: es:bx - seg and offset of primary MSCDEX structure
ds:di - seg and offset of MSCDEX output structure
DESTROYED: ax
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 7/91 initial version
------------------------------------------------------------------------------@
LoadOutputStructures proc near
mov ax, segment cdUnion
mov es, ax
mov bx, offset cdUnion
mov ax, segment cdOutput
mov ds, ax
mov di, offset cdOutput
ret
LoadOutputStructures endp
COMMENT @---------------------------------------------------------------------
FUNCTION: GreyOutListEntry
DESCRIPTION: Greys out nonvalid list entries.
CALLED BY:
PASS: bx:si - pointer to list entry
RETURN: nothing
DESTROYED: ax, dx, di
REGISTER/STACK USE:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 7/91 initial version
------------------------------------------------------------------------------@
GreyOutListEntry proc near
mov ax, MSG_GEN_SET_NOT_ENABLED ; turn off button
mov dl, VUM_DELAYED_VIA_UI_QUEUE
mov di, mask MF_CALL
call ObjMessage ;
ret
GreyOutListEntry endp
COMMENT @---------------------------------------------------------------------
FUNCTION: TurnOnListEntry
DESCRIPTION: Enables UI list entry
CALLED BY:
PASS: bx:si - pointer to list entry
RETURN: nothing
DESTROYED: ax, bx, dx, si, di, ds, es
REGISTER/STACK USE:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Fred 7/91 initial version
-----------------------------------------------------------------------------@
TurnOnListEntry proc near
mov ax, MSG_GEN_SET_ENABLED ; enable button
mov dl, VUM_DELAYED_VIA_UI_QUEUE
mov di, mask MF_CALL
call ObjMessage ;
ret
TurnOnListEntry endp
CommonCode ends ;end of CommonCode resource
|
; A003499: a(n) = 6*a(n-1) - a(n-2), with a(0) = 2, a(1) = 6.
; 2,6,34,198,1154,6726,39202,228486,1331714,7761798,45239074,263672646,1536796802,8957108166,52205852194,304278004998,1773462177794,10336495061766,60245508192802,351136554095046,2046573816377474,11928306344169798,69523264248641314,405211279147678086,2361744410637427202,13765255184676885126,80229786697423883554,467613464999866416198,2725451003301774613634,15885092554810781265606,92585104325562912980002,539625533398566696614406,3145168096065837266706434,18331383042996456903624198,106843130161912904155038754,622727397928480968026608326,3629521257408972904004611202,21154400146525356456001058886,123296879621743165832001742114,718626877583933638536009393798,4188464385881858665384054620674,24412159437707218353768318330246,142284492240361451457225855360802,829294794004461490389586813834566,4833484271786407490880295027646594,28171610836713983454892183352044998,164196180748497493238472805084623394,957005473654270975975944647155695366
mov $1,2
lpb $0
sub $0,1
add $2,$1
add $1,$2
add $1,$2
add $2,$1
lpe
mov $0,$1
|
; int obstack_grow0(struct obstack *ob, void *data, size_t size)
SECTION code_alloc_obstack
PUBLIC _obstack_grow0
EXTERN asm_obstack_grow0
_obstack_grow0:
pop af
pop hl
pop de
pop bc
push bc
push de
push hl
push af
jp asm_obstack_grow0
|
; Close IP V1.00 2004 Marcel Kilgus
section ip
xdef ip_close
include 'dev8_keys_qlv'
include 'dev8_smsq_qpc_ip_data'
include 'dev8_smsq_qpc_keys'
ip_close
move.l a0,-(sp)
move.l chn_data(a0),a0
dc.w qpc.ipcls
move.l (sp)+,a0
move.w mem.rchp,a2
jmp (a2)
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.